Skip to content

datotoda/Note_Restful_Flask_Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Note Restful Api

This is a Restful Api written on Flask where you can send GET, POST, PUT and DELETE requests for notes CRUD operations. Used flask, flask-restful, flask-sqlalchemy.


Documentations

Install requirements

$ pip install -r requirements.txt

Examples

Get all notes

$ curl --request GET "{URL}/notes"

Get note by id

$ curl --request GET "{URL}/note/{id}"

Create note by id

$ curl --request POST "{URL}/note/{id}" --form "title={title}" --form "body={body}"

Update note by id

$ curl --request PUT "{URL}/note/{id}" --form "title={title}" --form "body={body}"

Delete note by id

$ curl --request Delete "{URL}/note/{id}"

Releases

No releases published

Packages

No packages published

Languages