feat(docs): Add Apache License header

This commit is contained in:
LinkinStars
2025-04-29 15:00:40 +08:00
parent e9c403c8ea
commit 02c1304b99
11 changed files with 256 additions and 12 deletions
+46 -4
View File
@@ -3109,7 +3109,7 @@ const docTemplate = `{
},
"/answer/api/v1/embed/config": {
"get": {
"description": "GetEmbedConfig",
"description": "get embed plugin config",
"consumes": [
"application/json"
],
@@ -3117,9 +3117,9 @@ const docTemplate = `{
"application/json"
],
"tags": [
"PluginEmbed"
"Plugin"
],
"summary": "GetEmbedConfig",
"summary": "get embed plugin config",
"responses": {
"200": {
"description": "OK",
@@ -5828,6 +5828,45 @@ const docTemplate = `{
}
}
},
"/answer/api/v1/tag/merge": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "merge tag",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tag"
],
"summary": "merge tag",
"parameters": [
{
"description": "tag",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/schema.AddTagReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handler.RespBody"
}
}
}
}
},
"/answer/api/v1/tag/recover": {
"post": {
"security": [
@@ -9085,6 +9124,9 @@ const docTemplate = `{
},
"slug_name": {
"type": "string"
},
"tag_id": {
"type": "string"
}
}
},
@@ -11787,4 +11829,4 @@ var SwaggerInfo = &swag.Spec{
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
}
+45 -3
View File
@@ -3082,7 +3082,7 @@
},
"/answer/api/v1/embed/config": {
"get": {
"description": "GetEmbedConfig",
"description": "get embed plugin config",
"consumes": [
"application/json"
],
@@ -3090,9 +3090,9 @@
"application/json"
],
"tags": [
"PluginEmbed"
"Plugin"
],
"summary": "GetEmbedConfig",
"summary": "get embed plugin config",
"responses": {
"200": {
"description": "OK",
@@ -5801,6 +5801,45 @@
}
}
},
"/answer/api/v1/tag/merge": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "merge tag",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tag"
],
"summary": "merge tag",
"parameters": [
{
"description": "tag",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/schema.AddTagReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handler.RespBody"
}
}
}
}
},
"/answer/api/v1/tag/recover": {
"post": {
"security": [
@@ -9058,6 +9097,9 @@
},
"slug_name": {
"type": "string"
},
"tag_id": {
"type": "string"
}
}
},
+30 -4
View File
@@ -1138,6 +1138,8 @@ definitions:
type: boolean
slug_name:
type: string
tag_id:
type: string
type: object
schema.GetTagPageResp:
properties:
@@ -4833,7 +4835,7 @@ paths:
get:
consumes:
- application/json
description: GetEmbedConfig
description: get embed plugin config
produces:
- application/json
responses:
@@ -4848,9 +4850,9 @@ paths:
$ref: '#/definitions/plugin.EmbedConfig'
type: array
type: object
summary: GetEmbedConfig
summary: get embed plugin config
tags:
- PluginEmbed
- Plugin
/answer/api/v1/file:
post:
consumes:
@@ -6487,6 +6489,30 @@ paths:
summary: update tag
tags:
- Tag
/answer/api/v1/tag/merge:
post:
consumes:
- application/json
description: merge tag
parameters:
- description: tag
in: body
name: data
required: true
schema:
$ref: '#/definitions/schema.AddTagReq'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/handler.RespBody'
security:
- ApiKeyAuth: []
summary: merge tag
tags:
- Tag
/answer/api/v1/tag/recover:
post:
consumes:
@@ -7487,4 +7513,4 @@ securityDefinitions:
in: header
name: Authorization
type: apiKey
swagger: "2.0"
swagger: "2.0"