Skip to content
Snippets Groups Projects

fix: Fix missing components in spec

1 file
+ 54
10
Compare changes
  • Side-by-side
  • Inline
+ 54
10
@@ -7,7 +7,7 @@ info:
@@ -7,7 +7,7 @@ info:
url: https://www.eclipse.org/legal/epl-2.0/
url: https://www.eclipse.org/legal/epl-2.0/
servers:
servers:
- url: https://api.eclipse.org/download
- url: https://api.eclipse.org/downloads
description: Production endpoint for the download information
description: Production endpoint for the download information
tags:
tags:
@@ -17,6 +17,22 @@ tags:
@@ -17,6 +17,22 @@ tags:
description: Definitions in relation to retrieval of mailing lists
description: Definitions in relation to retrieval of mailing lists
paths:
paths:
 
/file:
 
get:
 
tags:
 
- Files
 
summary: List of files
 
description: Returns a list of all file index metadata
 
responses:
 
200:
 
description: Success
 
content:
 
application/json:
 
schema:
 
$ref: "#/components/schemas/Files"
 
500:
 
description: Error while retrieving data
 
/file/{file_id}:
/file/{file_id}:
parameters:
parameters:
- name: file_id
- name: file_id
@@ -72,7 +88,7 @@ paths:
@@ -72,7 +88,7 @@ paths:
schema:
schema:
$ref: "#/components/schemas/Release"
$ref: "#/components/schemas/Release"
400:
400:
description: Bad Request
description: Bad Request - Invalid release type
content:
content:
application/json:
application/json:
schema:
schema:
@@ -80,6 +96,22 @@ paths:
@@ -80,6 +96,22 @@ paths:
500:
500:
description: Error while retrieving data
description: Error while retrieving data
 
/releases/active:
 
get:
 
tags:
 
- Releases
 
summary: Active releases
 
description: Returns a list of active releases
 
responses:
 
200:
 
description: Success
 
content:
 
application/json:
 
schema:
 
$ref: "#/components/schemas/Releases"
 
500:
 
description: Error while retrieving data
 
/releases/{releaseType}/{releaseName}:
/releases/{releaseType}/{releaseName}:
parameters:
parameters:
- name: releaseType
- name: releaseType
@@ -107,7 +139,13 @@ paths:
@@ -107,7 +139,13 @@ paths:
schema:
schema:
$ref: "#/components/schemas/Releases"
$ref: "#/components/schemas/Releases"
400:
400:
description: Bad Request
description: Bad Request - Invalid release type
 
content:
 
application/json:
 
schema:
 
$ref: "#/components/schemas/Error"
 
404:
 
description: Not Found - Release name not found
content:
content:
application/json:
application/json:
schema:
schema:
@@ -120,7 +158,7 @@ paths:
@@ -120,7 +158,7 @@ paths:
application/json:
application/json:
schema:
schema:
$ref: "#/components/schemas/Error"
$ref: "#/components/schemas/Error"
/releases/{releaseType}/{releaseName}/{releaseVersion}:
/releases/{releaseType}/{releaseName}/{releaseVersion}:
parameters:
parameters:
- name: releaseType
- name: releaseType
@@ -154,7 +192,13 @@ paths:
@@ -154,7 +192,13 @@ paths:
schema:
schema:
$ref: "#/components/schemas/Release"
$ref: "#/components/schemas/Release"
400:
400:
description: Bad Request
description: Bad Request - Invalid release type
 
content:
 
application/json:
 
schema:
 
$ref: "#/components/schemas/Error"
 
404:
 
description: Not Found - Release name/version not found
content:
content:
application/json:
application/json:
schema:
schema:
@@ -167,7 +211,7 @@ paths:
@@ -167,7 +211,7 @@ paths:
application/json:
application/json:
schema:
schema:
$ref: "#/components/schemas/Error"
$ref: "#/components/schemas/Error"
components:
components:
schemas:
schemas:
NullableString:
NullableString:
@@ -332,18 +376,18 @@ components:
@@ -332,18 +376,18 @@ components:
sha512:
sha512:
$ref: "#/components/schemas/NullableString"
$ref: "#/components/schemas/NullableString"
description: the sha512 checksum for the release file
description: the sha512 checksum for the release file
Error:
Error:
type: object
type: object
properties:
properties:
status_code:
status_code:
type: integer
type: integer
description: HTTP response code
description: HTTP response code
message:
message:
type: string
type: string
description: Message containing error information
description: Message containing error information
url:
url:
type:
type:
- string
- string
- "null"
- "null"
description: The URL
description: The URL
Loading