Skip to content

stefanholzmueller/todobackend-endpoints4s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

endpoints4s Todo-Backend

An implementation of the Todo-Backend REST API in Scala with endpoints4s. It also offers a self-hosted OpenAPI documentation, accessible via Swagger UI.

This API is hosted on Heroku here: https://todobackend-endpoints4s.herokuapp.com (opens Swagger UI)

The automated test spec for Todo-Backend can be run here: https://todobackend.com/specs/index.html?https://todobackend-endpoints4s.herokuapp.com/todos

May be useful as an example setup of endpoints4s with http4s and doobie. All is held together by Cats Effect.

Used Scala libraries

endpoints4s

Describes the API in typesafe Scala code and produces the OpenAPI documentation.

http4s

Runs the routes generated by endpoints4s, handles CORS and serves Swagger UI.

doobie

JDBC access layer for a PostgreSQL database.

Quill

Interestingly, Quill can be used to generate SQL statements for doobie, and I played around with that as well.

About

Example REST API with endpoints4s, http4s and doobie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages