Skip to content

Commit

Permalink
Fixes swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn committed Dec 21, 2021
1 parent 5044197 commit a53cdc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions routers/api/catalog/v3/catalog.go
Expand Up @@ -205,9 +205,9 @@ func CatalogSubjectsPivotedSearchV3(ctx *context.APIContext) {

// CatalogSubjectsPivotedBySubjectV3 catalog v3 listing that pivotes the catalog by subject/language for a single subject
func CatalogSubjectsPivotedBySubjectV3(ctx *context.APIContext) {
// swagger:operation GET /v3/subjects/{subject}.json v3 CatalogSubjectsPivotedSearchV3
// swagger:operation GET /v3/subjects/{subject}.json v3 CatalogSubjectsPivotedBySubjectV3
// ---
// summary: Catalog v3 listing pivoted on subject by a given subject (example: /v3/subjects/Open_Bible_Stories.json)
// summary: Catalog v3 listing pivoted on subject by a given subject (e.g. /v3/subjects/Open_Bible_Stories.json)
// produces:
// - application/json
// parameters:
Expand Down
8 changes: 4 additions & 4 deletions templates/swagger/catalog/catalog_json.tmpl
Expand Up @@ -21,7 +21,7 @@
},
"version": "5.0.0"
},
"basePath": "{{AppSubUrl | JSEscape | Safe}}/api/catalog",
"basePath": "/api/catalog",
"paths": {
"/misc/versions": {
"get": {
Expand Down Expand Up @@ -195,8 +195,8 @@
"tags": [
"v3"
],
"summary": "Catalog v3 listing pivoted on subject by a given subject",
"operationId": "CatalogSubjectsPivotedSearchV3",
"summary": "Catalog v3 listing pivoted on subject by a given subject (e.g. /v3/subjects/Open_Bible_Stories.json)",
"operationId": "CatalogSubjectsPivotedBySubjectV3",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -1540,7 +1540,7 @@
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
"CatalogV3Subject": {
"description": "CatalogV3Subjects represents a subject \u0026 language combination in the catalog v3 languages array",
"description": "CatalogV3Subject represents a subject \u0026 language combination in the catalog v3 languages array",
"type": "object",
"properties": {
"direction": {
Expand Down

0 comments on commit a53cdc2

Please sign in to comment.