File tree 4 files changed +4
-6
lines changed
4 files changed +4
-6
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 : "localhost:8080 " ,
597
+ Host : "" ,
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" ,
19
18
"basePath" : " /api/v2" ,
20
19
"paths" : {
21
20
"/workspaces" : {
Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ 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
127
126
// @BasePath /api/v2
128
127
129
128
// @securitydefinitions.apiKey CoderSessionToken
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Coderd is the service created by running coder server. It is a thin API that con
8
8
9
9
Base URLs:
10
10
11
- * <a href =" //localhost:8080/ api/v2 " >//localhost:8080 /api/v2</a >
11
+ * <a href =" /api/v2 " >/api/v2</a >
12
12
13
13
<a href =" https://coder.com/legal/terms-of-service " >Terms of service</a >
14
14
Email: <a href =" mailto:support@coder.com " >API Support</a > Web: <a href =" http://coder.com " >API Support</a >
@@ -29,7 +29,7 @@ License: <a href="https://github.com/coder/coder/blob/main/LICENSE">AGPL-3.0</a>
29
29
30
30
``` shell
31
31
# You can also use wget
32
- curl -X GET /localhost:8080/ api/v2/workspaces \
32
+ curl -X GET /api/v2/workspaces \
33
33
-H ' Accept: application/json' \
34
34
-H ' Coder-Session-Token: API_KEY'
35
35
@@ -203,7 +203,7 @@ CoderSessionToken
203
203
204
204
``` shell
205
205
# You can also use wget
206
- curl -X GET /localhost:8080/ api/v2/workspaces/{id} \
206
+ curl -X GET /api/v2/workspaces/{id} \
207
207
-H ' Accept: application/json' \
208
208
-H ' Coder-Session-Token: API_KEY'
209
209
You can’t perform that action at this time.
0 commit comments