{"id":41374947,"url":"https://github.com/thinkful-ed/solution-code-restful-api-development-with-flask","last_synced_at":"2026-01-23T10:01:52.176Z","repository":{"id":203766122,"uuid":"710359158","full_name":"Thinkful-Ed/solution-code-restful-api-development-with-flask","owner":"Thinkful-Ed","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-26T19:08:52.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2023-11-20T17:51:12.831Z","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/Thinkful-Ed.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}},"created_at":"2023-10-26T14:36:14.000Z","updated_at":"2023-10-26T14:41:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0fff81b-4d0a-4de2-8ca1-7bbcc0b8336f","html_url":"https://github.com/Thinkful-Ed/solution-code-restful-api-development-with-flask","commit_stats":null,"previous_names":["thinkful-ed/solution-code-restful-api-development-with-flask"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/Thinkful-Ed/solution-code-restful-api-development-with-flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkful-Ed%2Fsolution-code-restful-api-development-with-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkful-Ed%2Fsolution-code-restful-api-development-with-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkful-Ed%2Fsolution-code-restful-api-development-with-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkful-Ed%2Fsolution-code-restful-api-development-with-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thinkful-Ed","download_url":"https://codeload.github.com/Thinkful-Ed/solution-code-restful-api-development-with-flask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thinkful-Ed%2Fsolution-code-restful-api-development-with-flask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28687414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-23T10:00:43.269Z","updated_at":"2026-01-23T10:01:52.160Z","avatar_url":"https://github.com/Thinkful-Ed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solution Code RESTful API Development With Flask\n\n## Objective\n\nThis repository contains a collection of Flask-based APIs demonstrating various functionalities:\n\n- **Sentiment Analysis**: Analyzes the sentiment of textual content.\n- **API Path Versioning**: Demonstrates how to version your API routes.\n- **Custom Error Handling**: Implements custom error handlers for a Flask application.\n\n## Installation\n\n1. Clone this repository.\n2. Navigate to the project directory:\n\n   ```bash\n   cd solution-code-restful-api-development-with-flask\n   ```\n3. Set up a virtual environment (recommended). Depending on your OS, use one of the following:\n   - macOS and Linux:\n     ```bash\n     python -m venv solution-code-restful-api-development-with-flask-venv;\n     source solution-code-restful-api-development-with-flask-venv/bin/activate;\n     ```\n   - Windows:\n     ```bash\n     python -m venv solution-code-restful-api-development-with-flask-venv\n     .\\solution-code-restful-api-development-with-flask-venv\\Scripts\\activate\n     ```\n4. Install the required packages (Flask should be in the `requirements.txt`):\n   ```shell\n   pip install -r requirements.txt\n   ```\n5. Run the desired API. Replace `file_name.py` with the specific API file you want to run:\n   * By default, the API will start on `http://127.0.0.1:5001`\n   ```bash\n   # To Run: error-handling-api.py\n   python error-handling-api.py\n\n    # To Run: api-path-versioning.py\n    python api-path-versioning.py\n\n   # To Run: error-handling-api.py\n   python error-handling-api.py\n   ```\n\n## API Descriptions\n\n1. Sentiment Analysis API (`sentiment-analysis-api.py`):\n   - Retrieve all data: `GET /data`\n   - Add new data \u0026 analyze sentiment: `POST /data`\n   - Update specific data content: `PUT /data/\u003cid\u003e`\n   - Delete specific data: `DELETE /data/\u003cid\u003e`\n2. API Path Versioning (`api-path-versioning.py`):\n   - Get users for version 1: `GET /v1/users`\n   - Get users for version 2 (with added details): `GET /v2/users`\n3. Custom Error Handling API (`error-handling-api.py`):\n   - If a route is not found or there's an internal server error, custom error handlers provide detailed error information.\n\n## Notes\n\nEach API file is designed to run independently. Make sure only one file is running at a time on the same port to avoid conflicts.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkful-ed%2Fsolution-code-restful-api-development-with-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkful-ed%2Fsolution-code-restful-api-development-with-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkful-ed%2Fsolution-code-restful-api-development-with-flask/lists"}