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

Skip to content

Commit 4029161

Browse files
committed
docs: apiroot
1 parent 489718f commit 4029161

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

coderd/apidoc/docs.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ const docTemplate = `{
2727
"paths": {
2828
"/": {
2929
"get": {
30-
"security": [
31-
{
32-
"CoderSessionToken": []
33-
}
34-
],
3530
"produces": [
3631
"application/json"
3732
],

coderd/apidoc/swagger.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
"paths": {
2020
"/": {
2121
"get": {
22-
"security": [
23-
{
24-
"CoderSessionToken": []
25-
}
26-
],
2722
"produces": ["application/json"],
2823
"tags": ["General"],
2924
"summary": "API root handler",

coderd/apiroot.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
// @Summary API root handler
1111
// @ID api-root-handler
12-
// @Security CoderSessionToken
1312
// @Produce json
1413
// @Tags General
1514
// @Success 200 {object} codersdk.Response

docs/api/general.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
```shell
1010
# Example request using curl
1111
curl -X GET http://coder-server:8080/api/v2/ \
12-
-H 'Accept: application/json' \
13-
-H 'Coder-Session-Token: API_KEY'
12+
-H 'Accept: application/json'
1413

1514
```
1615

@@ -39,7 +38,7 @@ curl -X GET http://coder-server:8080/api/v2/ \
3938
| ------ | ------------------------------------------------------- | ----------- | ------------------------------------------------ |
4039
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.Response](schemas.md#codersdkresponse) |
4140

42-
To perform this operation, you must be authenticated by means of one of the following methods: **CoderSessionToken**.
41+
undefined
4342

4443
## Build info
4544

0 commit comments

Comments
 (0)