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

Skip to content

Commit 934257f

Browse files
committed
Fix: -H
1 parent d661e66 commit 934257f

File tree

9 files changed

+61
-61
lines changed

9 files changed

+61
-61
lines changed

docs/api/applications.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
```shell
1010
# Example request using curl
1111
curl -X GET http://coder-server:8080/api/v2/applications/auth-redirect \
12-
-H 'Coder-Session-Token: API_KEY'
12+
-H 'Coder-Session-Token: API_KEY'
1313
```
1414

1515
`GET /applications/auth-redirect`
@@ -35,8 +35,8 @@ To perform this operation, you must be authenticated by means of one of the foll
3535
```shell
3636
# Example request using curl
3737
curl -X GET http://coder-server:8080/api/v2/applications/host \
38-
-H 'Accept: application/json' \
39-
-H 'Coder-Session-Token: API_KEY'
38+
-H 'Accept: application/json' \
39+
-H 'Coder-Session-Token: API_KEY'
4040
```
4141

4242
`GET /applications/host`

docs/api/audit.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
```shell
1010
# Example request using curl
1111
curl -X GET http://coder-server:8080/api/v2/audit?q=string \
12-
-H 'Accept: application/json' \
13-
-H 'Coder-Session-Token: API_KEY'
12+
-H 'Accept: application/json' \
13+
-H 'Coder-Session-Token: API_KEY'
1414
```
1515

1616
`GET /audit`
@@ -97,8 +97,8 @@ To perform this operation, you must be authenticated by means of one of the foll
9797
```shell
9898
# Example request using curl
9999
curl -X POST http://coder-server:8080/api/v2/audit/testgenerate \
100-
-H 'Content-Type: application/json' \
101-
-H 'Coder-Session-Token: API_KEY'
100+
-H 'Content-Type: application/json' \
101+
-H 'Coder-Session-Token: API_KEY'
102102
```
103103

104104
`POST /audit/testgenerate`

docs/api/authorization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
```shell
1010
# Example request using curl
1111
curl -X POST http://coder-server:8080/api/v2/authcheck \
12-
-H 'Content-Type: application/json' \
13-
-H 'Accept: application/json' \
14-
-H 'Coder-Session-Token: API_KEY'
12+
-H 'Content-Type: application/json' \
13+
-H 'Accept: application/json' \
14+
-H 'Coder-Session-Token: API_KEY'
1515
```
1616

1717
`POST /authcheck`

docs/api/files.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
```shell
1010
# Example request using curl
1111
curl -X POST http://coder-server:8080/api/v2/files \
12-
-H 'Accept: application/json' \
13-
-H 'Content-Type: application/x-tar' \
14-
-H 'Coder-Session-Token: API_KEY'
12+
-H 'Accept: application/json' \
13+
-H 'Content-Type: application/x-tar' \
14+
-H 'Coder-Session-Token: API_KEY'
1515
```
1616

1717
`POST /files`
@@ -57,7 +57,7 @@ To perform this operation, you must be authenticated by means of one of the foll
5757
```shell
5858
# Example request using curl
5959
curl -X GET http://coder-server:8080/api/v2/files/{fileID} \
60-
-H 'Coder-Session-Token: API_KEY'
60+
-H 'Coder-Session-Token: API_KEY'
6161
```
6262

6363
`GET /files/{fileID}`

docs/api/general.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
```shell
1010
# Example request using curl
1111
curl -X GET http://coder-server:8080/api/v2/ \
12-
-H 'Accept: application/json'
12+
-H 'Accept: application/json'
1313
```
1414

1515
`GET /`
@@ -44,7 +44,7 @@ curl -X GET http://coder-server:8080/api/v2/ \
4444
```shell
4545
# Example request using curl
4646
curl -X GET http://coder-server:8080/api/v2/buildinfo \
47-
-H 'Accept: application/json'
47+
-H 'Accept: application/json'
4848
```
4949

5050
`GET /buildinfo`
@@ -73,8 +73,8 @@ curl -X GET http://coder-server:8080/api/v2/buildinfo \
7373
```shell
7474
# Example request using curl
7575
curl -X GET http://coder-server:8080/api/v2/config/deployment \
76-
-H 'Accept: application/json' \
77-
-H 'Coder-Session-Token: API_KEY'
76+
-H 'Accept: application/json' \
77+
-H 'Coder-Session-Token: API_KEY'
7878
```
7979

8080
`GET /config/deployment`
@@ -932,8 +932,8 @@ To perform this operation, you must be authenticated by means of one of the foll
932932
```shell
933933
# Example request using curl
934934
curl -X POST http://coder-server:8080/api/v2/csp/reports \
935-
-H 'Content-Type: application/json' \
936-
-H 'Coder-Session-Token: API_KEY'
935+
-H 'Content-Type: application/json' \
936+
-H 'Coder-Session-Token: API_KEY'
937937
```
938938

939939
`POST /csp/reports`
@@ -967,7 +967,7 @@ To perform this operation, you must be authenticated by means of one of the foll
967967
```shell
968968
# Example request using curl
969969
curl -X GET http://coder-server:8080/api/v2/updatecheck \
970-
-H 'Accept: application/json'
970+
-H 'Accept: application/json'
971971
```
972972

973973
`GET /updatecheck`

docs/api/parameters.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
```shell
1010
# Example request using curl
1111
curl -X GET http://coder-server:8080/api/v2/parameters/{scope}/{id} \
12-
-H 'Accept: application/json' \
13-
-H 'Coder-Session-Token: API_KEY'
12+
-H 'Accept: application/json' \
13+
-H 'Coder-Session-Token: API_KEY'
1414
```
1515

1616
`GET /parameters/{scope}/{id}`
@@ -93,9 +93,9 @@ To perform this operation, you must be authenticated by means of one of the foll
9393
```shell
9494
# Example request using curl
9595
curl -X POST http://coder-server:8080/api/v2/parameters/{scope}/{id} \
96-
-H 'Content-Type: application/json' \
97-
-H 'Accept: application/json' \
98-
-H 'Coder-Session-Token: API_KEY'
96+
-H 'Content-Type: application/json' \
97+
-H 'Accept: application/json' \
98+
-H 'Coder-Session-Token: API_KEY'
9999
```
100100

101101
`POST /parameters/{scope}/{id}`
@@ -160,8 +160,8 @@ To perform this operation, you must be authenticated by means of one of the foll
160160
```shell
161161
# Example request using curl
162162
curl -X DELETE http://coder-server:8080/api/v2/parameters/{scope}/{id}/{name} \
163-
-H 'Accept: application/json' \
164-
-H 'Coder-Session-Token: API_KEY'
163+
-H 'Accept: application/json' \
164+
-H 'Coder-Session-Token: API_KEY'
165165
```
166166

167167
`DELETE /parameters/{scope}/{id}/{name}`

docs/api/templates.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
```shell
1010
# Example request using curl
1111
curl -X POST http://coder-server:8080/api/v2/organizations/{organization-id}/templates/ \
12-
-H 'Content-Type: application/json' \
13-
-H 'Accept: application/json' \
14-
-H 'Coder-Session-Token: API_KEY'
12+
-H 'Content-Type: application/json' \
13+
-H 'Accept: application/json' \
14+
-H 'Coder-Session-Token: API_KEY'
1515
```
1616

1717
`POST /organizations/{organization-id}/templates/`
@@ -96,8 +96,8 @@ To perform this operation, you must be authenticated by means of one of the foll
9696
```shell
9797
# Example request using curl
9898
curl -X GET http://coder-server:8080/api/v2/organizations/{organization}/templates \
99-
-H 'Accept: application/json' \
100-
-H 'Coder-Session-Token: API_KEY'
99+
-H 'Accept: application/json' \
100+
-H 'Coder-Session-Token: API_KEY'
101101
```
102102

103103
`GET /organizations/{organization}/templates`
@@ -188,8 +188,8 @@ To perform this operation, you must be authenticated by means of one of the foll
188188
```shell
189189
# Example request using curl
190190
curl -X GET http://coder-server:8080/api/v2/organizations/{organization}/templates/{template-name} \
191-
-H 'Accept: application/json' \
192-
-H 'Coder-Session-Token: API_KEY'
191+
-H 'Accept: application/json' \
192+
-H 'Coder-Session-Token: API_KEY'
193193
```
194194

195195
`GET /organizations/{organization}/templates/{template-name}`
@@ -251,8 +251,8 @@ To perform this operation, you must be authenticated by means of one of the foll
251251
```shell
252252
# Example request using curl
253253
curl -X GET http://coder-server:8080/api/v2/templates/{id} \
254-
-H 'Accept: application/json' \
255-
-H 'Coder-Session-Token: API_KEY'
254+
-H 'Accept: application/json' \
255+
-H 'Coder-Session-Token: API_KEY'
256256
```
257257

258258
`GET /templates/{id}`
@@ -313,8 +313,8 @@ To perform this operation, you must be authenticated by means of one of the foll
313313
```shell
314314
# Example request using curl
315315
curl -X DELETE http://coder-server:8080/api/v2/templates/{id} \
316-
-H 'Accept: application/json' \
317-
-H 'Coder-Session-Token: API_KEY'
316+
-H 'Accept: application/json' \
317+
-H 'Coder-Session-Token: API_KEY'
318318
```
319319

320320
`DELETE /templates/{id}`
@@ -357,8 +357,8 @@ To perform this operation, you must be authenticated by means of one of the foll
357357
```shell
358358
# Example request using curl
359359
curl -X PATCH http://coder-server:8080/api/v2/templates/{id} \
360-
-H 'Accept: application/json' \
361-
-H 'Coder-Session-Token: API_KEY'
360+
-H 'Accept: application/json' \
361+
-H 'Coder-Session-Token: API_KEY'
362362
```
363363

364364
`PATCH /templates/{id}`

docs/api/workspaces.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
```shell
1010
# Example request using curl
1111
curl -X POST http://coder-server:8080/api/v2/organizations/{organization}/members/{user}/workspaces \
12-
-H 'Accept: application/json' \
13-
-H 'Coder-Session-Token: API_KEY'
12+
-H 'Accept: application/json' \
13+
-H 'Coder-Session-Token: API_KEY'
1414
```
1515

