Creating a microservice for Order
The OrderService receives the request from Service Consumers to create a new order for the service provided by a particular service provider. It exposes the following APIs for consumers to create a new order, get order details, and get the list of orders placed by them. It also allows the consumers to rate the Order based on the quality of service received. To create a new Order, APIs expect a service ID and provider ID to be specified along with the required details such as time slot, and more. The consumer ID is picked from the Auth token that is received as a part of request headers. The IDs specified for Service and Service Provider must already be registered with the Helping Hands application via the Service and Service Provider microservices. Creation of an Order also makes sure that the requested service is offered within the vicinity of the consumer based on the geolocation of the consumer and service being requested:
URI | Description |
|