Skip to content

Module: api_gateway

Rishabh Jain edited this page Feb 8, 2022 · 3 revisions

API Gateway is a gateway that separates the user interface from other microservices. The purpose of the gate is to validate incoming requests, routing requests to the backend services, and return an appropriate response to the client UI. The service exposes its endpoint to the following services:

  1. UI component
  2. DB middleware
  3. RabbitMQ

The service will be running on port - 5000

Following are the endpoints exposed to

  • UI component

/getAllInfo

Method: GET

Request:

Response: { station_name : [] time:[] property:[] }

/getAllStatus

Request: { "user_email":"[email protected]" }

Response:

/postCheckRequest

Request: { "request_id":"rishabh_request_id", "property":"reflectivity" }

Response:

/postNewRequest

Request: { "user_email": "Adasdasd", "request_id":"rishabh_request_id_123_12", "property":"reflectivity"

} Response: {

}

/getDataOfRequestID

Request: {

}

Response: { }

  • Queue Worker

/data_writer

Request: { }

Response: {

}

Clone this wiki locally