{"id":18614178,"url":"https://github.com/evalle/study-rest","last_synced_at":"2025-11-03T03:30:22.687Z","repository":{"id":76969524,"uuid":"85875188","full_name":"Evalle/study-rest","owner":"Evalle","description":"RestfulAPI application written in Flask","archived":false,"fork":false,"pushed_at":"2017-05-19T20:11:12.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T02:43:24.155Z","etag":null,"topics":["flask","python","python3","restfull-api","study-rest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Evalle.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":"2017-03-22T20:54:57.000Z","updated_at":"2017-05-19T20:09:17.000Z","dependencies_parsed_at":"2023-02-27T05:45:43.042Z","dependency_job_id":null,"html_url":"https://github.com/Evalle/study-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evalle%2Fstudy-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evalle%2Fstudy-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evalle%2Fstudy-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evalle%2Fstudy-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Evalle","download_url":"https://codeload.github.com/Evalle/study-rest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406447,"owners_count":19633024,"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":["flask","python","python3","restfull-api","study-rest"],"created_at":"2024-11-07T03:25:28.806Z","updated_at":"2025-11-03T03:30:22.612Z","avatar_url":"https://github.com/Evalle.png","language":"Python","readme":"# study-rest\nRestfulAPI with Python and Flask, see this [article](https://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask) for more information. \n\nThe HTTP request methods are typically designed to affect a given resource in standard ways:\n\n| HTTP Method | Action | Examples | \n|-------------|--------|----------|\n| GET |  Obtain information about a resource | http://example.com/api/orders (retrieve order list) | \n| GET | Obtain information about a resource | http://example.com/api/orders/123 (retrieve order #123) | \n| POST | Create a new resource | http://example.com/api/orders (create a new order, from data provided with the request) |\n| PUT | Update a resource | http://example.com/api/orders/123 (update order #123, from data provided with the request) |  \n| DELETE | Delete a resource | http://example.com/api/orders/123 (delete order #123) | \n\nThe task of designing a web service or API that adheres to the REST guidelines then becomes an exercise in identifying the resources that will be exposed and how they will be affected by the different request methods.\n\nOur tasks resource will use HTTP methods as follows:\n\n| HTTP Method | URI | Action | \n|-------------|-----|--------|\n| GET | http://[hostname]/todo/api/v1.0/tasks | Retrieve list of tasks | \n| GET | http://[hostname]/todo/api/v1.0/tasks/[task_id] | Retrieve a task | \n| POST | http://[hostname]/todo/api/v1.0/tasks | Create a new task | \n| PUT | http://[hostname]/todo/api/v1.0/tasks/[task_id] | Retrieve list of tasks | \n| DELETE | http://[hostname]/todo/api/v1.0/tasks/[task_id] | Delete a task | \n\nTo start the server, run\n``` console\n$ cd todo-api \u0026\u0026 chmod +x app.py \u0026\u0026 ./app.py\n```\n\nAnd test it via\n``` console\n$ curl -u evgeny:python -i http://localhost:5000/todo/api/v1.0/task\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevalle%2Fstudy-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevalle%2Fstudy-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevalle%2Fstudy-rest/lists"}