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 space resource transformer for REST API version 1 #99

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 SpaceResource resource.

Acceptance criteria

Technical outworking

Tasks

Design

SpaceResource resource

  schemas:
    Space:
      type: object
      properties:
        id:
          type: integer
          format: bigint20
        name:
          type: string
        description:
          type: string
        is_open_for_reservations:
          type: boolean
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - name
        - is_open_for_reservations
cyrildewit commented 2 years ago

@cyrildewit todo: work out the design of the space resource data contract.