Skip to content

Commit 94f5bb7

Browse files
Update OpenAPI to version generated from ref 868c687 (#1100)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d01f27c commit 94f5bb7

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

api/openapi.json

+74
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,55 @@
989989
}
990990
}
991991
},
992+
"/api/v1/workspaces/{provider_id}": {
993+
"get": {
994+
"tags": [
995+
"CodeGate API",
996+
"Workspaces"
997+
],
998+
"summary": "List Workspaces By Provider",
999+
"description": "List workspaces by provider ID.",
1000+
"operationId": "v1_list_workspaces_by_provider",
1001+
"parameters": [
1002+
{
1003+
"name": "provider_id",
1004+
"in": "path",
1005+
"required": true,
1006+
"schema": {
1007+
"type": "string",
1008+
"format": "uuid",
1009+
"title": "Provider Id"
1010+
}
1011+
}
1012+
],
1013+
"responses": {
1014+
"200": {
1015+
"description": "Successful Response",
1016+
"content": {
1017+
"application/json": {
1018+
"schema": {
1019+
"type": "array",
1020+
"items": {
1021+
"$ref": "#/components/schemas/WorkspaceWithModel"
1022+
},
1023+
"title": "Response V1 List Workspaces By Provider"
1024+
}
1025+
}
1026+
}
1027+
},
1028+
"422": {
1029+
"description": "Validation Error",
1030+
"content": {
1031+
"application/json": {
1032+
"schema": {
1033+
"$ref": "#/components/schemas/HTTPValidationError"
1034+
}
1035+
}
1036+
}
1037+
}
1038+
}
1039+
}
1040+
},
9921041
"/api/v1/alerts_notification": {
9931042
"get": {
9941043
"tags": [
@@ -1884,6 +1933,31 @@
18841933
"muxing_rules"
18851934
],
18861935
"title": "WorkspaceConfig"
1936+
},
1937+
"WorkspaceWithModel": {
1938+
"properties": {
1939+
"id": {
1940+
"type": "string",
1941+
"title": "Id"
1942+
},
1943+
"name": {
1944+
"type": "string",
1945+
"pattern": "^[a-zA-Z0-9_-]+$",
1946+
"title": "Name"
1947+
},
1948+
"provider_model_name": {
1949+
"type": "string",
1950+
"title": "Provider Model Name"
1951+
}
1952+
},
1953+
"type": "object",
1954+
"required": [
1955+
"id",
1956+
"name",
1957+
"provider_model_name"
1958+
],
1959+
"title": "WorkspaceWithModel",
1960+
"description": "Returns a workspace ID with model name"
18871961
}
18881962
}
18891963
}

0 commit comments

Comments
 (0)