Browse Source

Bug 24476: API Updates

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Nick Clemens 2 years ago
committed by Martin Renvoize
parent
commit
4e69b19de8
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 1
      Koha/Patron.pm
  2. 4
      api/v1/swagger/definitions/patron.json
  3. 6
      api/v1/swagger/paths/patrons.json

1
Koha/Patron.pm

@ -1671,6 +1671,7 @@ sub to_api_mapping {
smsalertnumber => 'sms_number',
sort1 => 'statistics_1',
sort2 => 'statistics_2',
autorenewal => 'autorenewal',
streetnumber => 'street_number',
streettype => 'street_type',
zipcode => 'postal_code',

4
api/v1/swagger/definitions/patron.json

@ -191,6 +191,10 @@
"type": ["string", "null"],
"description": "a field that can be used for any information unique to the library"
},
"autorenewal": {
"type": "boolean",
"description": "indicate whether auto-renewal is allowed for patron"
},
"altcontact_firstname": {
"type": ["string", "null"],
"description": "first name of alternate contact for the patron"

6
api/v1/swagger/paths/patrons.json

@ -295,6 +295,12 @@
"description": "Case insensitive search on statistics_2",
"required": false,
"type": "string"
}, {
"name": "autorenewal",
"in": "query",
"description": "Search on autorenewal",
"required": false,
"type": "boolean"
}, {
"name": "altcontact_firstname",
"in": "query",

Loading…
Cancel
Save