https://github.com/thma/scotty-gp-service
using scotty and generic-persistence to build a database backed REST service in Haskell
https://github.com/thma/scotty-gp-service
Last synced: 9 months ago
JSON representation
using scotty and generic-persistence to build a database backed REST service in Haskell
- Host: GitHub
- URL: https://github.com/thma/scotty-gp-service
- Owner: thma
- License: other
- Created: 2024-11-16T17:03:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-01T22:52:45.000Z (over 1 year ago)
- Last Synced: 2025-03-16T00:23:23.770Z (over 1 year ago)
- Language: Haskell
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# scotty-gp-service
Using scotty and generic-persistence to build a database backed REST service in Haskell
## Features demontrated
- REST API with Scotty routes
- Database access with generic-persistence
- Pagination of results with `page`and `size` query parameters backed by generic-persistence queries
- Request Logging with `logStdoutDev` WAI middleware
- Access Authorization with token based authentication using `wai-middleware-bearer` middleware
## Detailed Description
You can find a detailed description of the code in the following blog post: [Real World REST APIs with Scotty and Generic-Persistence](https://thma.github.io/posts/2024-12-05-real-worlds-rest-services-with-scotty-and-gp.html).