The restaurant microservice will be exposed to the external world using REST endpoints for consumption. We'll find the following endpoints in the restaurant microservice example. You can add as many endpoints as you need:
This is the endpoint for retrieving restaurants by ID:
This is the endpoint for retrieving all the restaurants that match the value of the query parameter Name:
This is the endpoint for creating a new restaurant:
Similarly, we can add various endpoints and their implementations. For demonstration purposes, we'll implement the preceding endpoints using Spring Cloud.