Skip to content

Commit c408a9f

Browse files
committed
Refactored api.yaml and methods to match operationId
Signed-off-by: Excale <dev_excale@hotmail.com>
1 parent a285a4e commit c408a9f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ paths:
155155

156156
/me:
157157
delete:
158-
operationId: deleteProfile
158+
operationId: deleteSelfUser
159159
summary: Delete the user's profile
160160
description: Delete the user's profile and all related data.
161161
tags: [ 'User' ]

service/api/api-handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func (rt *_router) Handler() http.Handler {
1111
var r = rt.router
1212

1313
// Generic routes
14-
r.GET("/status", rt.getAppInfo)
14+
r.GET("/status", rt.getStatus)
1515

1616
// Login routes
1717
r.POST("/session", rt.wrap(rt.doLogin))

service/api/api-index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type AppInfo struct {
1212
Status string `json:"status"`
1313
}
1414

15-
func (rt *_router) getAppInfo(w http.ResponseWriter, _ *http.Request, _ httprouter.Params) {
15+
func (rt *_router) getStatus(w http.ResponseWriter, _ *http.Request, _ httprouter.Params) {
1616
w.Header().Set("Content-Type", "application/json")
1717

1818
info := AppInfo{

0 commit comments

Comments
 (0)