Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtorres90/flask_api_skeleton
https://github.com/rtorres90/flask_api_skeleton
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rtorres90/flask_api_skeleton
- Owner: rtorres90
- License: mit
- Created: 2017-12-23T02:19:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-23T14:23:57.000Z (about 7 years ago)
- Last Synced: 2024-11-01T04:28:26.911Z (3 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask_api_skeleton
This repository was made to store a simple template of a rest API using Flask.
## Installation.
Run the following command:
```
pip install -r requirements.txt
```## How to run and use.
Go to the api folder and run the following command:
```
python www.py
```Now open a new terminal to check if the api is working.
Use this command to check the *GET* method.
```
curl -i -X GET localhost:80/cats
```Use this command to check the *PUT* method.
```
curl -H "Content-Type: application/json" -i -X PUT -d '{"name":"don gato","age":"13"}' localhost:80/cat
```