{"id":25171203,"url":"https://github.com/basemax/quoteapipython","last_synced_at":"2025-07-09T23:11:05.003Z","repository":{"id":166336018,"uuid":"626505479","full_name":"BaseMax/QuoteAPIPython","owner":"BaseMax","description":"Build a RESTful API that generates random quotes. The quotes will be stored in a database and the API will expose endpoints for CRUD operations (Create, Read, Update, Delete).","archived":false,"fork":false,"pushed_at":"2025-06-21T07:37:41.000Z","size":85,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T22:47:44.921Z","etag":null,"topics":["fastapi","py","python","quote","quotes","restful"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2023-04-11T15:46:33.000Z","updated_at":"2025-06-21T18:50:47.000Z","dependencies_parsed_at":"2023-06-09T05:00:49.496Z","dependency_job_id":"eea45703-15e6-44a0-a857-e1d48d06b86b","html_url":"https://github.com/BaseMax/QuoteAPIPython","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/QuoteAPIPython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FQuoteAPIPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FQuoteAPIPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FQuoteAPIPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FQuoteAPIPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/QuoteAPIPython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FQuoteAPIPython/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505037,"owners_count":23618882,"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":["fastapi","py","python","quote","quotes","restful"],"created_at":"2025-02-09T09:19:34.317Z","updated_at":"2025-07-09T23:11:04.962Z","avatar_url":"https://github.com/BaseMax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quote API Python\n\n## Random Quote Generator API\n\nIn this project, we will build a RESTful API that generates random quotes. The quotes will be stored in a database and the API will expose endpoints for CRUD operations (Create, Read, Update, Delete).\n\nHere are some additional features we can add:\n\n- Filter quotes by author name or keyword in the text\n- Allow users to rate quotes and retrieve a list of top-rated quotes\n- Add user authentication and authorization to restrict access to quote creation, deletion, and updating\n\n## Technologies Used\n\n- Python\n- FastAPI\n- SQLAlchemy\n- SQLite\n\n## Requirements\n\n1. Retrieve a random quote\n\n```http\nGET /quotes/random\n```\n\nReturns a single random quote:\n\n```json\n{\n    \"id\": 1,\n    \"text\": \"The greatest glory in living lies not in never falling, but in rising every time we fall.\",\n    \"author\": \"Nelson Mandela\"\n}\n```\n\n2.Search in Quotes:\n\n```http\nGET /quotes?q=someone\n```\n\nResponse:\n\n```json\n[\n    {\n        \"id\": 5,\n        \"text\": \"Dignity will only happen when you realize that having someone in your life doesn’t validate your worth.\",\n        \"author\": \"Shannon L. Alder\"\n    }\n]\n```\n\n3. Retrieve a list of all quotes\n\n```http\nGET /quotes\n```\n\nReturns a list of all quotes in the system:\n\n```json\n[\n    {\n        \"id\": 1,\n        \"text\": \"The greatest glory in living lies not in never falling, but in rising every time we fall.\",\n        \"author\": \"Nelson Mandela\"\n    },\n    {\n        \"id\": 2,\n        \"text\": \"If you look at what you have in life, you'll always have more. If you look at what you don't have in life, you'll never have enough.\",\n        \"author\": \"Oprah Winfrey\"\n    }\n]\n```\n\n4. Add a new quote\n\n```http\nPOST /quotes\n```\n\nAdds a new quote to the system. The request body should include a JSON object with the following properties:\n- `text` (string, required): the text of the quote\n- `author` (string, required): the author of the quote\n\n```json\n{\n    \"text\": \"The best way to predict the future is to invent it.\",\n    \"author\": \"Alan Kay\"\n}\n```\n\n5. Update an existing quote\n\n```http\nPUT /quotes/{quote_id}\n```\n\nUpdates an existing quote with the given quote_id. The request body should include a JSON object with the following properties:\n- `text` (string): the new text of the quote\n- `author` (string): the new author of the quote\n\n```json\n{\n    \"text\": \"The only way to do great work is to love what you do.\",\n    \"author\": \"Steve Jobs\"\n}\n```\n\n6. Delete a quote\n\n```http\nDELETE /quotes/{quote_id}\n```\n\nDeletes the quote with the given `quote_id`.\n\nCopyright 2023, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fquoteapipython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fquoteapipython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fquoteapipython/lists"}