Skip to content

Booking model and resource #391

@ngjunsiang

Description

@ngjunsiang

API routes

  • POST /api/v1/bookings/
    {"user_id": UUID, "venue_id": CampusID, "description": str, "start_time": Time, "end_time": Time, "date": Date, "created_at": DateTime}: Uploads a booking request

  • GET /api/v1/bookings/<booking_id>/ -> dict: Gets details of one booking by id

  • DELETE /api/v1/bookings/<booking_id>/: Deletes an existing booking by id

  • GET /api/v1/bookings/?user_id=&venue_id=&date= -> list[dict]: List bookings that meet criteria

  • PATCH /api/v1/bookings/<booking_id>/ {"description": str}: Updates booking description.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Implementation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions