fix: fix Swagger @Tag

This commit is contained in:
Yang Luo
2024-01-15 23:35:40 +08:00
parent b469928780
commit a4524e9996
7 changed files with 24 additions and 18 deletions

View File

@ -734,7 +734,7 @@
"/api/batch-enforce": {
"post": {
"tags": [
"Enforce API"
"Enforcer API"
],
"description": "Call Casbin BatchEnforce API",
"operationId": "ApiController.BatchEnforce",
@ -1493,7 +1493,7 @@
"/api/enforce": {
"post": {
"tags": [
"Enforce API"
"Enforcer API"
],
"description": "Call Casbin Enforce API",
"operationId": "ApiController.Enforce",
@ -1826,7 +1826,7 @@
"/api/get-dashboard": {
"get": {
"tags": [
"GetDashboard API"
"System API"
],
"description": "get information of dashboard",
"operationId": "ApiController.GetDashboard",
@ -2696,7 +2696,7 @@
"/api/get-prometheus-info": {
"get": {
"tags": [
"Prometheus API"
"System API"
],
"description": "get Prometheus Info",
"operationId": "ApiController.GetPrometheusInfo",
@ -3436,7 +3436,7 @@
"/api/get-webhook-event": {
"get": {
"tags": [
"GetWebhookEventType API"
"System API"
],
"operationId": "ApiController.GetWebhookEventType",
"responses": {
@ -3703,6 +3703,9 @@
},
"/api/login/oauth/introspect": {
"post": {
"tags": [
"Login API"
],
"description": "The introspection endpoint is an OAuth 2.0 endpoint that takes a",
"operationId": "ApiController.IntrospectToken",
"parameters": [
@ -5306,7 +5309,7 @@
"/api/webhook": {
"post": {
"tags": [
"HandleOfficialAccountEvent API"
"System API"
],
"operationId": "ApiController.HandleOfficialAccountEvent",
"responses": {

View File

@ -474,7 +474,7 @@ paths:
/api/batch-enforce:
post:
tags:
- Enforce API
- Enforcer API
description: Call Casbin BatchEnforce API
operationId: ApiController.BatchEnforce
parameters:
@ -963,7 +963,7 @@ paths:
/api/enforce:
post:
tags:
- Enforce API
- Enforcer API
description: Call Casbin Enforce API
operationId: ApiController.Enforce
parameters:
@ -1182,7 +1182,7 @@ paths:
/api/get-dashboard:
get:
tags:
- GetDashboard API
- System API
description: get information of dashboard
operationId: ApiController.GetDashboard
responses:
@ -1751,7 +1751,7 @@ paths:
/api/get-prometheus-info:
get:
tags:
- Prometheus API
- System API
description: get Prometheus Info
operationId: ApiController.GetPrometheusInfo
responses:
@ -2238,7 +2238,7 @@ paths:
/api/get-webhook-event:
get:
tags:
- GetWebhookEventType API
- System API
operationId: ApiController.GetWebhookEventType
responses:
"200":
@ -2414,6 +2414,8 @@ paths:
$ref: '#/definitions/object.TokenError'
/api/login/oauth/introspect:
post:
tags:
- Login API
description: The introspection endpoint is an OAuth 2.0 endpoint that takes a
operationId: ApiController.IntrospectToken
parameters:
@ -3467,7 +3469,7 @@ paths:
/api/webhook:
post:
tags:
- HandleOfficialAccountEvent API
- System API
operationId: ApiController.HandleOfficialAccountEvent
responses:
"200":