Skip to content

shreyasmm/rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Rest API

Easy to understand Simple Flask App from flask-restful

Run

pip install -r requirements.txt
python api.py

Docker Build

docker build -t todoapp:latest .
docker run -d --name mytodoapp -p 8080:5000 todoapp:latest 

Routes

GET

curl http://localhost:5000/todos
curl http://localhost:5000/todos/todo1

CREATE

curl http://localhost:5000/todos -d "task=something new" -X POST -v

UPDATE

curl http://localhost:5000/todos/todo3 -d "task=something different" -X PUT -v

DELETE

curl http://localhost:5000/todos/todo2 -X DELETE -v

About

Simple Rest API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published