You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: poggit-api-specification.yml
+74-23Lines changed: 74 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ servers:
6
6
- url: https://poggit.pmmp.io
7
7
description: Poggit API
8
8
paths:
9
-
/pmapis:
9
+
/pmapis.min:
10
10
get:
11
11
summary: Retrieve a list of pocketmine API versions
12
12
operationId: getApiVersions
@@ -19,7 +19,18 @@ paths:
19
19
type: object
20
20
additionalProperties:
21
21
$ref: '#/components/schemas/ApiVersion'
22
-
/releases.list:
22
+
/pmapis.full.min:
23
+
get:
24
+
summary: Retrieve a list of pocketmine API versions
25
+
operationId: getApiVersionsFull
26
+
responses:
27
+
"200":
28
+
description: Ok
29
+
content:
30
+
application/json:
31
+
schema:
32
+
$ref: '#/components/schemas/ApiVersionsOverview'
33
+
/releases.min.json:
23
34
get:
24
35
summary: Retrieve a plugin list
25
36
description: You may retrieve a list of voted/approved plugins using this endpoint (along with some aliases which are functionally identical)
@@ -285,6 +296,31 @@ paths:
285
296
type: string
286
297
components:
287
298
schemas:
299
+
ApiVersionsOverview:
300
+
type: object
301
+
properties:
302
+
promoted:
303
+
type: string
304
+
example: "5.27.1"
305
+
promotedCompat:
306
+
type: string
307
+
example: "5.0.0"
308
+
latest:
309
+
type: string
310
+
example: "5.27.1"
311
+
latestCompat:
312
+
type: string
313
+
example: "5.0.0"
314
+
versions:
315
+
type: object
316
+
additionalProperties:
317
+
$ref: '#/components/schemas/ApiVersion'
318
+
required:
319
+
- promoted
320
+
- promotedCompat
321
+
- latest
322
+
- latestCompat
323
+
- versions
288
324
ApiVersion:
289
325
type: object
290
326
properties:
@@ -312,13 +348,23 @@ components:
312
348
type: boolean
313
349
phar:
314
350
$ref: '#/components/schemas/PharList'
351
+
required:
352
+
- id
353
+
- description
354
+
- php
355
+
- incompatible
356
+
- indev
357
+
- supported
358
+
- phar
315
359
PharList:
316
360
description: This is an object, where the default attribute is a link to a PocketMine-MP.phar of that API version. More links may be added in the future.
0 commit comments