/sanic-rest-api

Simple CRUD for managing dog and breed entities

Primary LanguagePython

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']