1616
`POST /organizations/{organization}/members/{user}/workspaces`
@@ -169,8 +169,8 @@ To perform this operation, you must be authenticated by means of one of the foll
169169
```shell
170170
# Example request using curl
171171
curl -X GET http://coder-server:8080/api/v2/users/{user}/workspace/{workspacename} \
172-
-H 'Accept: application/json' \
173-
-H 'Coder-Session-Token: API_KEY'
172+
-H 'Accept: application/json' \
173+
-H 'Coder-Session-Token: API_KEY'
174174
```
175175

176176
`GET /users/{user}/workspace/{workspacename}`
@@ -330,8 +330,8 @@ To perform this operation, you must be authenticated by means of one of the foll
330330
```shell
331331
# Example request using curl
332332
curl -X GET http://coder-server:8080/api/v2/workspaces \
333-
-H 'Accept: application/json' \
334-
-H 'Coder-Session-Token: API_KEY'
333+
-H 'Accept: application/json' \
334+
-H 'Coder-Session-Token: API_KEY'
335335
```
336336

337337
`GET /workspaces`
@@ -512,8 +512,8 @@ To perform this operation, you must be authenticated by means of one of the foll
512512
```shell
513513
# Example request using curl
514514
curl -X GET http://coder-server:8080/api/v2/workspaces/{id} \
515-
-H 'Accept: application/json' \
516-
-H 'Coder-Session-Token: API_KEY'
515+
-H 'Accept: application/json' \
516+
-H 'Coder-Session-Token: API_KEY'
517517
```
518518

519519
`GET /workspaces/{id}`
@@ -672,8 +672,8 @@ To perform this operation, you must be authenticated by means of one of the foll
672672
```shell
673673
# Example request using curl
674674
curl -X PATCH http://coder-server:8080/api/v2/workspaces/{workspace} \
675-
-H 'Content-Type: application/json' \
676-
-H 'Coder-Session-Token: API_KEY'
675+
-H 'Content-Type: application/json' \
676+
-H 'Coder-Session-Token: API_KEY'
677677
```
678678

679679
`PATCH /workspaces/{workspace}`
@@ -708,8 +708,8 @@ To perform this operation, you must be authenticated by means of one of the foll
708708
```shell
709709
# Example request using curl
710710
curl -X PUT http://coder-server:8080/api/v2/workspaces/{workspace}/autostart \
711-
-H 'Content-Type: application/json' \
712-
-H 'Coder-Session-Token: API_KEY'
711+
-H 'Content-Type: application/json' \
712+
-H 'Coder-Session-Token: API_KEY'
713713
```
714714

715715
`PUT /workspaces/{workspace}/autostart`
@@ -744,9 +744,9 @@ To perform this operation, you must be authenticated by means of one of the foll
744744
```shell
745745
# Example request using curl
746746
curl -X PUT http://coder-server:8080/api/v2/workspaces/{workspace}/extend \
747-
-H 'Content-Type: application/json' \
748-
-H 'Accept: application/json' \
749-
-H 'Coder-Session-Token: API_KEY'
747+
-H 'Content-Type: application/json' \
748+
-H 'Accept: application/json' \
749+
-H 'Coder-Session-Token: API_KEY'
750750
```
751751

752752
`PUT /workspaces/{workspace}/extend`
@@ -798,8 +798,8 @@ To perform this operation, you must be authenticated by means of one of the foll
798798
```shell
799799
# Example request using curl
800800
curl -X PUT http://coder-server:8080/api/v2/workspaces/{workspace}/ttl \
801-
-H 'Content-Type: application/json' \
802-
-H 'Coder-Session-Token: API_KEY'
801+
-H 'Content-Type: application/json' \
802+
-H 'Coder-Session-Token: API_KEY'
803803
```
804804

805805
`PUT /workspaces/{workspace}/ttl`
@@ -834,8 +834,8 @@ To perform this operation, you must be authenticated by means of one of the foll
834834
```shell
835835
# Example request using curl
836836
curl -X GET http://coder-server:8080/api/v2/workspaces/{workspace}/watch \
837-
-H 'Accept: text/event-stream' \
838-
-H 'Coder-Session-Token: API_KEY'
837+
-H 'Accept: text/event-stream' \
838+
-H 'Coder-Session-Token: API_KEY'
839839
```
840840

841841
`GET /workspaces/{workspace}/watch`

scripts/apidocgen/markdown-template/code_shell.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ curl -X {{=data.methodUpper}} http://coder-server:8080{{=data.url}}{{=data.requi
44
if (p.name == "Content-Type" && p.exampleValues.object == "application/x-www-form-urlencoded") {
55
continue;
66
}
7-
}} -H '{{=p.name}}: {{=p.exampleValues.object}}'{{?index < data.allHeaders.length-1}} \
7+
}} -H '{{=p.name}}: {{=p.exampleValues.object}}'{{?index < data.allHeaders.length-1}} \
88
{{?}}{{~}}

0 commit comments

Comments
 (0)