Skip to content

ovats/akka-http-tapir-v2

Repository files navigation

akka-http-tapir v2

Demo of Tapir Library:

This is just an example how to use Tapir to define endpoints.

The service define some endpoints to handle contacts.

Each contact contain the following information:

  • Full name
  • Telephone
  • Email
  • Country of birth

Endpoints for Contacts

  • POST /contacts: add a contact
  • PUT /contacts: update a contact
  • DELETE /contacts/{email}: delete a contact
  • GET /contacts/{email}: get contact info
  • GET /contacts: get all contacts

Each contact is identified by its email.

Tapir documentation generated by Tapir

The Swagger/OAS 3 documentation can be browsed at http://localhost:8080/docs. The documentation is generated automatically by Tapir. The implementation of the endpoint in charge of retrieving this info is defined in openAPIDocRoute in class MainApi. All the work is done by Tapir.

Links related to Tapir

Releases

No releases published

Packages

No packages published

Languages