Skip to content

Commit

Permalink
docs: add autopilot routes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Dec 12, 2024
1 parent 85cc70d commit 1ad3b46
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changeset/add_bus_routes_to_openapi_spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ default: major
Added routes:
- accounts
- alerts
- autopilot
- buckets
50 changes: 50 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,56 @@ paths:
schema:
type: string

/bus/autopilot:
get:
summary: Get autopilot configuration
description: Returns the current autopilot configuration.
responses:
"200":
description: Successfully retrieved autopilot configuration
content:
application/json:
schema:
$ref: "#/components/schemas/AutopilotConfig"
"500":
description: Internal server error
content:
text/plain:
schema:
type: string
put:
summary: Update autopilot configuration
description: Updates the autopilot configuration.
requestBody:
content:
application/json:
schema:
type: object
properties:
enabled:
type: boolean
description: Whether the autopilot is enabled
contracts:
$ref: "#/components/schemas/ContractsConfig"
hosts:
$ref: "#/components/schemas/HostsConfig"
required: []
responses:
"200":
description: Successfully updated autopilot configuration
"400":
description: Malformed request
content:
text/plain:
schema:
type: string
"500":
description: Internal server error
content:
text/plain:
schema:
type: string

/bus/buckets:
get:
summary: Get all buckets
Expand Down

0 comments on commit 1ad3b46

Please sign in to comment.