Browse Source

Bug 26595: Add smtp_server_info embed option to /libraries

This patch simply adds the option to embed the return value from
Koha::Library->smtp_server_info on the libraries GET actions.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Tomas Cohen Arazi 2 years ago
committed by Jonathan Druart
parent
commit
c59b022783
  1. 14
      api/v1/swagger/definitions/library.json
  2. 10
      api/v1/swagger/paths/libraries.json

14
api/v1/swagger/definitions/library.json

@ -83,6 +83,20 @@
"pickup_location": {
"type": "boolean",
"description": "If the library can act as a pickup location"
},
"smtp_server_info": {
"type": "object",
"properties": {
"name": {
"description": "SMTP server name. 'system_default' if no SMTP server is assigned",
"type": "string"
},
"smtp_server_id": {
"description": "Internal identifier for the SMTP server",
"type": ["integer", "null"]
}
},
"description": "The library effective SMTP server information."
}
},
"additionalProperties": false,

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

@ -178,7 +178,10 @@
"permissions": {
"catalogue": "1"
}
}
},
"x-koha-embed": [
"smtp_server_info"
]
},
"post": {
"x-mojo-to": "Libraries#add",
@ -284,7 +287,10 @@
"permissions": {
"catalogue": "1"
}
}
},
"x-koha-embed": [
"smtp_server_info"
]
},
"put": {
"x-mojo-to": "Libraries#update",

Loading…
Cancel
Save