Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

REST API for Retool project

NotificationsYou must be signed in to change notification settings

edelgm6/retool-pokedex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API to support list, create, and delete operations for a Pokemon list for a simple Retool project.

Endpoints

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
  • ExamplePOST:
{  '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

Testing

All endpoint functionality (list, create, delete) is covered.

python manage.py test

Running locally

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

About

REST API for Retool project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp