{"id":20619587,"url":"https://github.com/shearichard/flask-for-redux-testing","last_synced_at":"2026-04-23T09:33:29.247Z","repository":{"id":145202367,"uuid":"468292743","full_name":"shearichard/flask-for-redux-testing","owner":"shearichard","description":"Flask based RESTFUL API to use for testing Redux Toolkit against.","archived":false,"fork":false,"pushed_at":"2022-07-11T01:16:41.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T19:08:08.755Z","etag":null,"topics":["flask","flask-restful","openapi","python","swagger"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shearichard.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-03-10T10:21:20.000Z","updated_at":"2022-04-08T09:44:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c7d8d2e-6687-45b9-b036-ff72c1077571","html_url":"https://github.com/shearichard/flask-for-redux-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shearichard/flask-for-redux-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shearichard%2Fflask-for-redux-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shearichard%2Fflask-for-redux-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shearichard%2Fflask-for-redux-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shearichard%2Fflask-for-redux-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shearichard","download_url":"https://codeload.github.com/shearichard/flask-for-redux-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shearichard%2Fflask-for-redux-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32174623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","flask-restful","openapi","python","swagger"],"created_at":"2024-11-16T12:12:03.893Z","updated_at":"2026-04-23T09:33:29.231Z","avatar_url":"https://github.com/shearichard.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask API for Redux Toolkit Testing \n## Summary \n\nA simple flask app to test the [Redux Toolkit](https://redux-toolkit.js.org/rtk-query/usage-with-typescript).\n\nA number of API end points are provided to interact with a database of movie information.\n\n## Online Documenation (OpenAPI/Swagger)\n\nThe API endpoints are documented as part of the project and can be accessed at http://127.0.0.1:5000/swagger and http://127.0.0.1:5000/swagger-ui .\n\nThere are some notes about how that was done [here](https://progressstory.com/tech/python/swagger-api-doc-automation-with-flask-restful/).\n\n## Sample API calls\n\n### Movies \n\n#### ADD a new movie\n\n```\ncurl -X POST http://127.0.0.1:5000/movies -H 'Content-Type: application/json' -d '{\"audience_score_percent\": \"55\", \"film\": \"Test Film 2\", \"genre\": \"Comedy\", \"lead_studio\": \"Warner Bros.\", \"profitability\": \"1.9802064\", \"rotten_tomatoes_percent\": \"8\", \"worldwide_gross_usd\": \"$69.31 \", \"year\": \"2017\"}'\n\n```\n\n\n### Todos\n\nThese Sample API calls have been copied from the [flask-restful](https://flask-restful.readthedocs.io/en/latest/quickstart.html) documentation.\n\n#### GET the list\n\n```\n$ curl http://localhost:5000/todos\n{\"todo1\": {\"task\": \"build an API\"}, \"todo3\": {\"task\": \"profit!\"}, \"todo2\": {\"task\": \"?????\"}}\n\nGET a single task\n\n$ curl http://localhost:5000/todos/todo3\n{\"task\": \"profit!\"}\n```\n\n#### DELETE a task\n\n```\n$ curl http://localhost:5000/todos/todo2 -X DELETE -v\n\n\u003e DELETE /todos/todo2 HTTP/1.1\n\u003e User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3\n\u003e Host: localhost:5000\n\u003e Accept: */*\n\u003e\n* HTTP 1.0, assume close after body\n\u003c HTTP/1.0 204 NO CONTENT\n\u003c Content-Type: application/json\n\u003c Content-Length: 0\n\u003c Server: Werkzeug/0.8.3 Python/2.7.2\n\u003c Date: Mon, 01 Oct 2012 22:10:32 GMT\n```\n\n#### ADD a new task\n\n```\n$ curl http://localhost:5000/todos -d \"task=something new\" -X POST -v\n\n\u003e POST /todos HTTP/1.1\n\u003e User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3\n\u003e Host: localhost:5000\n\u003e Accept: */*\n\u003e Content-Length: 18\n\u003e Content-Type: application/x-www-form-urlencoded\n\u003e\n* HTTP 1.0, assume close after body\n\u003c HTTP/1.0 201 CREATED\n\u003c Content-Type: application/json\n\u003c Content-Length: 25\n\u003c Server: Werkzeug/0.8.3 Python/2.7.2\n\u003c Date: Mon, 01 Oct 2012 22:12:58 GMT\n\u003c\n* Closing connection #0\n{\"task\": \"something new\"}\n```\n\n#### UPDATE a task\n\n```\n$ curl http://localhost:5000/todos/todo3 -d \"task=something different\" -X PUT -v\n\n\u003e PUT /todos/todo3 HTTP/1.1\n\u003e Host: localhost:5000\n\u003e Accept: */*\n\u003e Content-Length: 20\n\u003e Content-Type: application/x-www-form-urlencoded\n\u003e\n* HTTP 1.0, assume close after body\n\u003c HTTP/1.0 201 CREATED\n\u003c Content-Type: application/json\n\u003c Content-Length: 27\n\u003c Server: Werkzeug/0.8.3 Python/2.7.3\n\u003c Date: Mon, 01 Oct 2012 22:13:00 GMT\n\u003c\n* Closing connection #0\n{\"task\": \"something different\"}\n\n\n```\n\n## TODO\nIntegrate [flask-restx](https://flask-restx.readthedocs.io/en/latest/) to make use of the [swagger capability](https://flask-restx.readthedocs.io/en/latest/swagger.html).\n\n## Credits\nThe initial movie data, movie.csv, is from https://gist.github.com/tiangechen/b68782efa49a16edaf07dc2cdaa855ea which has no explicit license so I'm assuming is free to use, I'm happy to remove it from the project if anyone wishes to complain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshearichard%2Fflask-for-redux-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshearichard%2Fflask-for-redux-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshearichard%2Fflask-for-redux-testing/lists"}