Skip to content

Commit e95528b

Browse files
committed
Add openapi spec
1 parent be680d1 commit e95528b

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

openapi.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,69 @@ paths:
9292
type: string
9393
format: date-time
9494

95+
"/releases/release-candidates.php":
96+
get:
97+
summary: "Currently RC versions of PHP."
98+
parameters:
99+
- in: query
100+
name: format
101+
schema:
102+
type: string
103+
enum: [ "json", "serialize" ]
104+
required: false
105+
description: Output format
106+
- in: query
107+
name: only
108+
schema:
109+
type: string
110+
enum: [ "dev_versions" ]
111+
required: false
112+
description: Include only dev version numbers
113+
114+
responses:
115+
"200":
116+
description: "Actively RC per-branch versions of PHP."
117+
content:
118+
"application/json":
119+
schema:
120+
type: array
121+
items:
122+
type: object
123+
properties:
124+
active:
125+
description: "Whether RC version is active"
126+
type: boolean
127+
release:
128+
type: object
129+
properties:
130+
type:
131+
description: "Unstable release type"
132+
type: string
133+
enum:
134+
- alpha
135+
- beta
136+
- RC
137+
number:
138+
description: "Unstable release number"
139+
type: integer
140+
sha256_gz:
141+
description: "Unstable release gz hash"
142+
type: string
143+
sha256_bz2:
144+
description: "Unstable release bz2 hash"
145+
type: string
146+
sha256_xz:
147+
description: "Unstable release xz hash"
148+
type: string
149+
date:
150+
description: "Date of release"
151+
type: string
152+
baseurl:
153+
description: "Download base URL"
154+
type: string
155+
enabled:
156+
description: "enabled"
157+
type: boolean
158+
dev_version:
159+
description: "dev_version"
160+
type: string

0 commit comments

Comments
 (0)