{"id":25198186,"url":"https://github.com/drmick/haskell-rest-api","last_synced_at":"2025-04-04T17:20:51.545Z","repository":{"id":81250464,"uuid":"475489356","full_name":"drmick/haskell-rest-api","owner":"drmick","description":"Haskell Rest API","archived":false,"fork":false,"pushed_at":"2022-04-01T15:14:38.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T02:41:27.541Z","etag":null,"topics":["haskell"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drmick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-03-29T14:49:47.000Z","updated_at":"2022-03-29T15:17:39.000Z","dependencies_parsed_at":"2023-02-28T08:31:16.325Z","dependency_job_id":null,"html_url":"https://github.com/drmick/haskell-rest-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drmick%2Fhaskell-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drmick%2Fhaskell-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drmick%2Fhaskell-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drmick%2Fhaskell-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drmick","download_url":"https://codeload.github.com/drmick/haskell-rest-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217203,"owners_count":20903009,"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":["haskell"],"created_at":"2025-02-10T02:41:13.057Z","updated_at":"2025-04-04T17:20:51.539Z","avatar_url":"https://github.com/drmick.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haskell Rest API\n\n#### Build\n```\ndocker-compose build\n```\n#### Run\n```\ndocker-compose up\n```\n#### Use\n\n```\n# Register new user\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"username\": \"scott\", \"password\": \"tiger\"}' http://localhost:3000/sign_up\n\n# Add Book\ncurl -u scott:tiger -X POST -H \"Content-Type: application/json\" -d '{\"title\": \"Crime and punishment\"}' http://localhost:3000/books/\n\n# List Books\ncurl -u scott:tiger -X GET -H \"Content-Type: application/json\" http://localhost:3000/books/\n\n# Get Book\ncurl -u scott:tiger -X GET -H \"Content-Type: application/json\" http://localhost:3000/books/1\n\n# Update Book\ncurl -u scott:tiger -X PUT -H \"Content-Type: application/json\" -d '{\"title\": \"War and Peace\"}' http://localhost:3000/books/1\n\n# Delete Book\ncurl -u scott:tiger -X DELETE -H \"Content-Type: application/json\" http://localhost:3000/books/1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrmick%2Fhaskell-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrmick%2Fhaskell-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrmick%2Fhaskell-rest-api/lists"}