Skip to content

Commit

Permalink
Fix more accidental renames
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenWeathers committed Jun 24, 2023
1 parent 6fa24e7 commit 53ef551
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/api.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package APIService provides restful API endpoints for Thunderdome webapp
// Package api provides restful API endpoints for Thunderdome webapp
package api

import (
Expand Down Expand Up @@ -115,7 +115,7 @@ func Init(apiService Service) *Service {
swaggerJsonPath := "/" + a.Config.PathPrefix + "swagger/doc.json"
validate = validator.New()

swaggerdocs.SwaggerInfo.BasePath = a.Config.PathPrefix + "/APIService"
swaggerdocs.SwaggerInfo.BasePath = a.Config.PathPrefix + "/api"
// swagger docs for external API when enabled
if a.Config.ExternalAPIEnabled {
a.Router.PathPrefix("/swagger/").Handler(httpSwagger.Handler(httpSwagger.URL(swaggerJsonPath)))
Expand Down
4 changes: 2 additions & 2 deletions api/apikey.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type apikeyGenerateRequestBody struct {
// @Tags apikey
// @Produce json
// @Param userId path string true "the user ID to generate API key for"
// @Param key body apikeyGenerateRequestBody true "new APIService key object"
// @Param key body apikeyGenerateRequestBody true "new APIKey key object"
// @Success 200 object standardJsonResponse{data=thunderdome.APIKey}
// @Failure 403 object standardJsonResponse{}
// @Failure 500 object standardJsonResponse{}
Expand Down Expand Up @@ -117,7 +117,7 @@ type apikeyUpdateRequestBody struct {
// @Produce json
// @Param userId path string true "the user ID"
// @Param keyID path string true "the API Key ID to update"
// @Param key body apikeyUpdateRequestBody true "APIService key object to update"
// @Param key body apikeyUpdateRequestBody true "APIKey key object to update"
// @Success 200 object standardJsonResponse{data=[]thunderdome.APIKey}
// @Failure 403 object standardJsonResponse{}
// @Failure 500 object standardJsonResponse{}
Expand Down
2 changes: 1 addition & 1 deletion api/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Error struct {

// Error implements the error interface. Not used by the application otherwise.
func (e *Error) Error() string {
return fmt.Sprintf("APIService error: code=%s message=%s", e.Code, e.Message)
return fmt.Sprintf("API Service error: code=%s message=%s", e.Code, e.Message)
}

// ErrorCode unwraps an application error and returns its code.
Expand Down

0 comments on commit 53ef551

Please sign in to comment.