Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OpenAPI Specification #42

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,46 @@
description: Invalid bucket ID
'401':
description: Unauthorized to delete bucket with given ID
/v1/health:
get:
tags:
- Health

Check warning on line 723 in api.yaml

View workflow job for this annotation

GitHub Actions / regenerate-sdks-on-oas-change / regenerate-sdks / regenerate-sdks

operation-tag-defined Operation tags must be defined in global tags.
summary: list
operationId: Health_list
description: >
List the current health status of all services. Statuses update every 5 minutes.
responses:
'200':
description: Look up success
content:
application/json:
schema:
$ref: '#/components/schemas/HealthResponse'
/v1/health/{service}:
get:
tags:
- Health

Check warning on line 738 in api.yaml

View workflow job for this annotation

GitHub Actions / regenerate-sdks-on-oas-change / regenerate-sdks / regenerate-sdks

operation-tag-defined Operation tags must be defined in global tags.
summary: get
operationId: Health_get
description: >
Look up the current health status of a specific service. Statuses update every 5 minutes.
parameters:
- description: The name of the service to look up.
in: path
name: service
example: search
required: true
schema:
type: string
responses:
'200':
description: Look up success
content:
application/json:
schema:
$ref: '#/components/schemas/HealthResponse'
'400':
description: Invalid service name
components:
schemas:
SearchRequest:
Expand Down Expand Up @@ -1187,6 +1227,44 @@
message:
type: string
example: OK
HealthService:
type: object
required:
- lastUpdate
- service
- status
properties:
lastUpdate:
type: string
description: The data time when the service status was last updated, in RFC3339 format
format: date-time
example: '2023-10-03T08:59:39.312Z'
service:
type: string
description: The name of the service
example: search
status:
type: string
description: The health status of the service
enum:
- healthy
- degraded
- down
- unknown
HealthResponse:
type: object
required:
- health
properties:
health:
type: object
required:
- services
properties:
services:
type: array
items:
$ref: '#/components/schemas/HealthService'
securitySchemes:
ApiKeyAuth:
type: apiKey
Expand Down
Loading