mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-14 03:17:52 +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:
@@ -188,8 +188,8 @@ type DashboardSummaryResponse struct {
|
||||
// @Param until query int false "unix seconds"
|
||||
// @Param include_trends query bool false "include trend data comparing to previous period"
|
||||
// @Success 200 {object} ResponseEnvelope{data=DashboardSummaryResponse}
|
||||
// @Failure 400 {object} ResponseEnvelope{data=gin.H}
|
||||
// @Failure 500 {object} ResponseEnvelope{data=gin.H}
|
||||
// @Failure 400 {object} ResponseEnvelope{data=MapData}
|
||||
// @Failure 500 {object} ResponseEnvelope{data=MapData}
|
||||
// @Router /admin/dashboard/summary [get]
|
||||
func (h *DashboardHandler) GetSummary(c *gin.Context) {
|
||||
rng, err := parseStatsRange(c)
|
||||
|
||||
Reference in New Issue
Block a user