source: TFP-WebServer/WebServer/src/WebAPI/APIs/GameData/EntityClass.openapi.yaml@ 492

Last change on this file since 492 was 485, checked in by alloc, 9 months ago

22.0.0.0 Commands release

  • Only A22 compatibility fix

22.0.0.0 MapRendering release (no code changes)

22.0.1.0 WebServer release

  • Updated to dashboard files 0.8.5
  • Added API 'EntityClass'
  • Changed API 'Command' default permissions
  • Added some A22 compatibility changes
  • Fixed some OpenAPI docs

22.0.1.0 MarkersMod release

  • Updated web files
File size: 1.4 KB
Line 
1openapi: 3.1.0
2info:
3 title: EntityClass
4 version: '1'
5
6components:
7 schemas:
8 EntityClassElement:
9 type: object
10 properties:
11 name:
12 type: string
13 examples:
14 - zombieArlene
15 id:
16 type: integer
17 examples:
18 - -1440238285
19 commandId:
20 type: integer
21 examples:
22 - 1
23 manualSpawnType:
24 type: string
25 examples:
26 - None
27 - Console
28 - Menu
29 required:
30 - name
31 - id
32 - manualSpawnType
33
34 EntityClassList:
35 type: array
36 items:
37 $ref: '#/components/schemas/EntityClassElement'
38
39
40paths:
41 /api/entityclass:
42 get:
43 tags:
44 - GameData
45 summary: EntityClass list
46 description: Fetch a list of defined EntityClasses
47 operationId: entityclass.get
48 responses:
49 200:
50 description: List of EntityClasses
51 content:
52 application/json:
53 schema:
54 type: object
55 properties:
56 data:
57 $ref: '#/components/schemas/EntityClassList'
58 meta:
59 $ref: './openapi.yaml#/components/schemas/ResultEnvelopeMeta'
60 required:
61 - data
62 - meta
Note: See TracBrowser for help on using the repository browser.