This is an implementation for Transnational Routes And Schedule System API which provides the capability to query location routes and the departure schedule from Transnational. It calls Transnational's Routes and Schedule APIs, and then transforms their result in FirstBooking's Canonical Routes and Schedule Data models.
More about Transnational Routes And Schedule System API can be found at https://anypoint.mulesoft.com/exchange/portals/scrollwell/4c4287b2-7066-4b83-864f-60985a79247e/transnational-routes-and-schedule-system-api/
- Currently there are no secutiry requirements for this API hence its not secured
- Schedules API has not been implemented yet. Hence, it will return HTTP status code 501 upon invocation.
- Currently it calls the SOAP-UI mocks. But this is easily configurable and changeable to call actual APIs. For that, you may preferably want to create another config yaml file
To run the application from Anypoint Studio perform the following steps:
- Fetch the project from Github
- Extract the SOAP-UI Mocks from src/test/resources/soapui-mocks directory
- Import the files in SOAP-UI and run the mock. There is only one mock for Routes API because Schedules API has not been implemented.
- Edit Run Configurations to provide an environment variables: env = dev
- Run the configuration
- Extract the Postman collection and environment files from src/test/resources/postman
- Import the Postman collection and environment files in Postman
- Select firstbooking-dev and invoke the requests