Skip to content

nashville-software-school-workshops/library-api-python

Repository files navigation

Library API

Setup instructions:

  1. Create your own repo using this template
  2. git clone that new repo locally
  3. pipenv shell
  4. pipenv install
  5. Create a file called library.sqlite3
  6. Run library.sql on that database
  7. Start the debugger and test with http://localhost:8000/genres. You should get genres back

Leading the workshop

  1. Search for TODO to see the unimplemented code in the repo
  2. Complete the views in order.

Suggested stretch goals

  1. custom endpoint to checkout a material at /materials/{id}/checkout
  2. custom endpoint to return a material at /materials/{id}/return
  3. Add logic to add a calculated due_date property to the material details based on checkout_date and the material_type.checkout_days

About

template for instructor-led behavior modeling session on basic api building with sqlite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages