Skip to content

Commit 84a5de4

Browse files
committed
Fix
1 parent bb57436 commit 84a5de4

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

docs/api/templates.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ curl -X POST http://coder-server:8080/api/v2/organizations/{organization-id}/tem
4040

4141
### Parameters
4242

43-
| Name | In | Type | Required | Description |
44-
| --------------- | ---- | --------------------------------------------------------------------------- | -------- | --------------- |
45-
| organization-id | path | string | true | Organization ID |
46-
| body | body | [codersdk.CreateTemplateRequest](/schemas.md#codersdkCreateTemplateRequest) | true | Request body |
43+
| Name | In | Type | Required | Description |
44+
| --------------- | ---- | -------------------------------------------------------------------------- | -------- | --------------- |
45+
| organization-id | path | string | true | Organization ID |
46+
| body | body | [codersdk.CreateTemplateRequest](schemas.md#codersdkCreateTemplateRequest) | true | Request body |
4747

4848
### Example responses
4949

@@ -82,11 +82,11 @@ curl -X POST http://coder-server:8080/api/v2/organizations/{organization-id}/tem
8282

8383
### Responses
8484

85-
| Status | Meaning | Description | Schema |
86-
| ------ | -------------------------------------------------------------------------- | --------------------- | ------------------------------------------------- |
87-
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.Template](/schemas.md#codersdkTemplate) |
88-
| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | Not Found | [codersdk.Response](/schemas.md#codersdkResponse) |
89-
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | [codersdk.Response](/schemas.md#codersdkResponse) |
85+
| Status | Meaning | Description | Schema |
86+
| ------ | -------------------------------------------------------------------------- | --------------------- | ------------------------------------------------ |
87+
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.Template](schemas.md#codersdkTemplate) |
88+
| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | Not Found | [codersdk.Response](schemas.md#codersdkResponse) |
89+
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | [codersdk.Response](schemas.md#codersdkResponse) |
9090

9191
To perform this operation, you must be authenticated by means of one of the following methods: **CoderSessionToken**.
9292

@@ -147,10 +147,10 @@ curl -X GET http://coder-server:8080/api/v2/templates/{id} \
147147

148148
### Responses
149149

150-
| Status | Meaning | Description | Schema |
151-
| ------ | -------------------------------------------------------------------------- | --------------------- | ------------------------------------------------- |
152-
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.Template](/schemas.md#codersdkTemplate) |
153-
| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | Not Found | [codersdk.Response](/schemas.md#codersdkResponse) |
154-
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | [codersdk.Response](/schemas.md#codersdkResponse) |
150+
| Status | Meaning | Description | Schema |
151+
| ------ | -------------------------------------------------------------------------- | --------------------- | ------------------------------------------------ |
152+
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.Template](schemas.md#codersdkTemplate) |
153+
| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | Not Found | [codersdk.Response](schemas.md#codersdkResponse) |
154+
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | [codersdk.Response](schemas.md#codersdkResponse) |
155155

156156
To perform this operation, you must be authenticated by means of one of the following methods: **CoderSessionToken**.

docs/api/workspaces.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ curl -X GET http://coder-server:8080/api/v2/workspaces \
163163

164164
### Responses
165165

166-
| Status | Meaning | Description | Schema |
167-
| ------ | -------------------------------------------------------------------------- | --------------------- | --------------------------------------------------------------------- |
168-
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.WorkspacesResponse](/schemas.md#codersdkWorkspacesResponse) |
169-
| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | Bad Request | [codersdk.Response](/schemas.md#codersdkResponse) |
170-
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | [codersdk.Response](/schemas.md#codersdkResponse) |
166+
| Status | Meaning | Description | Schema |
167+
| ------ | -------------------------------------------------------------------------- | --------------------- | -------------------------------------------------------------------- |
168+
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.WorkspacesResponse](schemas.md#codersdkWorkspacesResponse) |
169+
| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | Bad Request | [codersdk.Response](schemas.md#codersdkResponse) |
170+
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | [codersdk.Response](schemas.md#codersdkResponse) |
171171

172172
To perform this operation, you must be authenticated by means of one of the following methods: **CoderSessionToken**.
173173

@@ -329,12 +329,12 @@ curl -X GET http://coder-server:8080/api/v2/workspaces/{id} \
329329

330330
### Responses
331331

332-
| Status | Meaning | Description | Schema |
333-
| ------ | -------------------------------------------------------------------------- | --------------------- | --------------------------------------------------- |
334-
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.Workspace](/schemas.md#codersdkWorkspace) |
335-
| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | Bad Request | [codersdk.Response](/schemas.md#codersdkResponse) |
336-
| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | Not Found | [codersdk.Response](/schemas.md#codersdkResponse) |
337-
| 410 | [Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9) | Gone | [codersdk.Response](/schemas.md#codersdkResponse) |
338-
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | [codersdk.Response](/schemas.md#codersdkResponse) |
332+
| Status | Meaning | Description | Schema |
333+
| ------ | -------------------------------------------------------------------------- | --------------------- | -------------------------------------------------- |
334+
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.Workspace](schemas.md#codersdkWorkspace) |
335+
| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | Bad Request | [codersdk.Response](schemas.md#codersdkResponse) |
336+
| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | Not Found | [codersdk.Response](schemas.md#codersdkResponse) |
337+
| 410 | [Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9) | Gone | [codersdk.Response](schemas.md#codersdkResponse) |
338+
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | [codersdk.Response](schemas.md#codersdkResponse) |
339339

340340
To perform this operation, you must be authenticated by means of one of the following methods: **CoderSessionToken**.

scripts/apidocgen/markdown-template/parameters.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
|Name|In|Type|Required|Description|
55
|---|---|---|---|---|
6-
{{~ data.parameters :p}}|{{=p.name}}|{{=p.in}}|{{? p.schema['x-widdershins-oldRef']}}[{{= p.schema['x-widdershins-oldRef'].substring(21) }}](/schemas.md#{{= p.schema['x-widdershins-oldRef'].substring(21).replace(".","")}}){{?}}{{? !p.schema['x-widdershins-oldRef']}}{{= p.safeType}}{{?}}|{{=p.required}}|{{=p.shortDesc || 'none'}}|
6+
{{~ data.parameters :p}}|{{=p.name}}|{{=p.in}}|{{? p.schema['x-widdershins-oldRef']}}[{{= p.schema['x-widdershins-oldRef'].substring(21) }}](schemas.md#{{= p.schema['x-widdershins-oldRef'].substring(21).replace(".","")}}){{?}}{{? !p.schema['x-widdershins-oldRef']}}{{= p.safeType}}{{?}}|{{=p.required}}|{{=p.shortDesc || 'none'}}|
77
{{~}}
88

99
{{? data.longDescs }}

scripts/apidocgen/markdown-template/responses.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
|Status|Meaning|Description|Schema|
1717
|---|---|---|---|
18-
{{~ data.responses :r}}|{{=r.status}}|{{=r.meaning}}|{{=r.description || 'none'}}|[{{= r.content['application/json'].schema['x-widdershins-oldRef'].substring(21) }}](/schemas.md#{{= r.content['application/json'].schema['x-widdershins-oldRef'].substring(21).replace(".","")}})|
18+
{{~ data.responses :r}}|{{=r.status}}|{{=r.meaning}}|{{=r.description || 'none'}}|[{{= r.content['application/json'].schema['x-widdershins-oldRef'].substring(21) }}](schemas.md#{{= r.content['application/json'].schema['x-widdershins-oldRef'].substring(21).replace(".","")}})|
1919
{{~}}
2020

2121
{{ data.responseSchemas = false; }}

0 commit comments

Comments
 (0)