Skip to content

Commit

Permalink
[π˜€π—½π—Ώ] initial version
Browse files Browse the repository at this point in the history
Created using spr 1.3.4
  • Loading branch information
sunshowers committed Sep 28, 2023
2 parents 8602e46 + 54ae569 commit e4b53b7
Show file tree
Hide file tree
Showing 11 changed files with 930 additions and 378 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 52 additions & 45 deletions openapi/wicketd.json
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,33 @@
}
}
},
"/update": {
"post": {
"summary": "An endpoint to start updating one or more sleds, switches and PSCs.",
"operationId": "post_start_update",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StartUpdateParams"
}
}
},
"required": true
},
"responses": {
"204": {
"description": "resource updated"
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/update/{type}/{slot}": {
"get": {
"summary": "An endpoint to get the status of any update being performed or recently",
Expand Down Expand Up @@ -641,51 +668,6 @@
"$ref": "#/components/responses/Error"
}
}
},
"post": {
"summary": "An endpoint to start updating a sled.",
"operationId": "post_start_update",
"parameters": [
{
"in": "path",
"name": "slot",
"required": true,
"schema": {
"type": "integer",
"format": "uint32",
"minimum": 0
}
},
{
"in": "path",
"name": "type",
"required": true,
"schema": {
"$ref": "#/components/schemas/SpType"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StartUpdateOptions"
}
}
},
"required": true
},
"responses": {
"204": {
"description": "resource updated"
},
"4XX": {
"$ref": "#/components/responses/Error"
},
"5XX": {
"$ref": "#/components/responses/Error"
}
}
}
}
},
Expand Down Expand Up @@ -2761,6 +2743,31 @@
"skip_sp_version_check"
]
},
"StartUpdateParams": {
"type": "object",
"properties": {
"options": {
"description": "Options for the update.",
"allOf": [
{
"$ref": "#/components/schemas/StartUpdateOptions"
}
]
},
"targets": {
"description": "The SP identifiers to start the update with. Must be non-empty.",
"type": "array",
"items": {
"$ref": "#/components/schemas/SpIdentifier"
},
"uniqueItems": true
}
},
"required": [
"options",
"targets"
]
},
"StepComponentSummaryForGenericSpec": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit e4b53b7

Please sign in to comment.