Tomas Cohen Arazi
0718416ff1
This patch makes the original implementation match what is specified on the RFC [1]. The controller is updated, and so the tests. To test: - Apply this patches: - Run: $ kshell k$ prove t/db_dependent/api/v1/libraries.t => SUCCESS: Tests pass! [1] https://wiki.koha-community.org/wiki/Libraries_endpoint_RFC Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"biblionumber": {
|
|
"type": "integer",
|
|
"description": "internally assigned biblio identifier"
|
|
},
|
|
"patron_id": {
|
|
"type": "integer",
|
|
"description": "Internal patron identifier"
|
|
},
|
|
"library_id": {
|
|
"type": "string",
|
|
"description": "internally assigned library identifier",
|
|
"maxLength": 10,
|
|
"minLength": 1
|
|
},
|
|
"cardnumber": {
|
|
"type": ["string", "null"],
|
|
"description": "library assigned user identifier"
|
|
},
|
|
"city_id": {
|
|
"type": "integer",
|
|
"description": "internally assigned city identifier",
|
|
"readOnly": true
|
|
},
|
|
"email": {
|
|
"type": ["string", "null"],
|
|
"description": "primary email address for patron's primary address"
|
|
},
|
|
"firstname": {
|
|
"type": ["string", "null"],
|
|
"description": "patron's first name"
|
|
},
|
|
"itemnumber": {
|
|
"type": ["integer", "null"],
|
|
"description": "internally assigned item identifier"
|
|
},
|
|
"phone": {
|
|
"type": ["string", "null"],
|
|
"description": "primary phone number for patron's primary address"
|
|
},
|
|
"reserve_id": {
|
|
"type": "integer",
|
|
"description": "Internal hold identifier"
|
|
},
|
|
"surname": {
|
|
"type": "string",
|
|
"description": "patron's last name"
|
|
},
|
|
"vendor_id": {
|
|
"type": "integer",
|
|
"description": "internally assigned vendor identifier",
|
|
"readOnly": true
|
|
}
|
|
}
|