Skip to content

Commit

Permalink
Add response data
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed Dec 13, 2023
1 parent f7e5d00 commit 63e85fb
Showing 1 changed file with 88 additions and 1 deletion.
89 changes: 88 additions & 1 deletion docs/specs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5570,7 +5570,27 @@
{
"$ref": "#/components/parameters/QueryFilter"
}
]
],
"responses": {
"200": {
"description": "| - 200 response",
"content": {
"application/json": {
"$ref": "#/components/schemas/CostGroupsResponse"
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
},
"put": {
"tags": [
Expand All @@ -5581,6 +5601,21 @@
"operationId": "putSettingsCostGroups",
"requestBody": {
"$ref": "#/components/requestBodies/CostGroupsBody"
},
"responses": {
"204": {
"description": "Cost groups updated"
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
},
"delete": {
Expand All @@ -5592,6 +5627,21 @@
"operationId": "deleteSettingsCostGroups",
"requestBody": {
"$ref": "#/components/requestBodies/CostGroupsBody"
},
"responses": {
"204": {
"description": "Cost groups updated"
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
Expand Down Expand Up @@ -6079,6 +6129,43 @@
}
},
"schemas": {
"CostGroupsResponse": {
"allOf": [
{
"$ref": "#/components/schemas/ListPagination"
},
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"properties": {
"project_name": {
"type": "string"
},
"group": {
"type": "string"
},
"default": {
"type": "boolean"
},
"clusters": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
]
},
"CostModel": {
"properties": {
"name": {
Expand Down

0 comments on commit 63e85fb

Please sign in to comment.