KA-Huis / space-management

The core application of the KA-Huis
https://ka-huis.github.io/space-management
Apache License 2.0
0 stars 0 forks source link

Create reservation resource transformer for REST API version 1 #117

Closed cyrildewit closed 2 years ago

cyrildewit commented 2 years ago

Description

New REST API endpoints will be created in the following week(s). One common implementation that's needed, before these tickets can be picked up is the ReservationResource resource.

Acceptance criteria

Technical outworking

Tasks

Design

ReservationResource resource

  schemas:
    Reservation:
      type: object
      properties:
        id:
          type: integer
          format: bigint20
        starts_at:
          type: string
          format: date-time
        ends_at:
          type: string
          format: date-time
        space_id:
          type: integer
          format: bigint20
        group_id:
          type: integer
          format: bigint20
        created_by_user_id:
          type: integer
          format: bigint20
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - starts_at
        - ends_at
        - created_by_user_id
cyrildewit commented 2 years ago

Output of OpenAPI scheme in Swagger:

Screenshot 2022-04-30 at 22 44 11