Changed HTTP verb to DELETE for DeleteMultipleServiceAccounts (#1526)

This commit is contained in:
jinapurapu
2022-02-07 19:51:40 -08:00
committed by GitHub
parent 7f05c0bf06
commit 090b7e5e26
7 changed files with 27 additions and 27 deletions

View File

@@ -48,7 +48,7 @@ func NewDeleteMultipleServiceAccounts(ctx *middleware.Context, handler DeleteMul
return &DeleteMultipleServiceAccounts{Context: ctx, Handler: handler}
}
/* DeleteMultipleServiceAccounts swagger:route POST /service-accounts/delete-multi UserAPI deleteMultipleServiceAccounts
/* DeleteMultipleServiceAccounts swagger:route DELETE /service-accounts/delete-multi UserAPI deleteMultipleServiceAccounts
Delete Multiple Service Accounts

View File

@@ -30,28 +30,28 @@ import (
"github.com/minio/console/models"
)
// DeleteMultipleServiceAccountsOKCode is the HTTP code returned for type DeleteMultipleServiceAccountsOK
const DeleteMultipleServiceAccountsOKCode int = 200
// DeleteMultipleServiceAccountsNoContentCode is the HTTP code returned for type DeleteMultipleServiceAccountsNoContent
const DeleteMultipleServiceAccountsNoContentCode int = 204
/*DeleteMultipleServiceAccountsOK A successful response.
/*DeleteMultipleServiceAccountsNoContent A successful response.
swagger:response deleteMultipleServiceAccountsOK
swagger:response deleteMultipleServiceAccountsNoContent
*/
type DeleteMultipleServiceAccountsOK struct {
type DeleteMultipleServiceAccountsNoContent struct {
}
// NewDeleteMultipleServiceAccountsOK creates DeleteMultipleServiceAccountsOK with default headers values
func NewDeleteMultipleServiceAccountsOK() *DeleteMultipleServiceAccountsOK {
// NewDeleteMultipleServiceAccountsNoContent creates DeleteMultipleServiceAccountsNoContent with default headers values
func NewDeleteMultipleServiceAccountsNoContent() *DeleteMultipleServiceAccountsNoContent {
return &DeleteMultipleServiceAccountsOK{}
return &DeleteMultipleServiceAccountsNoContent{}
}
// WriteResponse to the client
func (o *DeleteMultipleServiceAccountsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
func (o *DeleteMultipleServiceAccountsNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(200)
rw.WriteHeader(204)
}
/*DeleteMultipleServiceAccountsDefault Generic error response.