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/OpenAPI.master.yaml

    r459 r460  
     1openapi: 3.1.0
    12info:
    23  title: 7 Days To Die WebAPI
    3   version: 1.0.0
    4 openapi: 3.1.0
     4  version: '1.0.0'
    55servers:
    66  - url: /
     
    8181      description: 3D vector in full blocks
    8282
     83    TypeUserIdString:
     84      type: string
     85      pattern: '^\[a-zA-Z]+_[\w]+$'
     86      examples:
     87        - 'Steam_76561198021925107'
     88      description: User ID including platform
     89
     90    TypeUserIdObject:
     91      anyOf:
     92        - type: object
     93          properties:
     94            combinedString:
     95              $ref: '#/components/schemas/TypeUserIdString'
     96            platformId:
     97              type: string
     98              examples:
     99                - Steam
     100                - XBL
     101              description: Gaming platform the ID references
     102            userId:
     103              type: string
     104              examples:
     105                - '76561198021925107'
     106              description: Unique ID of the user within the given gaming platform
     107          required:
     108            - combinedString
     109            - platformId
     110            - userId
     111          description: User ID
     112        - type: 'null'
     113
    83114
    84115  responses:
     
    126157
    127158paths:
    128   allOf:
Note: See TracChangeset for help on using the changeset viewer.