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

Skip to content

Commit 1b9f67b

Browse files
committed
Fix: wrong content-type
1 parent 9d4cf84 commit 1b9f67b

File tree

8 files changed

+56
-53
lines changed

8 files changed

+56
-53
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
```shell
1010
# Example request using curl
1111
curl -X POST http://coder-server:8080/api/v2/files \
12-
-H 'Content-Type: application/x-www-form-urlencoded' \
13-
-H 'Accept: application/json' \
14-
-H 'Content-Type: application/x-tar' \
15-
-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'
1615
```
1716

1817
`POST /files`
@@ -56,7 +55,7 @@ To perform this operation, you must be authenticated by means of one of the foll
5655
```shell
5756
# Example request using curl
5857
curl -X GET http://coder-server:8080/api/v2/files/{fileID} \
59-
-H 'Coder-Session-Token: API_KEY'
58+
-H 'Coder-Session-Token: API_KEY'
6059
```
6160

6261
`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/templates.md

Lines changed: 11 additions & 11 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}`

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`
@@ -172,8 +172,8 @@ To perform this operation, you must be authenticated by means of one of the foll
172172
```shell
173173
# Example request using curl
174174
curl -X GET http://coder-server:8080/api/v2/users/{user}/workspace/{workspacename} \
175-
-H 'Accept: application/json' \
176-
-H 'Coder-Session-Token: API_KEY'
175+
-H 'Accept: application/json' \
176+
-H 'Coder-Session-Token: API_KEY'
177177
```
178178

179179
`GET /users/{user}/workspace/{workspacename}`
@@ -336,8 +336,8 @@ To perform this operation, you must be authenticated by means of one of the foll
336336
```shell
337337
# Example request using curl
338338
curl -X GET http://coder-server:8080/api/v2/workspaces \
339-
-H 'Accept: application/json' \
340-
-H 'Coder-Session-Token: API_KEY'
339+
-H 'Accept: application/json' \
340+
-H 'Coder-Session-Token: API_KEY'
341341
```
342342

343343
`GET /workspaces`
@@ -521,8 +521,8 @@ To perform this operation, you must be authenticated by means of one of the foll
521521
```shell
522522
# Example request using curl
523523
curl -X GET http://coder-server:8080/api/v2/workspaces/{id} \
524-
-H 'Accept: application/json' \
525-
-H 'Coder-Session-Token: API_KEY'
524+
-H 'Accept: application/json' \
525+
-H 'Coder-Session-Token: API_KEY'
526526
```
527527

528528
`GET /workspaces/{id}`
@@ -684,8 +684,8 @@ To perform this operation, you must be authenticated by means of one of the foll
684684
```shell
685685
# Example request using curl
686686
curl -X PATCH http://coder-server:8080/api/v2/workspaces/{workspace} \
687-
-H 'Content-Type: application/json' \
688-
-H 'Coder-Session-Token: API_KEY'
687+
-H 'Content-Type: application/json' \
688+
-H 'Coder-Session-Token: API_KEY'
689689
```
690690

691691
`PATCH /workspaces/{workspace}`
@@ -720,8 +720,8 @@ To perform this operation, you must be authenticated by means of one of the foll
720720
```shell
721721
# Example request using curl
722722
curl -X PUT http://coder-server:8080/api/v2/workspaces/{workspace}/autostart \
723-
-H 'Content-Type: application/json' \
724-
-H 'Coder-Session-Token: API_KEY'
723+
-H 'Content-Type: application/json' \
724+
-H 'Coder-Session-Token: API_KEY'
725725
```
726726

727727
`PUT /workspaces/{workspace}/autostart`
@@ -756,9 +756,9 @@ To perform this operation, you must be authenticated by means of one of the foll
756756
```shell
757757
# Example request using curl
758758
curl -X PUT http://coder-server:8080/api/v2/workspaces/{workspace}/extend \
759-
-H 'Content-Type: application/json' \
760-
-H 'Accept: application/json' \
761-
-H 'Coder-Session-Token: API_KEY'
759+
-H 'Content-Type: application/json' \
760+
-H 'Accept: application/json' \
761+
-H 'Coder-Session-Token: API_KEY'
762762
```
763763

764764
`PUT /workspaces/{workspace}/extend`
@@ -810,8 +810,8 @@ To perform this operation, you must be authenticated by means of one of the foll
810810
```shell
811811
# Example request using curl
812812
curl -X PUT http://coder-server:8080/api/v2/workspaces/{workspace}/ttl \
813-
-H 'Content-Type: application/json' \
814-
-H 'Coder-Session-Token: API_KEY'
813+
-H 'Content-Type: application/json' \
814+
-H 'Coder-Session-Token: API_KEY'
815815
```
816816

817817
`PUT /workspaces/{workspace}/ttl`
@@ -846,8 +846,8 @@ To perform this operation, you must be authenticated by means of one of the foll
846846
```shell
847847
# Example request using curl
848848
curl -X GET http://coder-server:8080/api/v2/workspaces/{workspace}/watch \
849-
-H 'Accept: text/event-stream' \
850-
-H 'Coder-Session-Token: API_KEY'
849+
-H 'Accept: text/event-stream' \
850+
-H 'Coder-Session-Token: API_KEY'
851851
```
852852

853853
`GET /workspaces/{workspace}/watch`
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Example request using curl
22
curl -X {{=data.methodUpper}} http://coder-server:8080{{=data.url}}{{=data.requiredQueryString}}{{?data.allHeaders.length}} \{{?}}
3-
{{~data.allHeaders :p:index}} -H '{{=p.name}}: {{=p.exampleValues.object}}'{{?index < data.allHeaders.length-1}} \
3+
{{~data.allHeaders :p:index}}{{
4+
if (p.name == "Content-Type" && p.exampleValues.object == "application/x-www-form-urlencoded") {
5+
continue;
6+
}
7+
}} -H '{{=p.name}}: {{=p.exampleValues.object}}'{{?index < data.allHeaders.length-1}} \
48
{{?}}{{~}}

0 commit comments

Comments
 (0)