File tree 6 files changed +13
-9
lines changed 6 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ const docTemplate = `{
98
98
"parameters": [
99
99
{
100
100
"type": "string",
101
+ "format": "uuid",
101
102
"description": "Template ID",
102
103
"name": "id",
103
104
"in": "path",
@@ -219,6 +220,7 @@ const docTemplate = `{
219
220
"parameters": [
220
221
{
221
222
"type": "string",
223
+ "format": "uuid",
222
224
"description": "Workspace ID",
223
225
"name": "id",
224
226
"in": "path",
Original file line number Diff line number Diff line change 90
90
"parameters" : [
91
91
{
92
92
"type" : " string" ,
93
+ "format" : " uuid" ,
93
94
"description" : " Template ID" ,
94
95
"name" : " id" ,
95
96
"in" : " path" ,
211
212
"parameters" : [
212
213
{
213
214
"type" : " string" ,
215
+ "format" : " uuid" ,
214
216
"description" : " Workspace ID" ,
215
217
"name" : " id" ,
216
218
"in" : " path" ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const (
39
39
// @Security CoderSessionToken
40
40
// @Produce json
41
41
// @Tags Templates
42
- // @Param id path string true "Template ID"
42
+ // @Param id path string true "Template ID" format(uuid)
43
43
// @Success 200 {object} codersdk.Template
44
44
// @Failure 404 {object} codersdk.Response
45
45
// @Failure 500 {object} codersdk.Response
Original file line number Diff line number Diff line change 48
48
// @Security CoderSessionToken
49
49
// @Produce json
50
50
// @Tags Workspaces
51
- // @Param id path string true "Workspace ID"
51
+ // @Param id path string true "Workspace ID" format(uuid)
52
52
// @Param include_deleted query string false "Include deleted"
53
53
// @Success 200 {object} codersdk.Workspace
54
54
// @Failure 400 {object} codersdk.Response
Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ curl -X GET http://coder-server:8080/api/v2/templates/{id} \
106
106
107
107
### Parameters
108
108
109
- | Name | In | Type | Required | Description |
110
- | ---- | ---- | ------ | -------- | ----------- |
111
- | id | path | string | true | Template ID |
109
+ | Name | In | Type | Required | Description |
110
+ | ---- | ---- | ------------ | -------- | ----------- |
111
+ | id | path | string(uuid) | true | Template ID |
112
112
113
113
### Example responses
114
114
Original file line number Diff line number Diff line change @@ -187,10 +187,10 @@ curl -X GET http://coder-server:8080/api/v2/workspaces/{id} \
187
187
188
188
### Parameters
189
189
190
- | Name | In | Type | Required | Description |
191
- | --------------- | ----- | ------ | -------- | --------------- |
192
- | id | path | string | true | Workspace ID |
193
- | include_deleted | query | string | false | Include deleted |
190
+ | Name | In | Type | Required | Description |
191
+ | --------------- | ----- | ------------ | -------- | --------------- |
192
+ | id | path | string(uuid) | true | Workspace ID |
193
+ | include_deleted | query | string | false | Include deleted |
194
194
195
195
### Example responses
196
196
You can’t perform that action at this time.
0 commit comments