mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
feat(api): add admin master key listing/revoke
Add admin endpoints to list and revoke child keys under a master. Standardize OpenAPI responses to use ResponseEnvelope with MapData for error payloads, and regenerate swagger specs accordingly.
This commit is contained in:
@@ -172,7 +172,7 @@ type WhoamiResponse struct {
|
||||
// @Security AdminAuth
|
||||
// @Security MasterAuth
|
||||
// @Success 200 {object} ResponseEnvelope{data=WhoamiResponse}
|
||||
// @Failure 401 {object} ResponseEnvelope{data=gin.H} "Invalid or missing token"
|
||||
// @Failure 401 {object} ResponseEnvelope{data=MapData} "Invalid or missing token"
|
||||
// @Router /auth/whoami [get]
|
||||
func (h *AuthHandler) Whoami(c *gin.Context) {
|
||||
authHeader := c.GetHeader("Authorization")
|
||||
|
||||
Reference in New Issue
Block a user