Skip to content

Commit 75f37c6

Browse files
committed
Fix: examples
1 parent 1677409 commit 75f37c6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/api/templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Code samples
66

77
```shell
8-
# You can also use wget
8+
# Example request using curl
99
curl -X POST http://coder-server:8080/api/v2/organizations/{organization-id}/templates/ \
1010
-H 'Content-Type: application/json' \
1111
-H 'Accept: application/json' \
@@ -93,7 +93,7 @@ To perform this operation, you must be authenticated by means of one of the foll
9393
### Code samples
9494

9595
```shell
96-
# You can also use wget
96+
# Example request using curl
9797
curl -X GET http://coder-server:8080/api/v2/templates/{id} \
9898
-H 'Accept: application/json' \
9999
-H 'Coder-Session-Token: API_KEY'

docs/api/workspaces.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Code samples
66

77
```shell
8-
# You can also use wget
8+
# Example request using curl
99
curl -X POST http://coder-server:8080/api/v2/organizations/{organization}/members/{user}/workspaces \
1010
-H 'Accept: application/json' \
1111
-H 'Coder-Session-Token: API_KEY'
@@ -169,7 +169,7 @@ To perform this operation, you must be authenticated by means of one of the foll
169169
### Code samples
170170

171171
```shell
172-
# You can also use wget
172+
# Example request using curl
173173
curl -X GET http://coder-server:8080/api/v2/users/{user}/workspace/{workspacename} \
174174
-H 'Accept: application/json' \
175175
-H 'Coder-Session-Token: API_KEY'
@@ -334,7 +334,7 @@ To perform this operation, you must be authenticated by means of one of the foll
334334
### Code samples
335335

336336
```shell
337-
# You can also use wget
337+
# Example request using curl
338338
curl -X GET http://coder-server:8080/api/v2/workspaces \
339339
-H 'Accept: application/json' \
340340
-H 'Coder-Session-Token: API_KEY'
@@ -520,7 +520,7 @@ To perform this operation, you must be authenticated by means of one of the foll
520520
### Code samples
521521

522522
```shell
523-
# You can also use wget
523+
# Example request using curl
524524
curl -X GET http://coder-server:8080/api/v2/workspaces/{id} \
525525
-H 'Accept: application/json' \
526526
-H 'Coder-Session-Token: API_KEY'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# You can also use wget
1+
# Example request using curl
22
curl -X {{=data.methodUpper}} http://coder-server:8080{{=data.url}}{{=data.requiredQueryString}}{{?data.allHeaders.length}} \{{?}}
33
{{~data.allHeaders :p:index}} -H '{{=p.name}}: {{=p.exampleValues.object}}'{{?index < data.allHeaders.length-1}} \{{?}}
44
{{~}}

0 commit comments

Comments
 (0)