{"id":15828654,"url":"https://github.com/thesgj/simple-flask-api","last_synced_at":"2026-01-28T18:33:01.006Z","repository":{"id":114469683,"uuid":"478856733","full_name":"TheSGJ/Simple-Flask-Api","owner":"TheSGJ","description":"Simple Api using flask.","archived":false,"fork":false,"pushed_at":"2022-04-07T07:34:00.000Z","size":80,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T08:03:56.823Z","etag":null,"topics":["flask","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheSGJ.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}},"created_at":"2022-04-07T06:33:18.000Z","updated_at":"2022-08-21T13:15:38.000Z","dependencies_parsed_at":"2023-06-08T07:00:33.852Z","dependency_job_id":null,"html_url":"https://github.com/TheSGJ/Simple-Flask-Api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TheSGJ/Simple-Flask-Api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSGJ%2FSimple-Flask-Api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSGJ%2FSimple-Flask-Api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSGJ%2FSimple-Flask-Api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSGJ%2FSimple-Flask-Api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheSGJ","download_url":"https://codeload.github.com/TheSGJ/Simple-Flask-Api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSGJ%2FSimple-Flask-Api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28849160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"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":["flask","python"],"created_at":"2024-10-05T10:41:43.914Z","updated_at":"2026-01-28T18:33:00.991Z","avatar_url":"https://github.com/TheSGJ.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Steps required for configuring the project.\n\u003e Clone the repository using the git bash :\n```bash\ngit clone https://github.com/TheSGJ/Simple-Flask-Api.git\n```\n\u003e Move to the project directory :\n```bash\ncd Simple-Flask-Api\n\n```\n\n\u003e Create a virtual environment :\n```bash\n# Let's install virtualenv first\npip install virtualenv\n\n# if you want isolate your project then you can create virtual environment to run your flask app separately. (Optional)\nvirtualenv env\n\n```\n\n\u003e Activate the virtual environment :\n```bash\nenv\\scripts\\activate\n\n```\n\n\u003e Install the requirements or install flask directly using pip install flask :\n```bash\npip install -r requirements.txt\n\n```\n\n\n\n### Running the Flask App:\n\n--\u003e To run the App, we use :\n```bash\nflask run\n\n```\n\n\u003e Then, the development server will be started at http://127.0.0.1:5000/\n## Get Request using the Http Client:\n![Get Request](https://cdn.jsdelivr.net/gh/thesgj/Simple-Flask-Api/img/GetR_ApiClient.jpg)\n\u003e You can use your preferable http client, for example Postman\n## Post Request using the Http Client\n![Post Request](https://cdn.jsdelivr.net/gh/thesgj/Simple-Flask-Api/img/PostR_ApiClient.jpg)\n### About Flask:\nFlask is a minimal Python framework that helps you create a web server. \n\nLet's take a look at the example code we have:\n\n```python\nfrom flask import Flask\n\napp = Flask(__name__)\n\n@app.route(\"/\")\ndef hello_world():\n    return \"\u003ch1\u003eHello, World!\u003c/h1\u003e\"\n```\n\t\nWhat did that code do?\n\nFirst we `import` the `Flask` class. An instance of this class will be our WSGI application.\n\nNext we create an instance of this class. The first argument is the name of the application’s module or package. `__name__` is a convenient shortcut for this that is appropriate for most cases. This is needed so that Flask knows where to look for resources such as templates and static files.\n\nWe then use the `route()` decorator to tell Flask what URL should trigger our function. In this case we use `/` routh, which is the default route of any website.\n\nThe function returns the message we want to display in the user’s browser. The default content type is HTML, so HTML in the string will be rendered by the browser.\n\nTo learn more, checkout the [official guide](https://flask.palletsprojects.com/en/2.0.x/quickstart/).\n\n# License\n\n[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesgj%2Fsimple-flask-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesgj%2Fsimple-flask-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesgj%2Fsimple-flask-api/lists"}