Skip to content

rbakulin/sanic-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CRUD for managing dog and breed entities


To create a breed:

'api/breeds', methods=['POST']

{"name": "Toyrerier", "size": "small"}

To create a dog:

'api/dogs', methods=['POST']

{"name": "Jack", "birthday": "05-19-2019", "color": "black", "breed": 1, "vaccinated": 1}

To search a dog:

'api/dogs/name_search/<dog_name>', methods=['GET']