Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e4db936

Browse files
committed
Fix: include deleted
1 parent 8a0aa36 commit e4db936

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const docTemplate = `{
228228
},
229229
{
230230
"type": "string",
231-
"description": "Include deleted",
231+
"description": "Return data instead of HTTP 404 if the workspace is deleted",
232232
"name": "include_deleted",
233233
"in": "query"
234234
}

coderd/apidoc/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
},
221221
{
222222
"type": "string",
223-
"description": "Include deleted",
223+
"description": "Return data instead of HTTP 404 if the workspace is deleted",
224224
"name": "include_deleted",
225225
"in": "query"
226226
}

coderd/workspaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var (
4949
// @Produce json
5050
// @Tags Workspaces
5151
// @Param id path string true "Workspace ID" format(uuid)
52-
// @Param include_deleted query string false "Include deleted"
52+
// @Param include_deleted query string false "Return data instead of HTTP 404 if the workspace is deleted"
5353
// @Success 200 {object} codersdk.Workspace
5454
// @Failure 400 {object} codersdk.Response
5555
// @Failure 404 {object} codersdk.Response

docs/api/workspaces.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ curl -X GET http://coder-server:8080/api/v2/workspaces/{id} \
187187

188188
### Parameters
189189

190-
| Name | In | Type | Required | Description |
191-
| --------------- | ----- | ------------ | -------- | --------------- |
192-
| id | path | string(uuid) | 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 | Return data instead of HTTP 404 if the workspace is deleted |
194194

195195
### Example responses
196196

0 commit comments

Comments
 (0)