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

Skip to content

Commit 52f0234

Browse files
committed
Fix: buildinfo
1 parent 15fea1e commit 52f0234

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const docTemplate = `{
142142
}
143143
},
144144
"/buildinfo": {
145-
"post": {
145+
"get": {
146146
"security": [
147147
{
148148
"CoderSessionToken": []

coderd/apidoc/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
}
119119
},
120120
"/buildinfo": {
121-
"post": {
121+
"get": {
122122
"security": [
123123
{
124124
"CoderSessionToken": []

coderd/buildinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
// @Produce json
1515
// @Tags General
1616
// @Success 200 {object} codersdk.BuildInfoResponse
17-
// @Router /buildinfo [post]
17+
// @Router /buildinfo [get]
1818
func buildInfo(rw http.ResponseWriter, r *http.Request) {
1919
httpapi.Write(r.Context(), rw, http.StatusOK, codersdk.BuildInfoResponse{
2020
ExternalURL: buildinfo.ExternalURL(),

docs/api/general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ To perform this operation, you must be authenticated by means of one of the foll
4747

4848
```shell
4949
# Example request using curl
50-
curl -X POST http://coder-server:8080/api/v2/buildinfo \
50+
curl -X GET http://coder-server:8080/api/v2/buildinfo \
5151
-H 'Accept: application/json' \
5252
-H 'Coder-Session-Token: API_KEY'
5353

5454
```
5555

56-
`POST /buildinfo`
56+
`GET /buildinfo`
5757

5858
### Example responses
5959

0 commit comments

Comments
 (0)