This documentation provides details about the routes and endpoints exposed by the application.
Endpoint: GET /bookingservice
Checks if the user is authenticated.
Response:
{
"err": {},
"message": "User is authenticated",
"success": true,
"data": "User is already successfully authenticated"
}
Endpoint: GET /flightservice
Checks if the user is an admin.
Response:
{
"err": {},
"message": "User is admin",
"success": true,
"data": "User is already admin"
}
Endpoint: Proxy /bookingservice
Proxies requests to the Booking Service at http://localhost:3002/
.
Endpoint: Proxy /flightService
Proxies requests to the Flight Service at http://localhost:3001/
.
Endpoint: GET /home
Returns a simple "ok" message.
Response:
{
"message": "ok"
}
- Reminder service Endpoint
- Booking service Endpoint
- Auth service Endpoint
- Flights and Search services
Please note that this documentation provides information about the various routes and their purposes in the provided code.
The routes related to checking authentication and authorization utilize middleware to ensure secure access.
The proxy routes are used to forward requests to other services.
Make sure to follow proper security practices and implement the necessary middleware, such as the AuthValidatorMiddleware
and AdminValidatorMiddleware
, to secure your application.