Browse Source

Bug 29593: Fix wrong tag in GET /public/libraries spec

This makes the documentation look untidy.

To test:
1. Open the api/v1/swagger/paths/libraries.json file with your favourite
   editor.
=> FAIL: All routes, but this one, have tags: ['library']
2. Apply this patch
=> SUCCESS: All routes have tags: ['libraries']
3. swagger.yaml too!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
master
Tomas Cohen Arazi 2 months ago
committed by Fridolin Somers
parent
commit
a5885949b5
  1. 12
      api/v1/swagger/paths/libraries.json
  2. 2
      api/v1/swagger/swagger.yaml

12
api/v1/swagger/paths/libraries.json

@ -4,7 +4,7 @@
"x-mojo-to": "Libraries#list",
"operationId": "listLibraries",
"tags": [
"library"
"libraries"
],
"summary": "List libraries",
"parameters": [
@ -188,7 +188,7 @@
"x-mojo-to": "Libraries#add",
"operationId": "addLibrary",
"tags": [
"library"
"libraries"
],
"summary": "Add library",
"parameters": [
@ -261,7 +261,7 @@
"x-mojo-to": "Libraries#get",
"operationId": "getLibrary",
"tags": [
"library"
"libraries"
],
"summary": "Get library",
"parameters": [
@ -299,7 +299,7 @@
"x-mojo-to": "Libraries#update",
"operationId": "updateLibrary",
"tags": [
"library"
"libraries"
],
"summary": "Update library",
"parameters": [
@ -376,7 +376,7 @@
"x-mojo-to": "Libraries#delete",
"operationId": "deleteLibrary",
"tags": [
"library"
"libraries"
],
"summary": "Delete library",
"parameters": [
@ -437,7 +437,7 @@
"x-mojo-to": "Libraries#list",
"operationId": "listLibrariesPublic",
"tags": [
"library"
"libraries"
],
"summary": "List libraries",
"parameters": [

2
api/v1/swagger/swagger.yaml

@ -140,7 +140,7 @@ tags:
x-displayName: Items
description: |
Manage items
- name: "library"
- name: "libraries"
x-displayName: Libraries
description: |
Manage libraries

Loading…
Cancel
Save