Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 2.13 KB

fastapi.md

File metadata and controls

70 lines (46 loc) · 2.13 KB

APIs

Token

Logging in posts a token as a global state variable in redux. Get is used to access account information. Delete occurs at logout.

Accounts

Post at this path creates an account in the accounts table

Categories

Get at this path returns the 11 possible categories that are in the database

Locations

Get returns all locations in the system. Get with account_id returns the location stored in a user's account for location purposes. Post creates a location that a user can input for a class or for their profile.

Account Details

Get returns an account with the the account details. Put updates those details.

Events

Classes

Reservations

  • Method: POST

  • Paths: 'http://localhost:8000/api/reservations' creates a reservation

  • Method: GET, PUT

  • Path: 'http://localhost:8000/api/reservations/{reservation_id} Get retrieves one reservation by id and put updates it

  • Method: GET -Path: http://localhost:8000/api/student/reservations/{student_id} retrieves all reservations that a student has made

  • Method: GET

  • Path: http://localhost:8000/api/reservations/instructors/{instructor_id} retrieves all reservations made for a class offered by an instructor. For the instructor dashboard.