-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Hands-On Microservices with Kotlin
By :

Any RESTful API needs to answer requests coming from their client; these requests are handled in Spring by a controller object. In this section, we will understand what a controller actually is and how the RestController
will help us to create our first component in a RESTful API.
Each request coming to a RESTful API is a stateless message that mainly will:
Those requests will use JSON as the mechanism to interchange information.
JavaScript Object Notation (JSON) is a human-readable data format to transmit objects. It is a language-independent data format, but it was derived from JavaScript. Most programming languages include code to generate and parse JSON-format data.
Requests in a Spring web application are handled by a controller, a specialized component whose mission is to handle requests from a client and send responses back. Controllers can be used for a variety of...