The Consumer Service REST API is available atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/microservices-patterns/ftgo-application/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:8081. It handles consumer registration and profile retrieval. A consumer must exist before they can place orders through the Order Service.
POST /consumers
Creates a new consumer with the provided name. Returns the system-assigned consumer ID on success.Request body
The full name of the consumer to register.
Response
The unique identifier assigned to the newly created consumer.
Status codes
| Code | Meaning |
|---|---|
200 OK | Consumer created successfully. |
Example
GET /consumers/
Retrieves an existing consumer’s profile by their ID.Path parameters
The unique ID of the consumer to retrieve.
Response
The consumer’s full name.
Status codes
| Code | Meaning |
|---|---|
200 OK | Consumer found and returned. |
404 Not Found | No consumer exists with the given consumerId. |