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

Skip to content

Commit 78dc628

Browse files
committed
Notice
1 parent 1b9f67b commit 78dc628

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ const docTemplate = `{
310310
"CoderSessionToken": []
311311
}
312312
],
313+
"description": "Notice: Swagger 2.0 doesn't support file upload with a ` + "`" + `content-type` + "`" + ` different than ` + "`" + `application/x-www-form-urlencoded` + "`" + `.",
313314
"consumes": [
314315
"application/x-tar"
315316
],

coderd/apidoc/swagger.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@
264264
"CoderSessionToken": []
265265
}
266266
],
267+
"description": "Notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.",
267268
"consumes": ["application/x-tar"],
268269
"produces": ["application/json"],
269270
"tags": ["Files"],

coderd/files.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const (
2424
)
2525

2626
// @Summary Upload file
27+
// @Description Notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.
2728
// @ID update-file
2829
// @Security CoderSessionToken
2930
// @Produce json

docs/api/files.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ curl -X POST http://coder-server:8080/api/v2/files \
1616

1717
`POST /files`
1818

19+
Notice: Swagger 2.0 doesn't support file upload with a `content-type` different than `application/x-www-form-urlencoded`.
20+
1921
> Body parameter
2022
2123
```yaml

0 commit comments

Comments
 (0)