{"id":31718684,"url":"https://github.com/speakeasy-api/flask-openapi-example","last_synced_at":"2026-01-20T17:40:18.858Z","repository":{"id":261806454,"uuid":"885237041","full_name":"speakeasy-api/flask-openapi-example","owner":"speakeasy-api","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-04T20:55:43.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T06:44:00.010Z","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/speakeasy-api.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":"2024-11-08T08:10:23.000Z","updated_at":"2025-08-04T20:55:47.000Z","dependencies_parsed_at":"2024-11-08T15:21:57.521Z","dependency_job_id":"05d8c0a1-d564-4ece-93e4-e94f95f81b18","html_url":"https://github.com/speakeasy-api/flask-openapi-example","commit_stats":null,"previous_names":["ritza-co/openapi-flask","ritza-co/openapi-flask-example","speakeasy-api/flask-openapi-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/speakeasy-api/flask-openapi-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fflask-openapi-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fflask-openapi-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fflask-openapi-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fflask-openapi-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speakeasy-api","download_url":"https://codeload.github.com/speakeasy-api/flask-openapi-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fflask-openapi-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000731,"owners_count":26082906,"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-10-09T02:00:07.460Z","response_time":59,"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":"2025-10-09T02:54:51.433Z","updated_at":"2025-10-09T02:54:52.980Z","avatar_url":"https://github.com/speakeasy-api.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n \u003ca href=\"https://www.speakeasy.com/\" target=\"_blank\"\u003e\n  \u003cimg width=\"1500\" height=\"500\" alt=\"Speakeasy\" src=\"https://github.com/user-attachments/assets/0e56055b-02a3-4476-9130-4be299e5a39c\" /\u003e\n \u003c/a\u003e\n \u003cbr /\u003e\n \u003cbr /\u003e\n  \u003cdiv\u003e\n   \u003ca href=\"https://speakeasy.com/docs/create-client-sdks/\" target=\"_blank\"\u003e\u003cb\u003eDocs Quickstart\u003c/b\u003e\u003c/a\u003e\u0026nbsp;\u0026nbsp;//\u0026nbsp;\u0026nbsp;\u003ca href=\"https://go.speakeasy.com/slack\" target=\"_blank\"\u003e\u003cb\u003eJoin us on Slack\u003c/b\u003e\u003c/a\u003e\n  \u003c/div\u003e\n \u003cbr /\u003e\n\n\u003c/div\u003e\n\n\u003ch2\u003eSpeakeasy Flask OpenAPI Example\u003c/h2\u003e\n\nThis is a simple Library API built with Flask, `flask-smorest`, and SQLAlchemy. It provides the endpoints used to manage books in a library, including creating, reading, updating, and deleting books. The API documentation is available via Swagger UI.\n\n## Features\n\n* Create, read, update, and delete books\n* OpenAPI documentation served via Swagger UI\n* SQLite database for data storage\n\n## Prerequisites:\n\n* Python 3.7+\n* Flask\n* `flask-smorest`\n* Flask-SQLAlchemy\n* `flask-marshmallow`\n* PyYAML\n\n\n## Installation\n  \nClone the repository:\n\n```bash\ngit clone https://github.com/speakeasy-api/openapi-flask-example.git\ncd openapi-flask-example\n```\n\nCreate and activate a virtual environment:\n\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n```\n\nInstall the dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n## Running the application\n\nRun the Flask application:\n\n```bash\npython app.py\n```\n\nThe application will start on `http://127.0.0.1:5000`.\n\n## API endpoints\n\n* GET /books/ - List all books\n* POST /books/ - Create a new book\n* GET /books/\u003cint:book_id\u003e - Get a book by ID\n* PUT /books/\u003cint:book_id\u003e - Update a book by ID\n* DELETE /books/\u003cint:book_id\u003e - Delete a book by ID\n* OpenAPI document is available to download at `http://127.0.0.1:5000/openapi.yaml`.\n\n## Project structure\n\n* `app.py` - The main application file\n* `db.py` - Database initialization\n* `models.py` - Database models\n* `resources.py` - API resources and blueprints\n* `schemas.py` - Marshmallow schemas\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-api%2Fflask-openapi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeakeasy-api%2Fflask-openapi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-api%2Fflask-openapi-example/lists"}