Ignore:
Timestamp:
Aug 11, 2023, 6:29:09 PM (15 months ago)
Author:
alloc
Message:

More OpenAPI specs added
OpenAPI specs cleanup to have everything validate fine
Added CORS support to API endpoints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TFP-WebServer/WebServer/src/WebAPI/APIs/WorldState/Animal.openapi.yaml

    r459 r460  
    22info:
    33  title: Animal
    4   version: 1
     4  version: '1'
    55
    66components:
     
    1010      properties:
    1111        id:
    12           $ref: '#/components/schemas/TypeEntityId'
     12          $ref: './openapi.yaml#/components/schemas/TypeEntityId'
    1313        name:
    1414          type: string
     
    1616            - animalStag
    1717        position:
    18           $ref: '#/components/schemas/TypeVector3i'
     18          $ref: './openapi.yaml#/components/schemas/TypeVector3i'
    1919      required:
    2020        - id
     
    4747                    $ref: '#/components/schemas/AnimalList'
    4848                  meta:
    49                     $ref: '#/components/schemas/ResultEnvelopeMeta'
     49                    $ref: './openapi.yaml#/components/schemas/ResultEnvelopeMeta'
    5050                required:
    5151                  - data
    5252                  - meta
    5353        403:
    54           $ref: '#/components/responses/Unauthorized'
     54          $ref: './openapi.yaml#/components/responses/Unauthorized'
    5555      security:
    5656        - apiTokenName: []
Note: See TracChangeset for help on using the changeset viewer.