{"id":18254145,"url":"https://github.com/douglarek/restful","last_synced_at":"2025-10-19T08:06:11.371Z","repository":{"id":15743695,"uuid":"18482318","full_name":"douglarek/restful","owner":"douglarek","description":"A RESTful sample with Flask.","archived":false,"fork":false,"pushed_at":"2022-08-15T07:26:29.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-24T19:28:08.725Z","etag":null,"topics":["flask","restful-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/douglarek.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2014-04-06T03:45:46.000Z","updated_at":"2022-08-15T07:25:30.000Z","dependencies_parsed_at":"2022-09-24T03:34:28.312Z","dependency_job_id":null,"html_url":"https://github.com/douglarek/restful","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglarek%2Frestful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglarek%2Frestful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglarek%2Frestful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglarek%2Frestful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douglarek","download_url":"https://codeload.github.com/douglarek/restful/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223150742,"owners_count":17095959,"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","restful-api"],"created_at":"2024-11-05T10:10:38.702Z","updated_at":"2025-10-19T08:06:11.252Z","avatar_url":"https://github.com/douglarek.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"RESTful\n=======\n\nA RESTful sample with Flask.\n\n-  get todo list:\n\n   ::\n\n       \u003e curl -i -H \"Content-Type: application/json\" http://restful-flask.herokuapp.com/todo/api/tasks/\n\n       HTTP/1.1 200\n       Content-Length: 432\n       Via: HTTP/1.1 GWA\n       Server: gunicorn/18.0\n       Connection: keep-alive\n       Date: Sun, 06 Apr 2014 06:46:25 GMT\n       Content-Type: application/json\n\n       {\n         \"tasks\": [\n           {\n             \"description\": \"Amazon, 360buy, Dangdang\",\n             \"done\": false,\n             \"id\": 1,\n             \"title\": \"Buy Books\",\n             \"uri\": \"http://restful-flask.herokuapp.com/todo/api/tasks/1\"\n       },\n           {\n             \"description\": \"Need to find a good Haskell tutorial on the web\",\n             \"done\": false,\n             \"id\": 2,\n             \"title\": \"Learn Haskell\",\n             \"uri\": \"http://restful-flask.herokuapp.com/todo/api/tasks/2\"\n           }\n         ]\n       }\n\n-  create a todo item:\n\n   ::\n\n       \u003e curl -i -H \"Content-Type: application/json\" -X POST -d '{\"title\": \"Learn Python\", \"description\": \"go Pythonic\"}' http://restful-flask.herokuapp.com/todo/api/tasks/ -u admin:admin\n\n       HTTP/1.1 201 CREATED\n       Content-Type: application/json\n       Date: Sun, 06 Apr 2014 06:49:30 GMT\n       Server: gunicorn/18.0\n       Content-Length: 151\n       Connection: keep-alive\n\n       {\"task\": {\"done\": false, \"uri\": \"http://restful-flask.herokuapp.com/todo/api/tasks/3\", \"description\": \"go Pythonic\",     \"title\": \"Learn Python\", \"id\": 3}}\n\n-  lookup a single todo item:\n\n   ::\n\n       \u003e curl -i -H \"Content-Type: application/json\" http://restful-flask.herokuapp.com/todo/api/tasks/1\n\n       HTTP/1.1 200\n       Content-Length: 189\n       Via: HTTP/1.1 GWA\n       Server: gunicorn/18.0\n       Connection: keep-alive\n       Date: Sun, 06 Apr 2014 06:50:48 GMT\n       Content-Type: application/json\n\n       {\n         \"task\": {\n         \"description\": \"Amazon, 360buy, Dangdang\",\n         \"done\": false,\n         \"id\": 1,\n         \"title\": \"Buy Books\",\n         \"uri\": \"http://restful-flask.herokuapp.com/todo/api/tasks/1\"\n         }\n       }\n\n-  update a todo item:\n\n   ::\n\n       \u003e curl -i -H \"Content-Type: application/json\" -X PUT -d '{\"title\": \"Learn Python\", \"description\": \"go Pythonic\"}' http://restful-flask.herokuapp.com/todo/api/tasks/1 -u admin:admin\n\n       HTTP/1.1 200 OK\n       Content-Type: application/json\n       Date: Sun, 06 Apr 2014 06:51:49 GMT\n       Server: gunicorn/18.0\n       Content-Length: 179\n       Connection: keep-alive\n\n       {\n         \"task\": {\n         \"description\": \"go Pythonic\",\n         \"done\": false,\n         \"id\": 1,\n         \"title\": \"Learn Python\",\n         \"uri\": \"http://restful-flask.herokuapp.com/todo/api/tasks/1\"\n         }\n       }\n\n-  delete a todo item:\n\n   ::\n\n       \u003e curl -i -H \"Content-Type: application/json\" -X DELETE  http://restful-flask.herokuapp.com/todo/api/tasks/1 -u    admin:admin\n\n       HTTP/1.1 200 OK\n       Content-Type: application/json\n       Date: Sun, 06 Apr 2014 06:57:36 GMT\n       Server: gunicorn/18.0\n       Content-Length: 22\n       Connection: keep-alive\n\n       {\n         \"result\": \"True\"\n       }\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglarek%2Frestful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouglarek%2Frestful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglarek%2Frestful/lists"}