File tree Expand file tree Collapse file tree 5 files changed +8
-19
lines changed Expand file tree Collapse file tree 5 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ const docTemplate = `{
594
594
// SwaggerInfo holds exported Swagger Info so clients can modify it
595
595
var SwaggerInfo = & swag.Spec {
596
596
Version : "2.0" ,
597
- Host : "" ,
597
+ Host : "localhost:8080 " ,
598
598
BasePath : "/api/v2" ,
599
599
Schemes : []string {},
600
600
Title : "Coderd API" ,
Original file line number Diff line number Diff line change 15
15
},
16
16
"version" : " 2.0"
17
17
},
18
+ "host" : " localhost:8080" ,
18
19
"basePath" : " /api/v2" ,
19
20
"paths" : {
20
21
"/workspaces" : {
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ type Options struct {
123
123
// @license.name AGPL-3.0
124
124
// @license.url https://github.com/coder/coder/blob/main/LICENSE
125
125
126
+ // @host localhost:8080
126
127
// @BasePath /api/v2
127
128
128
129
// @securitydefinitions.apiKey CoderSessionToken
Original file line number Diff line number Diff line change 1
- ---
2
- title : Coderd API v2.0
3
- language_tabs :
4
- - shell : curl
5
- language_clients :
6
- - shell : " "
7
- toc_footers : []
8
- includes : []
9
- search : false
10
- highlight_theme : darkula
11
- headingLevel : 2
12
-
13
- ---
14
-
15
1
<!-- Generator: Widdershins v4.0.1 -->
16
2
17
3
<h1 id =" coderd-api " >Coderd API v2.0</h1 >
@@ -22,7 +8,7 @@ Coderd is the service created by running coder server. It is a thin API that con
22
8
23
9
Base URLs:
24
10
25
- * <a href =" /api/v2 " >/api/v2</a >
11
+ * <a href =" //localhost:8080/ api/v2 " >//localhost:8080 /api/v2</a >
26
12
27
13
<a href =" https://coder.com/legal/terms-of-service " >Terms of service</a >
28
14
Email: <
a href =
" mailto:[email protected] " >API Support</
a > Web: <
a href =
" http://coder.com " >API Support</
a >
@@ -43,7 +29,7 @@ License: <a href="https://github.com/coder/coder/blob/main/LICENSE">AGPL-3.0</a>
43
29
44
30
``` shell
45
31
# You can also use wget
46
- curl -X GET /api/v2/workspaces \
32
+ curl -X GET /localhost:8080/ api/v2/workspaces \
47
33
-H ' Accept: application/json' \
48
34
-H ' Coder-Session-Token: API_KEY'
49
35
@@ -217,7 +203,7 @@ CoderSessionToken
217
203
218
204
``` shell
219
205
# You can also use wget
220
- curl -X GET /api/v2/workspaces/{id} \
206
+ curl -X GET /localhost:8080/ api/v2/workspaces/{id} \
221
207
-H ' Accept: application/json' \
222
208
-H ' Coder-Session-Token: API_KEY'
223
209
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
28
28
#
29
29
node ./node_modules/widdershins/widdershins.js \
30
30
--search false \
31
- --language_tabs ' shell:curl' \
31
+ --omitHeader true \
32
+ --language_tabs " shell:curl" \
32
33
--summary " ../../coderd/apidocs/swagger.json" \
33
34
--outfile " ../../docs/api.md"
34
35
)
You can’t perform that action at this time.
0 commit comments