This commit is contained in:
2025-12-21 22:21:58 +02:00
parent e9d8877fbf
commit ac26a981b2
6 changed files with 189 additions and 197 deletions

View File

@@ -13,7 +13,7 @@ import (
// @Summary Get all resources // @Summary Get all resources
// @Tags acl/resources // @Tags acl/resources
// @Produce json // @Produce json
// @Success 200 {array} getResourcesResponse // @Success 200 {object} getResourcesResponse
// @Failure 500 {object} ProblemDetails // @Failure 500 {object} ProblemDetails
// @Router /api/acl/resources [get] // @Router /api/acl/resources [get]
func (h *aclAdminHandler) getResources(w http.ResponseWriter, r *http.Request) { func (h *aclAdminHandler) getResources(w http.ResponseWriter, r *http.Request) {

View File

@@ -28,8 +28,6 @@ const docTemplate = `{
"200": { "200": {
"description": "OK", "description": "OK",
"schema": { "schema": {
"type": "array",
"items": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
@@ -45,7 +43,6 @@ const docTemplate = `{
} }
} }
} }
}
}, },
"500": { "500": {
"description": "Internal Server Error", "description": "Internal Server Error",

View File

@@ -17,8 +17,6 @@
"200": { "200": {
"description": "OK", "description": "OK",
"schema": { "schema": {
"type": "array",
"items": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
@@ -34,7 +32,6 @@
} }
} }
} }
}
}, },
"500": { "500": {
"description": "Internal Server Error", "description": "Internal Server Error",

View File

@@ -148,7 +148,6 @@ paths:
"200": "200":
description: OK description: OK
schema: schema:
items:
items: items:
properties: properties:
id: id:
@@ -159,7 +158,6 @@ paths:
type: string type: string
type: object type: object
type: array type: array
type: array
"500": "500":
description: Internal Server Error description: Internal Server Error
schema: schema: