A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
doc: generate swagger doc
LinkinStar4b7b40152b17
diff --git a/docs/docs.go b/docs/docs.goindex 25d741b8..b74e1325 100644--- a/docs/docs.go+++ b/docs/docs.go@@ -3018,6 +3018,38 @@ const docTemplate = `{}}},+ "/answer/api/v1/siteinfo/legal": {+ "get": {+ "description": "get site legal info",+ "produces": [+ "application/json"+ ],+ "tags": [+ "site"+ ],+ "summary": "get site legal info",+ "responses": {+ "200": {+ "description": "OK",+ "schema": {+ "allOf": [+ {+ "$ref": "#/definitions/handler.RespBody"+ },+ {+ "type": "object",+ "properties": {+ "data": {+ "$ref": "#/definitions/schema.SiteGeneralResp"+ }+ }+ }+ ]+ }+ }+ }+ }+ },"/answer/api/v1/tag": {"get": {"description": "get tag one",@@ -5911,10 +5943,16 @@ const docTemplate = `{"schema.SiteLegalReq": {"type": "object","properties": {- "privacy_policy": {+ "privacy_policy_original_text": {+ "type": "string"+ },+ "privacy_policy_parsed_text": {+ "type": "string"+ },+ "terms_of_service_original_text": {"type": "string"},- "terms_of_service": {+ "terms_of_service_parsed_text": {"type": "string"}}@@ -5922,10 +5960,16 @@ const docTemplate = `{"schema.SiteLegalResp": {"type": "object","properties": {- "privacy_policy": {+ "privacy_policy_original_text": {+ "type": "string"+ },+ "privacy_policy_parsed_text": {+ "type": "string"+ },+ "terms_of_service_original_text": {"type": "string"},- "terms_of_service": {+ "terms_of_service_parsed_text": {"type": "string"}}diff --git a/docs/swagger.json b/docs/swagger.jsonindex 8f85bb27..9e10f552 100644--- a/docs/swagger.json+++ b/docs/swagger.json@@ -3006,6 +3006,38 @@}}},+ "/answer/api/v1/siteinfo/legal": {+ "get": {+ "description": "get site legal info",+ "produces": [+ "application/json"+ ],+ "tags": [+ "site"+ ],+ "summary": "get site legal info",+ "responses": {+ "200": {+ "description": "OK",+ "schema": {+ "allOf": [+ {+ "$ref": "#/definitions/handler.RespBody"+ },+ {+ "type": "object",+ "properties": {+ "data": {+ "$ref": "#/definitions/schema.SiteGeneralResp"+ }+ }+ }+ ]+ }+ }+ }+ }+ },"/answer/api/v1/tag": {"get": {"description": "get tag one",@@ -5899,10 +5931,16 @@"schema.SiteLegalReq": {"type": "object","properties": {- "privacy_policy": {+ "privacy_policy_original_text": {+ "type": "string"+ },+ "privacy_policy_parsed_text": {+ "type": "string"+ },+ "terms_of_service_original_text": {"type": "string"},- "terms_of_service": {+ "terms_of_service_parsed_text": {"type": "string"}}@@ -5910,10 +5948,16 @@"schema.SiteLegalResp": {"type": "object","properties": {- "privacy_policy": {+ "privacy_policy_original_text": {+ "type": "string"+ },+ "privacy_policy_parsed_text": {+ "type": "string"+ },+ "terms_of_service_original_text": {"type": "string"},- "terms_of_service": {+ "terms_of_service_parsed_text": {"type": "string"}}diff --git a/docs/swagger.yaml b/docs/swagger.yamlindex 5044f970..6966bd2f 100644--- a/docs/swagger.yaml+++ b/docs/swagger.yaml@@ -1168,16 +1168,24 @@ definitions:type: objectschema.SiteLegalReq:properties:- privacy_policy:+ privacy_policy_original_text:type: string- terms_of_service:+ privacy_policy_parsed_text:+ type: string+ terms_of_service_original_text:+ type: string+ terms_of_service_parsed_text:type: stringtype: objectschema.SiteLegalResp:properties:- privacy_policy:+ privacy_policy_original_text:+ type: string+ privacy_policy_parsed_text:type: string- terms_of_service:+ terms_of_service_original_text:+ type: string+ terms_of_service_parsed_text:type: stringtype: objectschema.SiteWriteReq:@@ -3379,6 +3387,24 @@ paths:summary: get site infotags:- site+ /answer/api/v1/siteinfo/legal:+ get:+ description: get site legal info+ produces:+ - application/json+ responses:+ "200":+ description: OK+ schema:+ allOf:+ - $ref: '#/definitions/handler.RespBody'+ - properties:+ data:+ $ref: '#/definitions/schema.SiteGeneralResp'+ type: object+ summary: get site legal info+ tags:+ - site/answer/api/v1/tag:delete:consumes: