mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: document files API needs ustar format (#14152)
Signed-off-by: Spike Curtis <spike@coder.com>
This commit is contained in:
2
coderd/apidoc/docs.go
generated
2
coderd/apidoc/docs.go
generated
@ -988,7 +988,7 @@ const docTemplate = `{
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"description": "File to be uploaded",
|
||||
"description": "File to be uploaded. If using tar format, file must conform to ustar (pax may cause problems).",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
|
2
coderd/apidoc/swagger.json
generated
2
coderd/apidoc/swagger.json
generated
@ -848,7 +848,7 @@
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"description": "File to be uploaded",
|
||||
"description": "File to be uploaded. If using tar format, file must conform to ustar (pax may cause problems).",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
|
@ -38,7 +38,7 @@ const (
|
||||
// @Accept application/x-tar
|
||||
// @Tags Files
|
||||
// @Param Content-Type header string true "Content-Type must be `application/x-tar` or `application/zip`" default(application/x-tar)
|
||||
// @Param file formData file true "File to be uploaded"
|
||||
// @Param file formData file true "File to be uploaded. If using tar format, file must conform to ustar (pax may cause problems)."
|
||||
// @Success 201 {object} codersdk.UploadResponse
|
||||
// @Router /files [post]
|
||||
func (api *API) postFile(rw http.ResponseWriter, r *http.Request) {
|
||||
|
Reference in New Issue
Block a user