Bug 18282: operationId must be unique
authorLari Taskula <lari.taskula@jns.fi>
Thu, 16 Mar 2017 11:53:44 +0000 (13:53 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Sep 2017 15:02:39 +0000 (12:02 -0300)
operationId has the following documentation:
 "Unique string used to identify the operation. The id MUST be unique among all
  operations described in the API."

This patch modifies operationIds to be unique accross our API operations.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
api/v1/swagger/paths/cities.json

index 8b739d6..2fe9f49 100644 (file)
@@ -2,7 +2,7 @@
   "/cities": {
     "get": {
       "x-mojo-to": "Cities#list",
-      "operationId": "list",
+      "operationId": "listCities",
       "tags": ["cities"],
       "produces": [
         "application/json"
@@ -64,7 +64,7 @@
     },
     "post": {
       "x-mojo-to": "Cities#add",
-      "operationId": "add",
+      "operationId": "addCity",
       "tags": ["cities"],
       "parameters": [{
         "name": "body",
   "/cities/{cityid}": {
     "get": {
       "x-mojo-to": "Cities#get",
-      "operationId": "get",
+      "operationId": "getCity",
       "tags": ["cities"],
       "parameters": [{
         "$ref": "../parameters.json#/cityidPathParam"
     },
     "put": {
       "x-mojo-to": "Cities#update",
-      "operationId": "update",
+      "operationId": "updateCity",
       "tags": ["cities"],
       "parameters": [{
         "$ref": "../parameters.json#/cityidPathParam"
     },
     "delete": {
       "x-mojo-to": "Cities#delete",
-      "operationId": "delete",
+      "operationId": "deleteCity",
       "tags": ["cities"],
       "parameters": [{
         "$ref": "../parameters.json#/cityidPathParam"