{"id":19618588,"url":"https://github.com/cleder/book-request","last_synced_at":"2025-08-01T08:34:05.522Z","repository":{"id":66133649,"uuid":"338098110","full_name":"cleder/book-request","owner":"cleder","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-25T10:27:44.000Z","size":42,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-25T16:43:33.026Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/cleder.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,"zenodo":null}},"created_at":"2021-02-11T17:19:51.000Z","updated_at":"2024-10-16T15:40:29.000Z","dependencies_parsed_at":"2023-04-12T10:39:06.512Z","dependency_job_id":"5266be6d-1eab-4c8f-a508-5ec83259a473","html_url":"https://github.com/cleder/book-request","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cleder/book-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fbook-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fbook-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fbook-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fbook-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleder","download_url":"https://codeload.github.com/cleder/book-request/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fbook-request/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268192592,"owners_count":24210541,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-11T11:09:59.974Z","updated_at":"2025-08-01T08:34:05.487Z","avatar_url":"https://github.com/cleder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# book-request\n\nA small app to evaluate FastApi\n\nI chose FastAPI over Flask because I wanted to try FastApi and testing with schemathesis.\n\n## Installation\nCreate a virtualenvironment with python 3.8 or 3.9.\nInstall the reequirements with `pip install -r requirements.txt`.\nRun the application with `uvicorn app:app` and goto `http://localhost:8000/docs`\n\n## Add Request Endpoint\nThis allows a user to request a particular book, and returns the request object along with an id\nby which it can be referred to. Ensure email is of a valid format, and that title exists in our\nlist of titles in the database. This is currently a fixed dictionary.\n\n`/request [POST]`\n\n- email {string} the email address of the requesting user\n- title {string} the title of the requested book\n\nReturns a JSON response with the following:\n- email {string} the email address of the requesting user\n- title {string} the title of the requested book\n- id {string} an id which the newly created user can be referred to by\n- timestamp {string} a timestamp set to the date and time that the user made the initial request.\n\n## Retrieve Request(s) Endpoint\nThis allows a user to retrieve an existing request by using an id, or a list of all existing requests\nif id is omitted.\n\n`/request/{id} [GET]`\n\nReturns a JSON response with values depending on whether id was provided. If it was, there\nshould only be one value, and it should match return value of the POST endpoint above. If there\nis no id given, it should be a list of all requests, each being in the same format as a single one\nwould be.\n\n## Delete Request Endpoint\nThis allows a user to remove an existing request.\n\n`/request/{id} [DELETE]`\n\nReturns no body.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleder%2Fbook-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleder%2Fbook-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleder%2Fbook-request/lists"}