Skip to content

Commit

Permalink
Remove unused swagger autogenerated files (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesnietor authored Jun 23, 2020
1 parent f77770b commit 1aec2d8
Show file tree
Hide file tree
Showing 17 changed files with 4 additions and 1,419 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ install: mcs

swagger-gen:
@echo "Generating swagger server code from yaml"
@rm -rf models
@rm -rf restapi/operations
@swagger generate server -A mcs --main-package=mcs --exclude-main -P models.Principal -f ./swagger.yml -r NOTICE

assets:
Expand Down
147 changes: 0 additions & 147 deletions models/add_notification_endpoint.go

This file was deleted.

72 changes: 0 additions & 72 deletions models/policy_statement.go

This file was deleted.

62 changes: 0 additions & 62 deletions models/policy_statements.go

This file was deleted.

4 changes: 2 additions & 2 deletions restapi/admin_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ func registerUsersHandlers(api *operations.McsAPI) {
sessionID := string(*principal)
userInfoResponse, err := getUserInfoResponse(sessionID, params)
if err != nil {
return admin_api.NewGetUserDefault(500).WithPayload(&models.Error{Code: 500, Message: swag.String(err.Error())})
return admin_api.NewGetUserInfoDefault(500).WithPayload(&models.Error{Code: 500, Message: swag.String(err.Error())})
}

return admin_api.NewGetUserOK().WithPayload(userInfoResponse)
return admin_api.NewGetUserInfoOK().WithPayload(userInfoResponse)
})
// Update User
api.AdminAPIUpdateUserInfoHandler = admin_api.UpdateUserInfoHandlerFunc(func(params admin_api.UpdateUserInfoParams, principal *models.Principal) middleware.Responder {
Expand Down
90 changes: 0 additions & 90 deletions restapi/operations/admin_api/get_user.go

This file was deleted.

Loading

0 comments on commit 1aec2d8

Please sign in to comment.