Skip to content

Commit 90dea8c

Browse files
committed
WIP
1 parent a087ace commit 90dea8c

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

coderd/apidocs/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ const docTemplate = `{
594594
// SwaggerInfo holds exported Swagger Info so clients can modify it
595595
var SwaggerInfo = &swag.Spec{
596596
Version: "2.0",
597-
Host: "localhost:8080",
597+
Host: "",
598598
BasePath: "/api/v2",
599599
Schemes: []string{},
600600
Title: "Coderd API",

coderd/apidocs/swagger.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
},
1616
"version": "2.0"
1717
},
18-
"host": "localhost:8080",
1918
"basePath": "/api/v2",
2019
"paths": {
2120
"/workspaces": {

coderd/coderd.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ type Options struct {
123123
// @license.name AGPL-3.0
124124
// @license.url https://github.com/coder/coder/blob/main/LICENSE
125125

126-
// @host localhost:8080
127126
// @BasePath /api/v2
128127

129128
// @securitydefinitions.apiKey CoderSessionToken

docs/api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Coderd is the service created by running coder server. It is a thin API that con
88

99
Base URLs:
1010

11-
* <a href="//localhost:8080/api/v2">//localhost:8080/api/v2</a>
11+
* <a href="/api/v2">/api/v2</a>
1212

1313
<a href="https://coder.com/legal/terms-of-service">Terms of service</a>
1414
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>
2929
3030
```shell
3131
# You can also use wget
32-
curl -X GET /localhost:8080/api/v2/workspaces \
32+
curl -X GET /api/v2/workspaces \
3333
-H 'Accept: application/json' \
3434
-H 'Coder-Session-Token: API_KEY'
3535

@@ -203,7 +203,7 @@ CoderSessionToken
203203
204204
```shell
205205
# You can also use wget
206-
curl -X GET /localhost:8080/api/v2/workspaces/{id} \
206+
curl -X GET /api/v2/workspaces/{id} \
207207
-H 'Accept: application/json' \
208208
-H 'Coder-Session-Token: API_KEY'
209209

0 commit comments

Comments
 (0)