Skip to content

zsofiak96/hello-rocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
  }
]

About

An async API built with rocket

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages