feat(docs): Add Apache License header
This commit is contained in:
+46
-4
@@ -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
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user