View | Details | Raw Unified | Return to bug 26595
Collapse All | Expand All

(-)a/api/v1/swagger/definitions/library.json (+14 lines)
Lines 83-88 Link Here
83
    "pickup_location": {
83
    "pickup_location": {
84
        "type": "boolean",
84
        "type": "boolean",
85
        "description": "If the library can act as a pickup location"
85
        "description": "If the library can act as a pickup location"
86
    },
87
    "smtp_server_info": {
88
        "type": "object",
89
        "properties": {
90
          "name": {
91
            "description": "SMTP server name. 'system_default' if no SMTP server is assigned",
92
            "type": "string"
93
          },
94
          "smtp_server_id": {
95
            "description": "Internal identifier for the SMTP server",
96
            "type": ["integer", "null"]
97
          }
98
        },
99
        "description": "The library effective SMTP server information."
86
    }
100
    }
87
  },
101
  },
88
  "additionalProperties": false,
102
  "additionalProperties": false,
(-)a/api/v1/swagger/paths/libraries.json (-3 / +8 lines)
Lines 178-184 Link Here
178
        "permissions": {
178
        "permissions": {
179
          "catalogue": "1"
179
          "catalogue": "1"
180
        }
180
        }
181
      }
181
      },
182
      "x-koha-embed": [
183
        "smtp_server_info"
184
      ]
182
    },
185
    },
183
    "post": {
186
    "post": {
184
      "x-mojo-to": "Libraries#add",
187
      "x-mojo-to": "Libraries#add",
Lines 284-290 Link Here
284
        "permissions": {
287
        "permissions": {
285
          "catalogue": "1"
288
          "catalogue": "1"
286
        }
289
        }
287
      }
290
      },
291
      "x-koha-embed": [
292
        "smtp_server_info"
293
      ]
288
    },
294
    },
289
    "put": {
295
    "put": {
290
      "x-mojo-to": "Libraries#update",
296
      "x-mojo-to": "Libraries#update",
291
- 

Return to bug 26595