{"id":20199444,"url":"https://github.com/roblesdotdev/flask-rest","last_synced_at":"2025-07-07T00:07:11.928Z","repository":{"id":174832342,"uuid":"652790790","full_name":"roblesdotdev/flask-rest","owner":"roblesdotdev","description":"REST Apis with flask","archived":false,"fork":false,"pushed_at":"2023-06-13T00:00:44.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-03T08:44:56.439Z","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/roblesdotdev.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":"2023-06-12T20:02:20.000Z","updated_at":"2023-06-12T20:04:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec15d2b6-07cd-4149-85f7-cd376a8a8b4d","html_url":"https://github.com/roblesdotdev/flask-rest","commit_stats":null,"previous_names":["roblesdotdev/flask-rest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roblesdotdev/flask-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fflask-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fflask-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fflask-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fflask-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roblesdotdev","download_url":"https://codeload.github.com/roblesdotdev/flask-rest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fflask-rest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263991445,"owners_count":23540665,"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":[],"created_at":"2024-11-14T04:37:34.892Z","updated_at":"2025-07-07T00:07:11.922Z","avatar_url":"https://github.com/roblesdotdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Rest\n\n### Setup Environment\n\n```\npython3 -m venv .venv\nsource .venv/bin/activate\npip install flask\n```\n\n### Setup flask app\n\n```\n# app.py\nfrom flask import Flask\n\napp = Flask(__name__)\n\n@app.get(\"/\")\ndef greet():\n    return { \"message\": \"Hello World\" }\n```\n\n```\n# Makefile\n\nrun:\n    flask run --debug\n```\n\n### Create API Specification\n\n```\n# oas.yaml\nopenapi: 3.0.3\n\ninfo:\n  title: FLASK REST API\n  description: API to learn flask\n  version: 1.0.0\n\npaths:\n  /stores:\n    get:\n      summary: Returns a list of store items\n      responses:\n        '200':\n          description: A JSON array of stores\n          content:\n            application/json:\n              schema:\n                $ref: '#/components/schemas/ListStoresSchema'\n                \n# ...\n```\n\n### Implement endpoints\n\n```\n@app.get(\"/stores\")\ndef get_stores():\n    return {\"stores\": stores}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblesdotdev%2Fflask-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froblesdotdev%2Fflask-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblesdotdev%2Fflask-rest/lists"}