Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 747 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 747 Bytes

An async API built with rocket

Exploratory project that exposes a GET endpoint which acts as an intermediary layer for fetching a Postgres database.

Testing

The docker-compose.yml set up the development environment for testing. It creates the table rocket containing the following attributes: id, name, launch_date. The project uses Flyway for migrations.

Request

The /launch/<launch_date> endpoint queries the rocket table and returns the rocket names which were launched later than the launch_date in the request form.

Response

The endpoint outputs a list of objects as key value pairs, e.g.:

[
  {
    "name": "Falcon 9"
  },
  {
    "name": "H-3"
  }
]