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:
@@ -343,6 +343,8 @@ func main() {
|
||||
adminGroup.POST("/masters/batch", adminHandler.BatchMasters)
|
||||
adminGroup.POST("/masters/:id/manage", adminHandler.ManageMaster)
|
||||
adminGroup.POST("/masters/:id/keys", adminHandler.IssueChildKeyForMaster)
|
||||
adminGroup.GET("/masters/:id/keys", adminHandler.ListKeysForMaster)
|
||||
adminGroup.DELETE("/masters/:id/keys/:key_id", adminHandler.DeleteKeyForMaster)
|
||||
adminGroup.GET("/masters/:id/access", handler.GetMasterAccess)
|
||||
adminGroup.PUT("/masters/:id/access", handler.UpdateMasterAccess)
|
||||
adminGroup.GET("/keys/:id/access", handler.GetKeyAccess)
|
||||
|
||||
Reference in New Issue
Block a user