openapi: 3.0.3
info:
  title: Rooms
  description: ''
  version: 1.0.0
servers:
  -
    url: 'http://localhost'
paths:
  /buildings:
    post:
      summary: Create
      operationId: create
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Buildings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Must not be greater than 255 characters.'
                  example: egrxunnaepwez
                address:
                  type: string
                  description: ''
                  example: illo
                observations:
                  type: string
                  description: ''
                  example: repellat
                imageId:
                  type: string
                  description: ''
                  example: non
              required:
                - name
      security: []
  /buildings/search:
    post:
      summary: Search
      operationId: search
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Buildings
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                offset:
                  type: integer
                  description: ''
                  example: 5
                limit:
                  type: integer
                  description: ''
                  example: 18
                searchTerm:
                  type: string
                  description: ''
                  example: exercitationem
                filters:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
                order:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
      security: []
  '/buildings/{building_id}':
    get:
      summary: Details
      operationId: details
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Buildings
      security: []
    put:
      summary: Update
      operationId: update
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Buildings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Must not be greater than 255 characters.'
                  example: erqfrjpzipdf
                address:
                  type: string
                  description: ''
                  example: hic
                observations:
                  type: string
                  description: ''
                  example: quam
                imageId:
                  type: string
                  description: ''
                  example: pariatur
              required:
                - name
      security: []
    delete:
      summary: Delete
      operationId: delete
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Buildings
      security: []
    parameters:
      -
        in: path
        name: building_id
        description: 'The ID of the building.'
        example: 1
        required: true
        schema:
          type: integer
  /sanctum/csrf-cookie:
    get:
      summary: 'Return an empty response simply to trigger the storage of the CSRF cookie in the browser.'
      operationId: returnAnEmptyResponseSimplyToTriggerTheStorageOfTheCSRFCookieInTheBrowser
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /_ignition/health-check:
    get:
      summary: ''
      operationId: get_ignitionHealthCheck
      description: ''
      parameters: []
      responses:
        404:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: ''
                properties:
                  message:
                    type: string
                    example: ''
      tags:
        - Endpoints
      security: []
  /_ignition/execute-solution:
    post:
      summary: ''
      operationId: post_ignitionExecuteSolution
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                solution:
                  type: string
                  description: ''
                  example: architecto
                parameters:
                  type: object
                  description: ''
                  example: null
                  properties: {  }
              required:
                - solution
      security: []
  /_ignition/update-config:
    post:
      summary: ''
      operationId: post_ignitionUpdateConfig
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                theme:
                  type: string
                  description: ''
                  example: light
                  enum:
                    - light
                    - dark
                    - auto
                editor:
                  type: string
                  description: ''
                  example: et
                hide_solutions:
                  type: boolean
                  description: ''
                  example: true
              required:
                - theme
                - editor
                - hide_solutions
      security: []
  /rooms/export:
    post:
      summary: ''
      operationId: postRoomsExport
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                offset:
                  type: integer
                  description: ''
                  example: 9
                limit:
                  type: integer
                  description: ''
                  example: 1
                searchTerm:
                  type: string
                  description: ''
                  example: quo
                filters:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
                order:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
      security: []
  /health:
    get:
      summary: 'Handle the incoming request.'
      operationId: handleTheIncomingRequest
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Endpoints
      security: []
  /facilities:
    get:
      summary: 'Find all facilities'
      operationId: findAllFacilities
      description: ''
      parameters: []
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  errorMessage: messages.unauthorized
                properties:
                  errorMessage:
                    type: string
                    example: messages.unauthorized
      tags:
        - Facilities
      security: []
    post:
      summary: Create
      operationId: create
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Facilities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Must not be greater than 255 characters.'
                  example: bknb
              required:
                - name
      security: []
  /rooms/types:
    get:
      summary: 'Find all room type'
      operationId: findAllRoomType
      description: ''
      parameters: []
      responses:
        401:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  errorMessage: messages.unauthorized
                properties:
                  errorMessage:
                    type: string
                    example: messages.unauthorized
      tags:
        - 'Room Types'
      security: []
    post:
      summary: Creaate
      operationId: creaate
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Room Types'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Must not be greater than 255 characters.'
                  example: wfajslonrrikj
              required:
                - name
      security: []
  /rooms:
    post:
      summary: Create
      operationId: create
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Rooms
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                buildingId:
                  type: string
                  description: ''
                  example: consequuntur
                facultyId:
                  type: integer
                  description: ''
                  example: 7
                name:
                  type: string
                  description: 'Must not be greater than 255 characters.'
                  example: mwxmtqnzjqapzdhmbozhht
                abbreviation:
                  type: string
                  description: 'Must not be greater than 255 characters.'
                  example: gktuoqcxocbupho
                typeId:
                  type: integer
                  description: ''
                  example: 2
                maxSeatsNo:
                  type: number
                  description: 'Must be at least 0.'
                  example: 38
                floor:
                  type: number
                  description: ''
                  example: 1685266.0
                observations:
                  type: string
                  description: ''
                  example: vitae
                imageId:
                  type: string
                  description: ''
                  example: quia
                facilities:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
              required:
                - buildingId
                - name
                - abbreviation
                - typeId
      security: []
  /rooms/search:
    post:
      summary: Search
      operationId: search
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Rooms
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                offset:
                  type: integer
                  description: ''
                  example: 3
                limit:
                  type: integer
                  description: ''
                  example: 7
                searchTerm:
                  type: string
                  description: ''
                  example: aut
                filters:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
                order:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
      security: []
  '/rooms/{room_id}':
    get:
      summary: Details
      operationId: details
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Rooms
      security: []
    put:
      summary: Update
      operationId: update
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Rooms
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                buildingId:
                  type: string
                  description: ''
                  example: ut
                facultyId:
                  type: integer
                  description: ''
                  example: 19
                name:
                  type: string
                  description: 'Must not be greater than 255 characters.'
                  example: dyfyueiiuuuvoal
                abbreviation:
                  type: string
                  description: 'Must not be greater than 255 characters.'
                  example: btsopaxjlss
                typeId:
                  type: number
                  description: ''
                  example: 2291.511868994
                maxSeatsNo:
                  type: number
                  description: 'Must be at least 0.'
                  example: 17
                floor:
                  type: number
                  description: ''
                  example: 757319.82542
                observations:
                  type: string
                  description: ''
                  example: optio
                imageId:
                  type: string
                  description: ''
                  example: quidem
                facilities:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
              required:
                - buildingId
                - name
                - abbreviation
                - typeId
      security: []
    delete:
      summary: Delete
      operationId: delete
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Rooms
      security: []
    parameters:
      -
        in: path
        name: room_id
        description: 'The ID of the room.'
        example: 14
        required: true
        schema:
          type: integer
  '/rooms/export/{exportParams_id}':
    get:
      summary: Export
      operationId: export
      description: ''
      parameters: []
      responses:
        500:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Server Error'
                properties:
                  message:
                    type: string
                    example: 'Server Error'
      tags:
        - Rooms
      security: []
    parameters:
      -
        in: path
        name: exportParams_id
        description: 'The ID of the exportParams.'
        example: 4
        required: true
        schema:
          type: integer
tags:
  -
    name: Buildings
    description: ''
  -
    name: Endpoints
    description: ''
  -
    name: Facilities
    description: ''
  -
    name: 'Room Types'
    description: ''
  -
    name: Rooms
    description: ''
