Reader small image

You're reading from  Microservices with Clojure

Product typeBook
Published inJan 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788622240
Edition1st Edition
Languages
Right arrow
Author (1)
Anuj Kumar
Anuj Kumar
author image
Anuj Kumar

Anuj Kumar is the co-founder and chief architect of FORMCEPT, a data analytics startup based in Bangalore, India. He has more than 10 years of experience in designing large-scale distributed systems for storage, retrieval, and analytics. He has been in industry hacking, mainly in the area of data integration, data quality, and data analytics using NLP and machine learning techniques. He has published research papers at ACM conferences, got a few patents granted, and has spoken at TEDx. Prior to FORMCEPT, he has worked with the Oracle Server Technologies division in Bangalore, India.
Read more about Anuj Kumar

Right arrow

RESTful APIs


Web service APIs that conform to REST architecture is called RESTful APIs. Microservices mostly implement the HTTP-based RESTful APIs that are stateless and have a base URI and a media type (https://en.wikipedia.org/wiki/Media_type) for the representation of resources. It also supports predefined standard operations that are mapped to HTTP methods such as GET, POST, PUT, DELETE, and more.

For example, as shown in the following table, the Order service may define an API /orders to get access to the orders that it maintains. It can support a GET method to look up all the orders or get a specific order by specifying the order ID. It can also allow clients to create new orders by using the POST method or create an order with a specific ID by using the PUT method. Similarly, it can support the PUT method to update order details and the DELETE method to delete an order by specifying the order ID explicitly.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Microservices with Clojure
Published in: Jan 2018Publisher: PacktISBN-13: 9781788622240

Author (1)

author image
Anuj Kumar

Anuj Kumar is the co-founder and chief architect of FORMCEPT, a data analytics startup based in Bangalore, India. He has more than 10 years of experience in designing large-scale distributed systems for storage, retrieval, and analytics. He has been in industry hacking, mainly in the area of data integration, data quality, and data analytics using NLP and machine learning techniques. He has published research papers at ACM conferences, got a few patents granted, and has spoken at TEDx. Prior to FORMCEPT, he has worked with the Oracle Server Technologies division in Bangalore, India.
Read more about Anuj Kumar

URI

HTTP method

Operation

Description

GET https://server/orders

GET

Read

Gets all the...