{"id":17009291,"url":"https://github.com/shridarpatil/restapiz","last_synced_at":"2026-04-29T00:07:19.664Z","repository":{"id":46084483,"uuid":"83680939","full_name":"shridarpatil/RestApiz","owner":"shridarpatil","description":"Create rest api's dynamically within no time.","archived":false,"fork":false,"pushed_at":"2022-12-26T20:28:21.000Z","size":91,"stargazers_count":3,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T23:36:00.177Z","etag":null,"topics":["auto-generate-restapi","dynamic-restapi","flask","restapi"],"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/shridarpatil.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-02T13:30:31.000Z","updated_at":"2024-05-12T05:13:06.000Z","dependencies_parsed_at":"2023-01-31T01:15:35.155Z","dependency_job_id":null,"html_url":"https://github.com/shridarpatil/RestApiz","commit_stats":null,"previous_names":["shridarpatil/flask-restapi"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shridarpatil%2FRestApiz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shridarpatil%2FRestApiz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shridarpatil%2FRestApiz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shridarpatil%2FRestApiz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shridarpatil","download_url":"https://codeload.github.com/shridarpatil/RestApiz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386827,"owners_count":20930723,"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":["auto-generate-restapi","dynamic-restapi","flask","restapi"],"created_at":"2024-10-14T05:43:14.549Z","updated_at":"2026-04-29T00:07:19.635Z","avatar_url":"https://github.com/shridarpatil.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flask-AutoGenerate-RestApi\n-------\n[![Build Status](https://img.shields.io/travis/shridarpatil/RestApiz.svg)](https://travis-ci.org/shridarpatil/RestApiz)\n[![PyPi version](https://img.shields.io/pypi/v/RestApiz.svg)](https://pypi.python.org/pypi/RestApiz)\n[![Updates](https://pyup.io/repos/github/shridarpatil/RestApiz/shield.svg)](https://pyup.io/repos/github/shridarpatil/RestApiz/)\n\n\n\nCreate rest api's dynamically within no time.\n\n\n* Free software: MIT license\n\u003c!-- * Documentation: https://RestApiz.readthedocs.io. --\u003e\n\n\nFeatures\n--------\n\n* Create Rest like apis without writing tons of lines of code.\n\n# Flask-RestApi\nRestApi module is used to create rest apis dynamically\n\n## Installation\n```pip install RestApiz```\n\n### Prerequisites\nFlask, MySQL\n\n## Getting Started\n\nimport RestApi\n\n## Example\n\n- Create rest api table\n    - Name:  py_restapi \n    - Fields: id, method, query, url, before_query and after_query\n    \n- Create table po with fields poid and potext.\n\nPOST:\n--------\n- For POST create entry in rest api table and call rest api as follows\n\n| rest_id  | method | query  | url | before_query | after_query |\n| -------- | ------ | ------ | --- | ------------ | ----------- |\n| 1  | POST  | po  | insert into po(poid, potext) values(%s, %s)  | validatepost.validate_before:validation | validatepost.validate_after:validation\n\nUrl:/postPo\n\nMethod:POST\n\nContent-Type:application/json\n\nBody:{\"poid\":1, \"potext\":\"po text\"}\n### Note:\n```Inserts data into table 'po' ```\n\nGET:\n---\n- For GET create entry in rest api table and call rest api as follows\n\n| rest_id  | method | query  | url | before_query | after_query |\n| -------- | ------ | ------ | --- | ------------ | ----------- |\n| 1  | GET  | select * from po where id=:id\t  | getPo  | |  |\n\n\nUrl:/getPo?id=1\n\nMethod:GET\n\nBody:{\"poid\":1, \"potext\":\"po text\"}\n\nPUT:\n----\n- For PUT create entry in rest api table and call rest api as follows\n\n| rest_id  | method | query  | url | before_query | after_query |\n| -------- | ------ | ------ | --- | ------------ | ----------- |\n| 1  | PUT  | update po set potext=:potext where poid=;poid\t  | putPo  | |  |\n\n Url: putPo?poid=1\n \n Method:PUT\n \n Body:{\"poid\":\"Updated using RestApiz\"}\n \n DELETE:\n----\n- For DELETE create entry in rest api table and call rest api as follows\n\n| rest_id  | method | query  | url | before_query | after_query |\n| -------- | ------ | ------ | --- | ------------ | ----------- |\n| 1  | DELETE  | delete from po where poid=;poid | deletePo  | |  |\n\n Url: deletePo?poid=1\n \n Method:delete\n \n \n```\nfrom flask import Flask\nimport RestApi\n\napp = Flask(__name__)\n\nRestApi.createApi(app, host='localhost', userName='username', \n                  password='password', database='databasename')\n\nif __name__ == \"__main__\":\n    app.run()\n```\n\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n* [_Cookiecutter](https://github.com/audreyr/cookiecutter)\n* [`audreyr/cookiecutter-pypackage`](https://github.com/audreyr/cookiecutter-pypackage)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshridarpatil%2Frestapiz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshridarpatil%2Frestapiz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshridarpatil%2Frestapiz/lists"}