{"id":17997379,"url":"https://github.com/thma/servant-gp","last_synced_at":"2025-06-24T00:32:04.409Z","repository":{"id":146286034,"uuid":"608701035","full_name":"thma/servant-gp","owner":"thma","description":"writing a Rest Service with a generic-persistence backend","archived":false,"fork":false,"pushed_at":"2023-12-15T17:43:14.000Z","size":59,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T06:23:21.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thma.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-02T15:04:46.000Z","updated_at":"2023-03-02T15:28:52.000Z","dependencies_parsed_at":"2023-12-15T18:39:10.241Z","dependency_job_id":null,"html_url":"https://github.com/thma/servant-gp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thma/servant-gp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thma%2Fservant-gp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thma%2Fservant-gp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thma%2Fservant-gp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thma%2Fservant-gp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thma","download_url":"https://codeload.github.com/thma/servant-gp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thma%2Fservant-gp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261582657,"owners_count":23180634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T21:18:20.399Z","updated_at":"2025-06-24T00:32:04.386Z","avatar_url":"https://github.com/thma.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# servant-gp\n\nThis is a demo project for [servant](https://haskell-servant.github.io/) and [generic-persistence](https://github.com/thma/generic-persistence).\n\nIt shows how to use servant to build a REST API for a simple persistence model.\nThe Data is stored in a Sqlite database using generic-persistence as persistence layer.\n\nThe model is defined in `src/Models.hs` and the API is defined in `src/UserApi.hs`.\n\nThe API is implemented in `src/UserServer.hs` (with the GP default API) and in `src/UserServerSafe.hs` (using an API with total functions, where exceptions are returned as `Left PersistenceException`).\n\nThe `app/Main.hs` module contains the main function to start the server.\n\n`src/SwaggerEntityService` contains a servant-swagger module to generate a swagger API description.\n\n```bash\normolu -i ./**/*.hs\nstylish-haskell -i ./**/*.hs\n``````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthma%2Fservant-gp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthma%2Fservant-gp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthma%2Fservant-gp/lists"}