- Notifications
You must be signed in to change notification settings - Fork0
edelgm6/retool-pokedex
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
REST API to support list, create, and delete operations for a Pokemon list for a simple Retool project.
pokemon/
GET
list of Pokemon in the database- Example response:
{ 'pk': '5', 'name': 'Wartortle', 'nickname': 'Warhoss', 'pokeapi_url': 'http://wartorle.com', 'date_added': '2020-02-09'}
pokemon/
POST
create new Pokemon in the database- Example
POST
:
{ 'name': 'Wartortle', 'nickname': 'Warhoss', 'pokeapi_url': 'http://wartorle.com', 'date_added': '2020-02-09'}
pokemon/{pk}
:DELETE
Delete single Pokemon from the database
pokemon/{pk}
:PUT
Update single Pokemon in the database
All endpoint functionality (list, create, delete) is covered.
python manage.py test
The app is configured to run on Heroku.To run locally, create alocal_settings.py
file and drop into theapi/
directory.
#local_settings.pyDEBUG = TrueSECRET_KEY = YOUR_SECRET_KEY