Bug 29620: Move the OpenAPI spec to YAML format

This patch moves all the REST API spec pieces into YAML.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/*
=> SUCCESS: Tests pass
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests still pass!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2021-12-02 09:08:48 -03:00 committed by Kyle Hall
parent 6c52b366c3
commit 46d19dd617
167 changed files with 7616 additions and 10385 deletions

View File

@ -1,95 +0,0 @@
{
"account_line": {
"$ref": "definitions/account_line.json"
},
"basket": {
"$ref": "definitions/basket.json"
},
"cashup": {
"$ref": "definitions/cashup.json"
},
"circ-rule-kind": {
"$ref": "definitions/circ-rule-kind.json"
},
"city": {
"$ref": "definitions/city.yaml"
},
"error": {
"$ref": "definitions/error.json"
},
"fund": {
"$ref": "definitions/fund.json"
},
"hold": {
"$ref": "definitions/hold.json"
},
"invoice": {
"$ref": "definitions/invoice.json"
},
"item": {
"$ref": "definitions/item.yaml"
},
"checkouts": {
"$ref": "definitions/checkouts.json"
},
"checkout": {
"$ref": "definitions/checkout.json"
},
"holds": {
"$ref": "definitions/holds.json"
},
"ill_backends": {
"$ref": "definitions/ill_backends.json"
},
"ill_backend": {
"$ref": "definitions/ill_backend.json"
},
"import_batch_profile": {
"$ref": "definitions/import_batch_profile.json"
},
"import_batch_profiles": {
"$ref": "definitions/import_batch_profiles.json"
},
"library": {
"$ref": "definitions/library.json"
},
"transfer_limit": {
"$ref": "definitions/transfer_limit.json"
},
"order": {
"$ref": "definitions/order.json"
},
"advancededitormacro": {
"$ref": "definitions/advancededitormacro.json"
},
"patron": {
"$ref": "definitions/patron.json"
},
"patron_account_credit": {
"$ref": "definitions/patron_account_credit.json"
},
"patron_balance": {
"$ref": "definitions/patron_balance.json"
},
"patron_extended_attribute": {
"$ref": "definitions/patron_extended_attribute.json"
},
"quote": {
"$ref": "definitions/quote.json"
},
"allows_renewal": {
"$ref": "definitions/allows_renewal.json"
},
"vendor": {
"$ref": "definitions/vendor.json"
},
"return_claim": {
"$ref": "definitions/return_claim.json"
},
"smtp_server": {
"$ref": "definitions/smtp_server.json"
},
"suggestion": {
"$ref": "definitions/suggestion.yaml"
}
}

View File

@ -0,0 +1,63 @@
---
account_line:
$ref: definitions/account_line.yaml
advancededitormacro:
$ref: definitions/advancededitormacro.yaml
allows_renewal:
$ref: definitions/allows_renewal.yaml
basket:
$ref: definitions/basket.yaml
cashup:
$ref: definitions/cashup.yaml
checkout:
$ref: definitions/checkout.yaml
checkouts:
$ref: definitions/checkouts.yaml
circ-rule-kind:
$ref: definitions/circ-rule-kind.yaml
city:
$ref: definitions/city.yaml
error:
$ref: definitions/error.yaml
fund:
$ref: definitions/fund.yaml
hold:
$ref: definitions/hold.yaml
holds:
$ref: definitions/holds.yaml
ill_backend:
$ref: definitions/ill_backend.yaml
ill_backends:
$ref: definitions/ill_backends.yaml
import_batch_profile:
$ref: definitions/import_batch_profile.yaml
import_batch_profiles:
$ref: definitions/import_batch_profiles.yaml
invoice:
$ref: definitions/invoice.yaml
item:
$ref: definitions/item.yaml
library:
$ref: definitions/library.yaml
order:
$ref: definitions/order.yaml
patron:
$ref: definitions/patron.yaml
patron_account_credit:
$ref: definitions/patron_account_credit.yaml
patron_balance:
$ref: definitions/patron_balance.yaml
patron_extended_attribute:
$ref: definitions/patron_extended_attribute.yaml
quote:
$ref: definitions/quote.yaml
return_claim:
$ref: definitions/return_claim.yaml
smtp_server:
$ref: definitions/smtp_server.yaml
suggestion:
$ref: definitions/suggestion.yaml
transfer_limit:
$ref: definitions/transfer_limit.yaml
vendor:
$ref: definitions/vendor.yaml

View File

@ -1,121 +0,0 @@
{
"type": "object",
"properties": {
"account_line_id": {
"type": "integer",
"description": "Internal account line identifier"
},
"checkout_id": {
"type": [
"integer",
"null"
],
"description": "Internal identifier for the checkout the account line is related to"
},
"patron_id": {
"type": "integer",
"description": "Internal identifier for the patron the account line belongs to"
},
"item_id": {
"type": [
"integer",
"null"
],
"description": "Internal identifier for the item the account line is related to"
},
"date": {
"type": "string",
"format": "date-time",
"description": "Date the account line was created"
},
"amount": {
"type": "number",
"description": "Account line amount"
},
"description": {
"type": [
"string",
"null"
],
"description": "Account line description"
},
"account_type": {
"type": [
"string",
"null"
],
"description": "Account line type"
},
"debit_type": {
"type": [
"string",
"null"
],
"description": "Account line debit type"
},
"credit_type": {
"type": [
"string",
"null"
],
"description": "Account line credit type"
},
"payment_type": {
"type": [
"string",
"null"
],
"description": "Payment type"
},
"amount_outstanding": {
"type": "number",
"description": "Outstanding amount"
},
"last_increment": {
"type": [
"number",
"null"
],
"description": "The amount the line was increased last time"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp for the latest line update"
},
"internal_note": {
"type": [
"string",
"null"
],
"description": "Internal note"
},
"user_id": {
"type": [
"integer",
"null"
],
"description": "Internal patron identifier for the staff member that introduced the account line"
},
"library_id": {
"type": [
"string",
"null"
],
"description": "Internal identifier for the library in which the transaction took place"
},
"interface": {
"type": [ "string", "null" ],
"description": "Interface in which the account line was generated (values can be: api, cron, commandline, intranet, opac and sip)"
},
"status": {
"type": [ "string", "null" ],
"description": "The credit/debit status"
},
"cash_register_id": {
"type": [ "integer", "null" ],
"description": "Internal identifier for the cash register used for the payment (if any)"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,96 @@
---
type: object
properties:
account_line_id:
type: integer
description: Internal account line identifier
checkout_id:
type:
- integer
- "null"
description: Internal identifier for the checkout the account line is related to
patron_id:
type: integer
description: Internal identifier for the patron the account line belongs to
item_id:
type:
- integer
- "null"
description: Internal identifier for the item the account line is related to
date:
type: string
format: date-time
description: Date the account line was created
amount:
type: number
description: Account line amount
description:
type:
- string
- "null"
description: Account line description
account_type:
type:
- string
- "null"
description: Account line type
debit_type:
type:
- string
- "null"
description: Account line debit type
credit_type:
type:
- string
- "null"
description: Account line credit type
payment_type:
type:
- string
- "null"
description: Payment type
amount_outstanding:
type: number
description: Outstanding amount
last_increment:
type:
- number
- "null"
description: The amount the line was increased last time
timestamp:
type: string
format: date-time
description: Timestamp for the latest line update
internal_note:
type:
- string
- "null"
description: Internal note
user_id:
type:
- integer
- "null"
description: Internal patron identifier for the staff member that introduced the
account line
library_id:
type:
- string
- "null"
description: Internal identifier for the library in which the transaction took place
interface:
type:
- string
- "null"
description: "Interface in which the account line was generated (values can be: api,
cron, commandline, intranet, opac and sip)"
status:
type:
- string
- "null"
description: The credit/debit status
cash_register_id:
type:
- integer
- "null"
description: Internal identifier for the cash register used for the payment (if any)
additionalProperties: false

View File

@ -1,26 +0,0 @@
{
"type": "object",
"properties": {
"macro_id": {
"$ref": "../x-primitives.json#/advancededitormacro_id"
},
"name": {
"description": "macro name",
"type": "string"
},
"macro_text": {
"description": "macro text",
"type": ["string", "null"]
},
"patron_id": {
"description": "borrower number",
"type": ["integer", "null"]
},
"shared": {
"description": "is macro shared",
"type": ["boolean", "null"]
}
},
"additionalProperties": false,
"required": ["name", "macro_text", "patron_id", "shared"]
}

View File

@ -0,0 +1,29 @@
---
type: object
properties:
macro_id:
$ref: ../x-primitives.yaml#/advancededitormacro_id
name:
description: macro name
type: string
macro_text:
description: macro text
type:
- string
- "null"
patron_id:
description: borrower number
type:
- integer
- "null"
shared:
description: is macro shared
type:
- boolean
- "null"
additionalProperties: false
required:
- name
- macro_text
- patron_id
- shared

View File

@ -1,26 +0,0 @@
{
"type": "object",
"properties": {
"allows_renewal": {
"type": "boolean",
"description": "Renewability status; true = renewable, false = not renewable"
},
"max_renewals": {
"type": "integer",
"description": "Maximum number of possible renewals"
},
"current_renewals": {
"type": "integer",
"description": "Current used renewals"
},
"unseen_renewals": {
"type": "integer",
"description": "Number of consecutive times the item was renewed without being seen"
},
"error": {
"type": ["string", "null"],
"description": "Description on false allows_renewal."
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,21 @@
---
type: object
properties:
allows_renewal:
type: boolean
description: Renewability status; true = renewable, false = not renewable
max_renewals:
type: integer
description: Maximum number of possible renewals
current_renewals:
type: integer
description: Current used renewals
unseen_renewals:
type: integer
description: Number of consecutive times the item was renewed without being seen
error:
type:
- string
- "null"
description: Description on false allows_renewal.
additionalProperties: false

View File

@ -1,100 +0,0 @@
{
"type": "object",
"properties": {
"basket_id": {
"type": "integer",
"description": "Internal identifier for the basket"
},
"name": {
"type": "string",
"description": "Basket name"
},
"internal_note": {
"type": [
"string",
"null"
],
"description": "Internal note"
},
"vendor_note": {
"type": [
"string",
"null"
],
"description": "Vendor note"
},
"contract_id": {
"type": "integer",
"description": "Internal identifier of the linked contract"
},
"creation_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "The date the basket was created"
},
"close_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "The date the basket was closed"
},
"vendor_id": {
"type": "integer",
"description": "Internal identifier for the vendor"
},
"authorised_by": {
"type": [
"integer",
"null"
],
"description": "Internal patron identifier of the basket creator"
},
"basket_group_id": {
"type": [
"integer",
"null"
],
"description": "links this basket to its group (aqbasketgroups.id)"
},
"delivery_library": {
"type": [
"string",
"null"
],
"description": "basket delivery place"
},
"billing_library": {
"type": [
"string",
"null"
],
"description": "basket billing place"
},
"library_id": {
"type": [
"integer",
"null"
],
"description": "Library the basket belongs to"
},
"standing": {
"type": "boolean",
"description": "If the orders in this basket are standing"
},
"create_items": {
"type": "string",
"enum": [
"ordering",
"receiving",
"cataloguing"
],
"description": "When items should be created for orders in this basket (Options: 'ordering', 'receiving', 'cataloguing'. Null means system wide config)"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,74 @@
---
type: object
properties:
basket_id:
type: integer
description: Internal identifier for the basket
name:
type: string
description: Basket name
internal_note:
type:
- string
- "null"
description: Internal note
vendor_note:
type:
- string
- "null"
description: Vendor note
contract_id:
type: integer
description: Internal identifier of the linked contract
creation_date:
type:
- string
- "null"
format: date
description: The date the basket was created
close_date:
type:
- string
- "null"
format: date
description: The date the basket was closed
vendor_id:
type: integer
description: Internal identifier for the vendor
authorised_by:
type:
- integer
- "null"
description: Internal patron identifier of the basket creator
basket_group_id:
type:
- integer
- "null"
description: links this basket to its group (aqbasketgroups.id)
delivery_library:
type:
- string
- "null"
description: basket delivery place
billing_library:
type:
- string
- "null"
description: basket billing place
library_id:
type:
- integer
- "null"
description: Library the basket belongs to
standing:
type: boolean
description: If the orders in this basket are standing
create_items:
type: string
enum:
- ordering
- receiving
- cataloguing
description: "When items should be created for orders in this basket (Options:
'ordering', 'receiving', 'cataloguing'. Null means system wide config)"
additionalProperties: false

View File

@ -1,38 +0,0 @@
{
"type": "object",
"properties": {
"cashup_id": {
"type": "integer",
"description": "Internal cashup identifier"
},
"cash_register_id": {
"type": "integer",
"description": "Internal identifier for the register the cashup belongs to"
},
"manager_id": {
"type": "integer",
"description": "Internal identifier for the manager the cashup was performed by"
},
"manager": {
"type": [
"object",
"null"
],
"description": "The object representing the manager the cashup was performed by"
},
"amount": {
"type": "number",
"description": "Account line amount"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp for the latest line update"
},
"summary": {
"type": "object",
"description": "A summary of the cashup action"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,28 @@
---
type: object
properties:
cashup_id:
type: integer
description: Internal cashup identifier
cash_register_id:
type: integer
description: Internal identifier for the register the cashup belongs to
manager_id:
type: integer
description: Internal identifier for the manager the cashup was performed by
manager:
type:
- object
- "null"
description: The object representing the manager the cashup was performed by
amount:
type: number
description: Account line amount
timestamp:
type: string
format: date-time
description: Timestamp for the latest line update
summary:
type: object
description: A summary of the cashup action
additionalProperties: false

View File

@ -1,110 +0,0 @@
{
"type": "object",
"properties": {
"checkout_id": {
"type": "integer",
"description": "internally assigned checkout identifier"
},
"patron_id": {
"$ref": "../x-primitives.json#/patron_id"
},
"item_id": {
"type": "integer",
"description": "internal identifier of checked out item"
},
"due_date": {
"type": "string",
"format": "date-time",
"description": "Due date"
},
"library_id": {
"type": ["string", "null"],
"description": "code of the library the item was checked out"
},
"issuer_id": {
"type": [ "integer", "null" ],
"description": "internally assigned for the user that processed the checkout"
},
"checkin_date": {
"type": ["string", "null"],
"format": "date-time",
"description": "Date the item was returned"
},
"last_renewed_date": {
"type": ["string", "null"],
"format": "date-time",
"description": "Date the item was last renewed"
},
"renewals": {
"type": ["integer", "null"],
"description": "Number of renewals"
},
"unseen_renewals": {
"type": ["integer", "null"],
"description": "Number of consecutive unseen renewals"
},
"auto_renew": {
"type": "boolean",
"description": "Auto renewal"
},
"auto_renew_error": {
"type": ["string", "null"],
"description": "Auto renewal error"
},
"timestamp": {
"type": "string",
"description": "Last update time"
},
"checkout_date": {
"type": "string",
"format": "date-time",
"description": "Date the item was issued"
},
"onsite_checkout": {
"type": "boolean",
"description": "On site checkout"
},
"note": {
"type": ["string", "null"],
"description": "Issue note text"
},
"note_date": {
"type": ["string", "null"],
"format": "date",
"description": "Datetime of the issue note"
},
"note_seen": {
"type": ["boolean", "null"],
"description": "has the note been seen already"
},
"issuer": {
"type": [
"object",
"null"
],
"description": "The object representing the checkout issuer"
},
"item": {
"type": [
"object",
"null"
],
"description": "The object representing the checked out item"
},
"library": {
"type": [
"object",
"null"
],
"description": "The object representing the checkout library"
},
"patron": {
"type": [
"object",
"null"
],
"description": "The object representing the checkout patron"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,102 @@
---
type: object
properties:
checkout_id:
type: integer
description: internally assigned checkout identifier
patron_id:
$ref: ../x-primitives.yaml#/patron_id
item_id:
type: integer
description: internal identifier of checked out item
due_date:
type: string
format: date-time
description: Due date
library_id:
type:
- string
- "null"
description: code of the library the item was checked out
issuer_id:
type:
- integer
- "null"
description: internally assigned for the user that processed the checkout
checkin_date:
type:
- string
- "null"
format: date-time
description: Date the item was returned
last_renewed_date:
type:
- string
- "null"
format: date-time
description: Date the item was last renewed
renewals:
type:
- integer
- "null"
description: Number of renewals
unseen_renewals:
type:
- integer
- "null"
description: Number of consecutive unseen renewals
auto_renew:
type: boolean
description: Auto renewal
auto_renew_error:
type:
- string
- "null"
description: Auto renewal error
timestamp:
type: string
description: Last update time
checkout_date:
type: string
format: date-time
description: Date the item was issued
onsite_checkout:
type: boolean
description: On site checkout
note:
type:
- string
- "null"
description: Issue note text
note_date:
type:
- string
- "null"
format: date
description: Datetime of the issue note
note_seen:
type:
- boolean
- "null"
description: has the note been seen already
issuer:
type:
- object
- "null"
description: The object representing the checkout issuer
item:
type:
- object
- "null"
description: The object representing the checked out item
library:
type:
- object
- "null"
description: The object representing the checkout library
patron:
type:
- object
- "null"
description: The object representing the checkout patron
additionalProperties: false

View File

@ -1,7 +0,0 @@
{
"type": "array",
"items": {
"$ref": "checkout.json"
},
"additionalProperties": false
}

View File

@ -0,0 +1,5 @@
---
type: array
items:
$ref: checkout.yaml
additionalProperties: false

View File

@ -1,15 +0,0 @@
{
"type": "object",
"properties": {
"scope": {
"description": "levels that this rule kind can be set for",
"type": "array",
"items": {
"type": "string",
"enum": [ "branchcode", "categorycode", "itemtype" ]
}
}
},
"additionalProperties": false,
"required": ["scope"]
}

View File

@ -0,0 +1,15 @@
---
type: object
properties:
scope:
description: levels that this rule kind can be set for
type: array
items:
type: string
enum:
- branchcode
- categorycode
- itemtype
additionalProperties: false
required:
- scope

View File

@ -2,7 +2,7 @@
type: object
properties:
city_id:
$ref: ../x-primitives.json#/city_id
$ref: ../x-primitives.yaml#/city_id
name:
description: city name
type: string

View File

@ -1,27 +0,0 @@
{
"type": "object",
"properties": {
"club_hold_id": {
"type": "integer",
"description": "Internal club hold identifier"
},
"club_id": {
"type": "integer",
"description": "Internal club identifier"
},
"biblio_id": {
"type": "integer",
"description": "Internal biblio identifier"
},
"item_id": {
"type": ["string", "null"],
"description": "Internal item identifier"
},
"date_created": {
"type": "string",
"format": "date-time",
"description": "Date and time the hold was created"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,22 @@
---
type: object
properties:
club_hold_id:
type: integer
description: Internal club hold identifier
club_id:
type: integer
description: Internal club identifier
biblio_id:
type: integer
description: Internal biblio identifier
item_id:
type:
- string
- "null"
description: Internal item identifier
date_created:
type: string
format: date-time
description: Date and time the hold was created
additionalProperties: false

View File

@ -1,31 +0,0 @@
{
"type": "object",
"properties": {
"club_hold_patron_hold_id": {
"type": "integer",
"description": "Internal club hold to patron hold identifier"
},
"club_hold_id": {
"type": "integer",
"description": "Internal club hold identifier"
},
"hold_id": {
"type": ["integer", "null"],
"description": "Internal hold identifier"
},
"patron_id": {
"type": "integer",
"description": "Internal patron identifier"
},
"error_code": {
"type": ["string", "null"],
"format": "date",
"description": "Code returned by CanItemBeReserved"
},
"error_message": {
"type": ["string", "null"],
"description": "Generic error message"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,29 @@
---
type: object
properties:
club_hold_patron_hold_id:
type: integer
description: Internal club hold to patron hold identifier
club_hold_id:
type: integer
description: Internal club hold identifier
hold_id:
type:
- integer
- "null"
description: Internal hold identifier
patron_id:
type: integer
description: Internal patron identifier
error_code:
type:
- string
- "null"
format: date
description: Code returned by CanItemBeReserved
error_message:
type:
- string
- "null"
description: Generic error message
additionalProperties: false

View File

@ -1,7 +0,0 @@
{
"type": "array",
"items": {
"$ref": "club_hold_patron_hold.json"
},
"additionalProperties": false
}

View File

@ -0,0 +1,5 @@
---
type: array
items:
$ref: club_hold_patron_hold.yaml
additionalProperties: false

View File

@ -1,7 +0,0 @@
{
"type": "array",
"items": {
"$ref": "club_hold.json"
},
"additionalProperties": false
}

View File

@ -0,0 +1,5 @@
---
type: array
items:
$ref: club_hold.yaml
additionalProperties: false

View File

@ -1,10 +0,0 @@
{
"type": "object",
"properties": {
"error": {
"description": "Error message",
"type": "string"
}
},
"additionalProperties": true
}

View File

@ -0,0 +1,7 @@
---
type: object
properties:
error:
description: Error message
type: string
additionalProperties: true

View File

@ -1,105 +0,0 @@
{
"type": "object",
"properties": {
"fund_id": {
"$ref": "../x-primitives.json#/fund_id"
},
"code": {
"type": [
"string",
"null"
],
"description": "Code assigned to the fund by the user"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name assigned to the fund by the user"
},
"library_id": {
"type": [
"string",
"null"
],
"description": "Internal identifier for the library that this fund belongs to"
},
"total_amount": {
"type": [
"number",
"null"
],
"description": "Total amount for this fund"
},
"warn_at_percentage": {
"type": [
"number",
"null"
],
"description": "Warning at percentage"
},
"warn_at_amount": {
"type": [
"number",
"null"
],
"description": "Warning at amount"
},
"notes": {
"type": [
"string",
"null"
],
"description": "Notes related to this fund"
},
"budget_id": {
"type": [
"number",
"null"
],
"description": "Internal identifier for the budget"
},
"timestamp": {
"type": [
"string"
],
"format": "date-time",
"description": "Timestamp"
},
"fund_owner_id": {
"type": [
"number",
"null"
],
"description": "Internal identifier for the fund owner"
},
"fund_access": {
"type": [
"number",
"null"
],
"description": "Level of permission for this fund (1: owner, 2: owner, users and library, 3: owner and users)"
},
"parent_fund_id": {
"type": [ "integer", "null" ],
"description": "Internal identifier for parent fund"
},
"statistic1_auth_value_category": {
"type": [
"string",
"null"
],
"description": "Statistical category for this fund"
},
"statistic2_auth_value_category": {
"type": [
"string",
"null"
],
"description": "Second statistical category for this fund"
}
},
"additionalProperties": false,
"required": ["name"]
}

View File

@ -0,0 +1,79 @@
---
type: object
properties:
fund_id:
$ref: ../x-primitives.yaml#/fund_id
code:
type:
- string
- "null"
description: Code assigned to the fund by the user
name:
type:
- string
- "null"
description: Name assigned to the fund by the user
library_id:
type:
- string
- "null"
description: Internal identifier for the library that this fund belongs to
total_amount:
type:
- number
- "null"
description: Total amount for this fund
warn_at_percentage:
type:
- number
- "null"
description: Warning at percentage
warn_at_amount:
type:
- number
- "null"
description: Warning at amount
notes:
type:
- string
- "null"
description: Notes related to this fund
budget_id:
type:
- number
- "null"
description: Internal identifier for the budget
timestamp:
type:
- string
format: date-time
description: Timestamp
fund_owner_id:
type:
- number
- "null"
description: Internal identifier for the fund owner
fund_access:
type:
- number
- "null"
description: "Level of permission for this fund (1: owner, 2: owner, users and library,
3: owner and users)"
parent_fund_id:
type:
- integer
- "null"
description: Internal identifier for parent fund
statistic1_auth_value_category:
type:
- string
- "null"
description: Statistical category for this fund
statistic2_auth_value_category:
type:
- string
- "null"
description: Second statistical category for this fund
additionalProperties: false
required:
- name

View File

@ -1,96 +0,0 @@
{
"type": "object",
"properties": {
"hold_id": {
"type": "integer",
"description": "Internal hold identifier"
},
"patron_id": {
"type": "integer",
"description": "Internal patron identifier"
},
"hold_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the hold was placed"
},
"biblio_id": {
"type": "integer",
"description": "Internal biblio identifier"
},
"pickup_library_id": {
"type": ["string", "null"],
"description": "Internal library identifier for the pickup library"
},
"desk_id": {
"type": ["integer", "null"],
"description": "The id of the desk"
},
"cancellation_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the hold was cancelled"
},
"cancellation_reason": {
"type": ["string", "null"],
"description": "The reason the hold was cancelled"
},
"notes": {
"type": ["string", "null"],
"description": "Notes related to this hold"
},
"priority": {
"type": ["integer", "null"],
"description": "Where in the queue the patron sits"
},
"status": {
"type": ["string", "null"],
"description": "A one letter code defining what the status of the hold is after it has been confirmed"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp for the latest hold update"
},
"item_id": {
"type": ["string", "null"],
"description": "Internal item identifier"
},
"waiting_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the item was marked as waiting for the patron at the library"
},
"expiration_date": {
"type": ["string", "null"],
"format": "date",
"description": "The date the hold expires"
},
"lowest_priority": {
"type": "boolean",
"description": "Controls if the hold is given the lowest priority on the queue"
},
"suspended": {
"type": "boolean",
"description": "Controls if the hold is suspended"
},
"suspended_until": {
"type": ["string", "null"],
"format": "date-time",
"description": "Date until which the hold has been suspended"
},
"non_priority": {
"description": "Set this hold as non priority",
"type": "boolean"
},
"item_type": {
"type": ["string", "null"],
"description": "If record level hold, the optional itemtype of the item the patron is requesting"
},
"item_level": {
"type": "boolean",
"description": "If the hold is placed at item level"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,101 @@
---
type: object
properties:
hold_id:
type: integer
description: Internal hold identifier
patron_id:
type: integer
description: Internal patron identifier
hold_date:
type:
- string
- "null"
format: date
description: The date the hold was placed
biblio_id:
type: integer
description: Internal biblio identifier
pickup_library_id:
type:
- string
- "null"
description: Internal library identifier for the pickup library
desk_id:
type:
- integer
- "null"
description: The id of the desk
cancellation_date:
type:
- string
- "null"
format: date
description: The date the hold was cancelled
cancellation_reason:
type:
- string
- "null"
description: The reason the hold was cancelled
notes:
type:
- string
- "null"
description: Notes related to this hold
priority:
type:
- integer
- "null"
description: Where in the queue the patron sits
status:
type:
- string
- "null"
description: A one letter code defining what the status of the hold is after it has
been confirmed
timestamp:
type: string
format: date-time
description: Timestamp for the latest hold update
item_id:
type:
- string
- "null"
description: Internal item identifier
waiting_date:
type:
- string
- "null"
format: date
description: The date the item was marked as waiting for the patron at the library
expiration_date:
type:
- string
- "null"
format: date
description: The date the hold expires
lowest_priority:
type: boolean
description: Controls if the hold is given the lowest priority on the queue
suspended:
type: boolean
description: Controls if the hold is suspended
suspended_until:
type:
- string
- "null"
format: date-time
description: Date until which the hold has been suspended
non_priority:
description: Set this hold as non priority
type: boolean
item_type:
type:
- string
- "null"
description: If record level hold, the optional itemtype of the item the patron is
requesting
item_level:
type: boolean
description: If the hold is placed at item level
additionalProperties: false

View File

@ -1,7 +0,0 @@
{
"type": "array",
"items": {
"$ref": "hold.json"
},
"additionalProperties": false
}

View File

@ -0,0 +1,5 @@
---
type: array
items:
$ref: hold.yaml
additionalProperties: false

View File

@ -1,14 +0,0 @@
{
"type": "object",
"properties": {
"ill_backend_id": {
"type": "string",
"description": "Internal ILL backend identifier"
},
"capabilities": {
"type": "object",
"description": "List of capabilities"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,10 @@
---
type: object
properties:
ill_backend_id:
type: string
description: Internal ILL backend identifier
capabilities:
type: object
description: List of capabilities
additionalProperties: false

View File

@ -1,7 +0,0 @@
{
"type": "array",
"items": {
"$ref": "ill_backend.json"
},
"additionalProperties": false
}

View File

@ -0,0 +1,5 @@
---
type: array
items:
$ref: ill_backend.yaml
additionalProperties: false

View File

@ -1,54 +0,0 @@
{
"type": "object",
"properties": {
"profile_id": {
"type": "integer",
"description": "Internal profile identifier"
},
"name": {
"description": "name of this profile",
"type": "string"
},
"matcher_id": {
"description": "the id of the match rule used (matchpoints.matcher_id)",
"type": ["integer", "null"]
},
"template_id": {
"description": "the id of the marc modification template",
"type": ["integer", "null"]
},
"overlay_action": {
"description": "how to handle duplicate records",
"type": ["string", "null"]
},
"nomatch_action": {
"description": "how to handle records where no match is found",
"type": ["string", "null"]
},
"item_action": {
"description": "what to do with item records",
"type": ["string", "null"]
},
"parse_items": {
"description": "should items be parsed",
"type": ["boolean", "null"]
},
"record_type": {
"description": "type of record in the batch",
"type": ["string", "null"]
},
"encoding": {
"description": "file encoding",
"type": ["string", "null"]
},
"format": {
"description": "marc format",
"type": ["string", "null"]
},
"comments": {
"description": "any comments added when the file was uploaded",
"type": ["string", "null"]
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,60 @@
---
type: object
properties:
profile_id:
type: integer
description: Internal profile identifier
name:
description: name of this profile
type: string
matcher_id:
description: the id of the match rule used (matchpoints.matcher_id)
type:
- integer
- "null"
template_id:
description: the id of the marc modification template
type:
- integer
- "null"
overlay_action:
description: how to handle duplicate records
type:
- string
- "null"
nomatch_action:
description: how to handle records where no match is found
type:
- string
- "null"
item_action:
description: what to do with item records
type:
- string
- "null"
parse_items:
description: should items be parsed
type:
- boolean
- "null"
record_type:
description: type of record in the batch
type:
- string
- "null"
encoding:
description: file encoding
type:
- string
- "null"
format:
description: marc format
type:
- string
- "null"
comments:
description: any comments added when the file was uploaded
type:
- string
- "null"
additionalProperties: false

View File

@ -1,7 +0,0 @@
{
"type": "array",
"items": {
"$ref": "import_batch_profile.json"
},
"additionalProperties": false
}

View File

@ -0,0 +1,5 @@
---
type: array
items:
$ref: import_batch_profile.yaml
additionalProperties: false

View File

@ -1,57 +0,0 @@
{
"type": "object",
"properties": {
"invoice_id": {
"type": "integer",
"description": "Internal identifier for the incoide. Generated on POST"
},
"invoice_number": {
"type": "string",
"description": "Invoice number assigned by the vendor"
},
"vendor_id": {
"type": "integer",
"description": "Internal identifier for the vendor"
},
"shipping_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Date of shipping"
},
"invoice_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Date of billing"
},
"closed": {
"type": "boolean",
"description": "If the invoice is closed"
},
"close_date": {
"type": "string",
"format": "date",
"description": "Invoice close date (only when the invoice is closed)"
},
"shipping_cost": {
"type": [
"integer",
"null"
],
"description": "Shipping cost"
},
"shipping_cost_budget_id": {
"type": [
"integer",
"null"
],
"description": "Shipping cost linking to budget"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,42 @@
---
type: object
properties:
invoice_id:
type: integer
description: Internal identifier for the incoide. Generated on POST
invoice_number:
type: string
description: Invoice number assigned by the vendor
vendor_id:
type: integer
description: Internal identifier for the vendor
shipping_date:
type:
- string
- "null"
format: date
description: Date of shipping
invoice_date:
type:
- string
- "null"
format: date
description: Date of billing
closed:
type: boolean
description: If the invoice is closed
close_date:
type: string
format: date
description: Invoice close date (only when the invoice is closed)
shipping_cost:
type:
- integer
- "null"
description: Shipping cost
shipping_cost_budget_id:
type:
- integer
- "null"
description: Shipping cost linking to budget
additionalProperties: false

View File

@ -1,106 +0,0 @@
{
"type": "object",
"properties": {
"library_id": {
"$ref": "../x-primitives.json#/library_id"
},
"name": {
"type": "string",
"description": "Printable name of library"
},
"address1": {
"type": ["string", "null"],
"description": "the first address line of the library"
},
"address2": {
"type": ["string", "null"],
"description": "the second address line of the library"
},
"address3": {
"type": ["string", "null"],
"description": "the third address line of the library"
},
"postal_code": {
"type": ["string", "null"],
"description": "the postal code of the library"
},
"city": {
"type": ["string", "null"],
"description": "the city or province of the library"
},
"state": {
"type": ["string", "null"],
"description": "the reqional state of the library"
},
"country": {
"type": ["string", "null"],
"description": "the county of the library"
},
"phone": {
"type": ["string", "null"],
"description": "the primary phone of the library"
},
"fax": {
"type": ["string", "null"],
"description": "the fax number of the library"
},
"email": {
"type": ["string", "null"],
"description": "the primary email address of the library"
},
"illemail": {
"type": ["string", "null"],
"description": "the ILL staff email address of the library"
},
"reply_to_email": {
"type": ["string", "null"],
"description": "the email to be used as a Reply-To"
},
"return_path_email": {
"type": ["string", "null"],
"description": "the email to be used as Return-Path"
},
"url": {
"type": ["string", "null"],
"description": "the URL for your library or branch's website"
},
"ip": {
"type": ["string", "null"],
"description": "the IP address for your library or branch"
},
"notes": {
"type": ["string", "null"],
"description": "notes related to your library or branch"
},
"opac_info": {
"type": ["string", "null"],
"description": "HTML that displays in OPAC"
},
"geolocation": {
"type": ["string", "null"],
"description": "geolocation of your library"
},
"marc_org_code": {
"type": [ "string", "null" ],
"description": "MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode"
},
"pickup_location": {
"type": "boolean",
"description": "If the library can act as a pickup location"
},
"public": {
"type": "boolean",
"description": "If the library is visible to the public"
},
"smtp_server": {
"type": ["object", "null"],
"description": "The library effective SMTP server"
},
"needs_override": {
"type": "boolean",
"description": "If the library needs an override to act as pickup location for a hold"
}
},
"additionalProperties": false,
"required": ["library_id", "name"]
}

View File

@ -0,0 +1,123 @@
---
type: object
properties:
library_id:
$ref: ../x-primitives.yaml#/library_id
name:
type: string
description: Printable name of library
address1:
type:
- string
- "null"
description: the first address line of the library
address2:
type:
- string
- "null"
description: the second address line of the library
address3:
type:
- string
- "null"
description: the third address line of the library
postal_code:
type:
- string
- "null"
description: the postal code of the library
city:
type:
- string
- "null"
description: the city or province of the library
state:
type:
- string
- "null"
description: the reqional state of the library
country:
type:
- string
- "null"
description: the county of the library
phone:
type:
- string
- "null"
description: the primary phone of the library
fax:
type:
- string
- "null"
description: the fax number of the library
email:
type:
- string
- "null"
description: the primary email address of the library
illemail:
type:
- string
- "null"
description: the ILL staff email address of the library
reply_to_email:
type:
- string
- "null"
description: the email to be used as a Reply-To
return_path_email:
type:
- string
- "null"
description: the email to be used as Return-Path
url:
type:
- string
- "null"
description: the URL for your library or branch's website
ip:
type:
- string
- "null"
description: the IP address for your library or branch
notes:
type:
- string
- "null"
description: notes related to your library or branch
opac_info:
type:
- string
- "null"
description: HTML that displays in OPAC
geolocation:
type:
- string
- "null"
description: geolocation of your library
marc_org_code:
type:
- string
- "null"
description: MARC Organization Code, see
http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults
to syspref MARCOrgCode
pickup_location:
type: boolean
description: If the library can act as a pickup location
public:
type: boolean
description: If the library is visible to the public
smtp_server:
type:
- object
- "null"
description: The library effective SMTP server
needs_override:
type: boolean
description: If the library needs an override to act as pickup location for a hold
additionalProperties: false
required:
- library_id
- name

View File

@ -1,335 +0,0 @@
{
"type": "object",
"properties": {
"order_id": {
"type": "integer",
"description": "Internally assigned order identifier"
},
"biblio_id": {
"type": [
"integer",
"null"
],
"description": "Identifier for the linked bibliographic record"
},
"created_by": {
"type": [
"integer",
"null"
],
"description": "Interal patron identifier of the order line creator"
},
"entry_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Date the bib was added to the basket"
},
"quantity": {
"type": [
"integer",
"null"
],
"description": "Ordered quantity"
},
"currency": {
"type": [
"string",
"null"
],
"description": "Currency used for the purchase"
},
"list_price": {
"type": [
"number",
"null"
],
"description": "Vendor price for the line item"
},
"replacement_price": {
"type": [
"number",
"null"
],
"description": "Replacement cost for this item"
},
"date_received": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Date the order was received"
},
"invoice_id": {
"type": [
"integer",
"null"
],
"description": "Id of the order invoice"
},
"shipping_cost": {
"type": [
"number",
"null"
],
"description": "Shipping cost"
},
"unit_price": {
"type": [
"number",
"null"
],
"description": "The actual cost entered when receiving this line item"
},
"unit_price_tax_excluded": {
"type": [
"number",
"null"
],
"description": "Unit price excluding tax (on receiving)"
},
"unit_price_tax_included": {
"type": [
"number",
"null"
],
"description": "Unit price including tax (on receiving)"
},
"quantity_received": {
"type": "integer",
"description": "Quantity received so far"
},
"cancellation_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Date the line item was deleted"
},
"cancellation_reason": {
"type": [
"string",
"null"
],
"description": "Reason of cancellation"
},
"internal_note": {
"type": [
"string",
"null"
],
"description": "Notes related to this order line, made for staff"
},
"vendor_note": {
"type": [
"string",
"null"
],
"description": "Notes related to this order line, made for vendor"
},
"basket_id": {
"type": [
"integer",
"null"
],
"description": "Basket this order is linked to"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Date and time this order line was last modified"
},
"rrp": {
"type": [
"number",
"null"
],
"description": "Retail cost for this item"
},
"rrp_tax_excluded": {
"type": [
"number",
"null"
],
"description": "Replacement cost for this item (tax excluded)"
},
"rrp_tax_included": {
"type": [
"number",
"null"
],
"description": "Replacement cost for this item (tax included)"
},
"ecost": {
"type": [
"number",
"null"
],
"description": "Effective cost"
},
"ecost_tax_excluded": {
"type": [
"number",
"null"
],
"description": "Effective cost (tax excluded)"
},
"ecost_tax_included": {
"type": [
"number",
"null"
],
"description": "Effective cost (tax included)"
},
"tax_rate_on_ordering": {
"type": [
"number",
"null"
],
"description": "Tax rate on ordering (%)"
},
"tax_rate_on_receiving": {
"type": [
"number",
"null"
],
"description": "Tax rate on receiving (%)"
},
"tax_value_on_ordering": {
"type": [
"number",
"null"
],
"description": "Tax value on ordering"
},
"tax_value_on_receiving": {
"type": [
"number",
"null"
],
"description": "Tax value on receiving"
},
"discount_rate": {
"type": [
"number",
"null"
],
"description": "Discount rate"
},
"fund_id": {
"type": "integer",
"description": "Internal identifier for the fund this order goes against"
},
"statistics_1": {
"type": [
"string",
"null"
],
"description": "Statistical field"
},
"statistics_2": {
"type": [
"string",
"null"
],
"description": "Statistical field (2)"
},
"statistics_1_authcat": {
"type": [
"string",
"null"
],
"description": "Statistical category for this order"
},
"statistics_2_authcat": {
"type": [
"string",
"null"
],
"description": "Statistical category for this order (2)"
},
"uncertain_price": {
"type": "boolean",
"description": "If this price was uncertain"
},
"claims_count": {
"type": "integer",
"description": "Generated claim letters count"
},
"last_claim_date": {
"type": [
"string",
"null"
],
"format": "date",
"description": "Last date a claim letter was generated"
},
"subscription_id": {
"type": [
"integer",
"null"
],
"description": "Subscription ID linking the order to a subscription"
},
"parent_order_id": {
"type": [
"integer",
"null"
],
"description": "Order ID of parent order line if exists"
},
"status": {
"type": "string",
"enum": [
"new",
"ordered",
"partial",
"complete",
"cancelled"
],
"description": "The current order status"
},
"basket": {
"type": [
"object",
"null"
]
},
"biblio": {
"type": [
"object",
"null"
]
},
"current_item_level_holds_count": {
"type": "integer",
"description": "Current holds count for associated items"
},
"fund": {
"type": [
"object",
"null"
]
},
"invoice": {
"type": [
"object",
"null"
]
},
"items": {
"type": "array"
},
"subscription": {
"type": [
"object",
"null"
]
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,241 @@
---
type: object
properties:
order_id:
type: integer
description: Internally assigned order identifier
biblio_id:
type:
- integer
- "null"
description: Identifier for the linked bibliographic record
created_by:
type:
- integer
- "null"
description: Interal patron identifier of the order line creator
entry_date:
type:
- string
- "null"
format: date
description: Date the bib was added to the basket
quantity:
type:
- integer
- "null"
description: Ordered quantity
currency:
type:
- string
- "null"
description: Currency used for the purchase
list_price:
type:
- number
- "null"
description: Vendor price for the line item
replacement_price:
type:
- number
- "null"
description: Replacement cost for this item
date_received:
type:
- string
- "null"
format: date
description: Date the order was received
invoice_id:
type:
- integer
- "null"
description: Id of the order invoice
shipping_cost:
type:
- number
- "null"
description: Shipping cost
unit_price:
type:
- number
- "null"
description: The actual cost entered when receiving this line item
unit_price_tax_excluded:
type:
- number
- "null"
description: Unit price excluding tax (on receiving)
unit_price_tax_included:
type:
- number
- "null"
description: Unit price including tax (on receiving)
quantity_received:
type: integer
description: Quantity received so far
cancellation_date:
type:
- string
- "null"
format: date
description: Date the line item was deleted
cancellation_reason:
type:
- string
- "null"
description: Reason of cancellation
internal_note:
type:
- string
- "null"
description: Notes related to this order line, made for staff
vendor_note:
type:
- string
- "null"
description: Notes related to this order line, made for vendor
basket_id:
type:
- integer
- "null"
description: Basket this order is linked to
timestamp:
type: string
format: date-time
description: Date and time this order line was last modified
rrp:
type:
- number
- "null"
description: Retail cost for this item
rrp_tax_excluded:
type:
- number
- "null"
description: Replacement cost for this item (tax excluded)
rrp_tax_included:
type:
- number
- "null"
description: Replacement cost for this item (tax included)
ecost:
type:
- number
- "null"
description: Effective cost
ecost_tax_excluded:
type:
- number
- "null"
description: Effective cost (tax excluded)
ecost_tax_included:
type:
- number
- "null"
description: Effective cost (tax included)
tax_rate_on_ordering:
type:
- number
- "null"
description: Tax rate on ordering (%)
tax_rate_on_receiving:
type:
- number
- "null"
description: Tax rate on receiving (%)
tax_value_on_ordering:
type:
- number
- "null"
description: Tax value on ordering
tax_value_on_receiving:
type:
- number
- "null"
description: Tax value on receiving
discount_rate:
type:
- number
- "null"
description: Discount rate
fund_id:
type: integer
description: Internal identifier for the fund this order goes against
statistics_1:
type:
- string
- "null"
description: Statistical field
statistics_2:
type:
- string
- "null"
description: Statistical field (2)
statistics_1_authcat:
type:
- string
- "null"
description: Statistical category for this order
statistics_2_authcat:
type:
- string
- "null"
description: Statistical category for this order (2)
uncertain_price:
type: boolean
description: If this price was uncertain
claims_count:
type: integer
description: Generated claim letters count
last_claim_date:
type:
- string
- "null"
format: date
description: Last date a claim letter was generated
subscription_id:
type:
- integer
- "null"
description: Subscription ID linking the order to a subscription
parent_order_id:
type:
- integer
- "null"
description: Order ID of parent order line if exists
status:
type: string
enum:
- new
- ordered
- partial
- complete
- cancelled
description: The current order status
basket:
type:
- object
- "null"
biblio:
type:
- object
- "null"
current_item_level_holds_count:
type: integer
description: Current holds count for associated items
fund:
type:
- object
- "null"
invoice:
type:
- object
- "null"
items:
type: array
subscription:
type:
- object
- "null"
additionalProperties: false

View File

@ -1,296 +0,0 @@
{
"type": "object",
"properties": {
"patron_id": {
"$ref": "../x-primitives.json#/patron_id"
},
"cardnumber": {
"$ref": "../x-primitives.json#/cardnumber"
},
"surname": {
"$ref": "../x-primitives.json#/surname"
},
"firstname": {
"$ref": "../x-primitives.json#/firstname"
},
"title": {
"type": ["string", "null"],
"description": "patron's title"
},
"other_name": {
"type": ["string", "null"],
"description": "any other names associated with the patron"
},
"initials": {
"type": ["string", "null"],
"description": "initials of the patron"
},
"street_number": {
"type": ["string", "null"],
"description": "street number of patron's primary address"
},
"street_type": {
"type": ["string", "null"],
"description": "street type of patron's primary address"
},
"address": {
"type": ["string", "null"],
"description": "first address line of patron's primary address"
},
"address2": {
"type": ["string", "null"],
"description": "second address line of patron's primary address"
},
"city": {
"type": ["string", "null"],
"description": "city or town of patron's primary address"
},
"state": {
"type": ["string", "null"],
"description": "state or province of patron's primary address"
},
"postal_code": {
"type": ["string", "null"],
"description": "zip or postal code of patron's primary address"
},
"country": {
"type": ["string", "null"],
"description": "country of patron's primary address"
},
"email": {
"$ref": "../x-primitives.json#/email"
},
"phone": {
"$ref": "../x-primitives.json#/phone"
},
"mobile": {
"type": ["string", "null"],
"description": "the other phone number for patron's primary address"
},
"fax": {
"type": ["string", "null"],
"description": "fax number for patron's primary address"
},
"secondary_email": {
"type": ["string", "null"],
"description": "secondary email address for patron's primary address"
},
"secondary_phone": {
"type": ["string", "null"],
"description": "secondary phone number for patron's primary address"
},
"altaddress_street_number": {
"type": ["string", "null"],
"description": "street number of patron's alternate address"
},
"altaddress_street_type": {
"type": ["string", "null"],
"description": "street type of patron's alternate address"
},
"altaddress_address": {
"type": ["string", "null"],
"description": "first address line of patron's alternate address"
},
"altaddress_address2": {
"type": ["string", "null"],
"description": "second address line of patron's alternate address"
},
"altaddress_city": {
"type": ["string", "null"],
"description": "city or town of patron's alternate address"
},
"altaddress_state": {
"type": ["string", "null"],
"description": "state or province of patron's alternate address"
},
"altaddress_postal_code": {
"type": ["string", "null"],
"description": "zip or postal code of patron's alternate address"
},
"altaddress_country": {
"type": ["string", "null"],
"description": "country of patron's alternate address"
},
"altaddress_email": {
"type": ["string", "null"],
"description": "email address for patron's alternate address"
},
"altaddress_phone": {
"type": ["string", "null"],
"description": "phone number for patron's alternate address"
},
"date_of_birth": {
"type": ["string", "null"],
"format": "date",
"description": "patron's date of birth"
},
"library_id": {
"type": "string",
"description": "Internal identifier for the patron's home library"
},
"category_id": {
"type": "string",
"description": "Internal identifier for the patron's category"
},
"date_enrolled": {
"type": ["string", "null"],
"format": "date",
"description": "date the patron was added to Koha"
},
"expiry_date": {
"type": ["string", "null"],
"format": "date",
"description": "date the patron's card is set to expire"
},
"date_renewed": {
"type": ["string", "null"],
"format": "date",
"description": "date the patron's card was last renewed"
},
"incorrect_address": {
"type": ["boolean", "null"],
"description": "set to 1 if library marked this patron as having an unconfirmed address"
},
"patron_card_lost": {
"type": ["boolean", "null"],
"description": "set to 1 if library marked this patron as having lost his card"
},
"restricted": {
"type": "boolean",
"readOnly": true,
"description": "If any restriction applies to the patron"
},
"staff_notes": {
"type": ["string", "null"],
"description": "a note on the patron's account"
},
"relationship_type": {
"type": ["string", "null"],
"description": "used for children to include the relationship to their guarantor"
},
"gender": {
"type": ["string", "null"],
"description": "patron's gender"
},
"userid": {
"type": ["string", "null"],
"description": "patron's login"
},
"opac_notes": {
"type": ["string", "null"],
"description": "a note on the patron's account visible in OPAC and staff interface"
},
"altaddress_notes": {
"type": ["string", "null"],
"description": "a note related to patron's alternate address"
},
"statistics_1": {
"type": ["string", "null"],
"description": "a field that can be used for any information unique to the library"
},
"statistics_2": {
"type": ["string", "null"],
"description": "a field that can be used for any information unique to the library"
},
"autorenew_checkouts": {
"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"
},
"altcontact_surname": {
"type": ["string", "null"],
"description": "surname or last name of the alternate contact for the patron"
},
"altcontact_address": {
"type": ["string", "null"],
"description": "the first address line for the alternate contact for the patron"
},
"altcontact_address2": {
"type": ["string", "null"],
"description": "the second address line for the alternate contact for the patron"
},
"altcontact_city": {
"type": ["string", "null"],
"description": "the city for the alternate contact for the patron"
},
"altcontact_state": {
"type": ["string", "null"],
"description": "the state for the alternate contact for the patron"
},
"altcontact_postal_code": {
"type": ["string", "null"],
"description": "the zipcode for the alternate contact for the patron"
},
"altcontact_country": {
"type": ["string", "null"],
"description": "the country for the alternate contact for the patron"
},
"altcontact_phone": {
"type": ["string", "null"],
"description": "the phone number for the alternate contact for the patron"
},
"sms_number": {
"type": ["string", "null"],
"description": "the mobile phone number where the patron would like to receive notices (if SMS turned on)"
},
"sms_provider_id": {
"type": ["integer", "null"],
"description": "the provider of the mobile phone number defined in smsalertnumber"
},
"privacy": {
"type": "integer",
"description": "patron's privacy settings related to their checkout history"
},
"privacy_guarantor_checkouts": {
"type": "integer",
"description": "controls if relatives can see this patron's checkouts"
},
"privacy_guarantor_fines": {
"type": "boolean",
"description": "controls if relatives can see this patron's fines"
},
"check_previous_checkout": {
"type": "string",
"description": "produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'"
},
"updated_on": {
"type": "string",
"format": "date-time",
"description": "time of last change could be useful for synchronization with external systems (among others)"
},
"last_seen": {
"type": ["string", "null"],
"format": "date-time",
"description": "last time a patron has been seen (connected at the OPAC or staff interface)"
},
"lang": {
"type": "string",
"description": "lang to use to send notices to this patron"
},
"login_attempts": {
"type": ["integer", "null"],
"description": "number of failed login attemps"
},
"overdrive_auth_token": {
"type": ["string", "null"],
"description": "persist OverDrive auth token"
},
"anonymized": {
"type": "boolean",
"readOnly": true,
"description": "If the patron has been anonymized"
},
"extended_attributes": {
"type": "array",
"description": "patron's extended attributes",
"items": {
"$ref": "patron_extended_attribute.json"
}
}
},
"additionalProperties": false,
"required": ["surname", "address", "city", "library_id", "category_id"]
}

View File

@ -0,0 +1,337 @@
---
type: object
properties:
patron_id:
$ref: ../x-primitives.yaml#/patron_id
cardnumber:
$ref: ../x-primitives.yaml#/cardnumber
surname:
$ref: ../x-primitives.yaml#/surname
firstname:
$ref: ../x-primitives.yaml#/firstname
title:
type:
- string
- "null"
description: patron's title
other_name:
type:
- string
- "null"
description: any other names associated with the patron
initials:
type:
- string
- "null"
description: initials of the patron
street_number:
type:
- string
- "null"
description: street number of patron's primary address
street_type:
type:
- string
- "null"
description: street type of patron's primary address
address:
type:
- string
- "null"
description: first address line of patron's primary address
address2:
type:
- string
- "null"
description: second address line of patron's primary address
city:
type:
- string
- "null"
description: city or town of patron's primary address
state:
type:
- string
- "null"
description: state or province of patron's primary address
postal_code:
type:
- string
- "null"
description: zip or postal code of patron's primary address
country:
type:
- string
- "null"
description: country of patron's primary address
email:
$ref: ../x-primitives.yaml#/email
phone:
$ref: ../x-primitives.yaml#/phone
mobile:
type:
- string
- "null"
description: the other phone number for patron's primary address
fax:
type:
- string
- "null"
description: fax number for patron's primary address
secondary_email:
type:
- string
- "null"
description: secondary email address for patron's primary address
secondary_phone:
type:
- string
- "null"
description: secondary phone number for patron's primary address
altaddress_street_number:
type:
- string
- "null"
description: street number of patron's alternate address
altaddress_street_type:
type:
- string
- "null"
description: street type of patron's alternate address
altaddress_address:
type:
- string
- "null"
description: first address line of patron's alternate address
altaddress_address2:
type:
- string
- "null"
description: second address line of patron's alternate address
altaddress_city:
type:
- string
- "null"
description: city or town of patron's alternate address
altaddress_state:
type:
- string
- "null"
description: state or province of patron's alternate address
altaddress_postal_code:
type:
- string
- "null"
description: zip or postal code of patron's alternate address
altaddress_country:
type:
- string
- "null"
description: country of patron's alternate address
altaddress_email:
type:
- string
- "null"
description: email address for patron's alternate address
altaddress_phone:
type:
- string
- "null"
description: phone number for patron's alternate address
date_of_birth:
type:
- string
- "null"
format: date
description: patron's date of birth
library_id:
type: string
description: Internal identifier for the patron's home library
category_id:
type: string
description: Internal identifier for the patron's category
date_enrolled:
type:
- string
- "null"
format: date
description: date the patron was added to Koha
expiry_date:
type:
- string
- "null"
format: date
description: date the patron's card is set to expire
date_renewed:
type:
- string
- "null"
format: date
description: date the patron's card was last renewed
incorrect_address:
type:
- boolean
- "null"
description: set to 1 if library marked this patron as having an unconfirmed address
patron_card_lost:
type:
- boolean
- "null"
description: set to 1 if library marked this patron as having lost his card
restricted:
type: boolean
readOnly: true
description: If any restriction applies to the patron
staff_notes:
type:
- string
- "null"
description: a note on the patron's account
relationship_type:
type:
- string
- "null"
description: used for children to include the relationship to their guarantor
gender:
type:
- string
- "null"
description: patron's gender
userid:
type:
- string
- "null"
description: patron's login
opac_notes:
type:
- string
- "null"
description: a note on the patron's account visible in OPAC and staff interface
altaddress_notes:
type:
- string
- "null"
description: a note related to patron's alternate address
statistics_1:
type:
- string
- "null"
description: a field that can be used for any information unique to the library
statistics_2:
type:
- string
- "null"
description: a field that can be used for any information unique to the library
autorenew_checkouts:
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
altcontact_surname:
type:
- string
- "null"
description: surname or last name of the alternate contact for the patron
altcontact_address:
type:
- string
- "null"
description: the first address line for the alternate contact for the patron
altcontact_address2:
type:
- string
- "null"
description: the second address line for the alternate contact for the patron
altcontact_city:
type:
- string
- "null"
description: the city for the alternate contact for the patron
altcontact_state:
type:
- string
- "null"
description: the state for the alternate contact for the patron
altcontact_postal_code:
type:
- string
- "null"
description: the zipcode for the alternate contact for the patron
altcontact_country:
type:
- string
- "null"
description: the country for the alternate contact for the patron
altcontact_phone:
type:
- string
- "null"
description: the phone number for the alternate contact for the patron
sms_number:
type:
- string
- "null"
description: the mobile phone number where the patron would like to receive notices (if
SMS turned on)
sms_provider_id:
type:
- integer
- "null"
description: the provider of the mobile phone number defined in smsalertnumber
privacy:
type: integer
description: patron's privacy settings related to their checkout history
privacy_guarantor_checkouts:
type: integer
description: controls if relatives can see this patron's checkouts
privacy_guarantor_fines:
type: boolean
description: controls if relatives can see this patron's fines
check_previous_checkout:
type: string
description: produce a warning for this patron if this item has previously been checked
out to this patron if 'yes', not if 'no', defer to category setting if
'inherit'
updated_on:
type: string
format: date-time
description: time of last change could be useful for synchronization with external
systems (among others)
last_seen:
type:
- string
- "null"
format: date-time
description: last time a patron has been seen (connected at the OPAC or staff interface)
lang:
type: string
description: lang to use to send notices to this patron
login_attempts:
type:
- integer
- "null"
description: number of failed login attemps
overdrive_auth_token:
type:
- string
- "null"
description: persist OverDrive auth token
anonymized:
type: boolean
readOnly: true
description: If the patron has been anonymized
extended_attributes:
type: array
description: patron's extended attributes
items:
$ref: patron_extended_attribute.yaml
additionalProperties: false
required:
- surname
- address
- city
- library_id
- category_id

View File

@ -1,44 +0,0 @@
{
"type": "object",
"properties": {
"credit_type": {
"type": "string",
"description": "Type of credit ('CREDIT', 'FORGIVEN', 'LOST_FOUND', 'PAYMENT', 'WRITEOFF' )"
},
"amount": {
"type": "number",
"minimum": 0,
"description": "Credit amount"
},
"library_id": {
"type": [ "string", "null" ],
"description": "Internal identifier for the library in which the transaction took place"
},
"account_lines_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "List of account line ids the credit goes against (optional)"
},
"payment_type": {
"type": "string",
"description": "Payment type (only applies when credit_type=payment)"
},
"date": {
"type": "string",
"format": "date",
"description": "Date the credit was recorded (optional)"
},
"description": {
"type": "string",
"description": "Description"
},
"note": {
"type": "string",
"description": "Internal note"
}
},
"required": [ "amount" ],
"additionalProperties": false
}

View File

@ -0,0 +1,36 @@
---
type: object
properties:
credit_type:
type: string
description: Type of credit ('CREDIT', 'FORGIVEN', 'LOST_FOUND', 'PAYMENT', 'WRITEOFF' )
amount:
type: number
minimum: 0
description: Credit amount
library_id:
type:
- string
- "null"
description: Internal identifier for the library in which the transaction took place
account_lines_ids:
type: array
items:
type: integer
description: List of account line ids the credit goes against (optional)
payment_type:
type: string
description: Payment type (only applies when credit_type=payment)
date:
type: string
format: date
description: Date the credit was recorded (optional)
description:
type: string
description: Description
note:
type: string
description: Internal note
required:
- amount
additionalProperties: false

View File

@ -1,40 +0,0 @@
{
"type": "object",
"properties": {
"balance": {
"type": "number",
"description": "Signed decimal number"
},
"outstanding_credits": {
"properties": {
"total": {
"type": "number"
},
"lines": {
"type": "array",
"items": {
"$ref": "account_line.json"
}
}
}
},
"outstanding_debits": {
"type": "object",
"properties": {
"total": {
"type": "number"
},
"lines": {
"type": "array",
"items": {
"$ref": "account_line.json"
}
}
}
}
},
"additionalProperties": false,
"required": [
"balance"
]
}

View File

@ -0,0 +1,26 @@
---
type: object
properties:
balance:
type: number
description: Signed decimal number
outstanding_credits:
properties:
total:
type: number
lines:
type: array
items:
$ref: account_line.yaml
outstanding_debits:
type: object
properties:
total:
type: number
lines:
type: array
items:
$ref: account_line.yaml
additionalProperties: false
required:
- balance

View File

@ -1,24 +0,0 @@
{
"type": "object",
"properties": {
"extended_attribute_id": {
"description": "Internal ID for the extended attribute",
"type": "integer"
},
"type": {
"description": "Extended attribute type",
"type": "string"
},
"value": {
"description": "Extended attribute value",
"type": [
"string"
]
}
},
"additionalProperties": false,
"required": [
"type",
"value"
]
}

View File

@ -0,0 +1,17 @@
---
type: object
properties:
extended_attribute_id:
description: Internal ID for the extended attribute
type: integer
type:
description: Extended attribute type
type: string
value:
description: Extended attribute value
type:
- string
additionalProperties: false
required:
- type
- value

View File

@ -1,22 +0,0 @@
{
"type": "object",
"properties": {
"quote_id": {
"$ref": "../x-primitives.json#/quote_id"
},
"source": {
"description": "source of the quote",
"type": "string"
},
"text": {
"description": "text",
"type": ["string", "null"]
},
"displayed_on": {
"description": "Last display date",
"type": ["string", "null"]
}
},
"additionalProperties": false,
"required": ["quote_id", "source", "text"]
}

View File

@ -0,0 +1,23 @@
---
type: object
properties:
quote_id:
$ref: ../x-primitives.yaml#/quote_id
source:
description: source of the quote
type: string
text:
description: text
type:
- string
- "null"
displayed_on:
description: Last display date
type:
- string
- "null"
additionalProperties: false
required:
- quote_id
- source
- text

View File

@ -1,94 +0,0 @@
{
"type": "object",
"properties": {
"claim_id": {
"type": [
"integer"
],
"description": "internally assigned return claim identifier"
},
"item_id": {
"type": [
"integer"
],
"description": "internal identifier of the claimed item"
},
"issue_id": {
"type": [
"integer",
"null"
],
"description": "internal identifier of the claimed checkout if still checked out"
},
"old_issue_id": {
"type": [
"integer",
"null"
],
"description": "internal identifier of the claimed checkout if not longer checked out"
},
"patron_id": {
"$ref": "../x-primitives.json#/patron_id"
},
"notes": {
"type": [
"string",
"null"
],
"description": "notes about this claim"
},
"created_on": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "date of claim creation"
},
"created_by": {
"type": [
"integer",
"null"
],
"description": "patron id of librarian who made the claim"
},
"updated_on": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "date the claim was last updated"
},
"updated_by": {
"type": [
"integer",
"null"
],
"description": "patron id of librarian who last updated the claim"
},
"resolution": {
"type": [
"string",
"null"
],
"description": "code of resolution type for this claim"
},
"resolved_on": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "date the claim was resolved"
},
"resolved_by": {
"type": [
"integer",
"null"
],
"description": "patron id of librarian who resolved this claim"
}
},
"additionalProperties": false
}

View File

@ -0,0 +1,67 @@
---
type: object
properties:
claim_id:
type:
- integer
description: internally assigned return claim identifier
item_id:
type:
- integer
description: internal identifier of the claimed item
issue_id:
type:
- integer
- "null"
description: internal identifier of the claimed checkout if still checked out
old_issue_id:
type:
- integer
- "null"
description: internal identifier of the claimed checkout if not longer checked out
patron_id:
$ref: ../x-primitives.yaml#/patron_id
notes:
type:
- string
- "null"
description: notes about this claim
created_on:
type:
- string
- "null"
format: date-time
description: date of claim creation
created_by:
type:
- integer
- "null"
description: patron id of librarian who made the claim
updated_on:
type:
- string
- "null"
format: date-time
description: date the claim was last updated
updated_by:
type:
- integer
- "null"
description: patron id of librarian who last updated the claim
resolution:
type:
- string
- "null"
description: code of resolution type for this claim
resolved_on:
type:
- string
- "null"
format: date-time
description: date the claim was resolved
resolved_by:
type:
- integer
- "null"
description: patron id of librarian who resolved this claim
additionalProperties: false

View File

@ -1,57 +0,0 @@
{
"type": "object",
"properties": {
"smtp_server_id": {
"type": "integer",
"description": "Internal SMTP server identifier",
"readOnly": true
},
"name": {
"type": "string",
"description": "Name of the SMTP server"
},
"host": {
"type": "string",
"description": "SMTP host name"
},
"port": {
"type": "integer",
"description": "TCP port number"
},
"timeout": {
"type": "integer",
"description": "Maximum time in seconds to wait for server"
},
"ssl_mode": {
"type": "string",
"enum": [
"disabled",
"ssl",
"starttls"
],
"description": "If SSL/TLS will be used"
},
"user_name": {
"type": [
"string",
"null"
],
"description": "The user name to use for authentication (optional)"
},
"password": {
"type": [
"string",
"null"
],
"description": "The password to use for authentication (optional)"
},
"debug": {
"type": "boolean",
"description": "If the SMTP connection is set to debug mode"
}
},
"additionalProperties": false,
"required": [
"name"
]
}

View File

@ -0,0 +1,42 @@
---
type: object
properties:
smtp_server_id:
type: integer
description: Internal SMTP server identifier
readOnly: true
name:
type: string
description: Name of the SMTP server
host:
type: string
description: SMTP host name
port:
type: integer
description: TCP port number
timeout:
type: integer
description: Maximum time in seconds to wait for server
ssl_mode:
type: string
enum:
- disabled
- ssl
- starttls
description: If SSL/TLS will be used
user_name:
type:
- string
- "null"
description: The user name to use for authentication (optional)
password:
type:
- string
- "null"
description: The password to use for authentication (optional)
debug:
type: boolean
description: If the SMTP connection is set to debug mode
additionalProperties: false
required:
- name

View File

@ -1,27 +0,0 @@
{
"type": "object",
"properties": {
"limit_id": {
"type": "integer",
"description": "Internal transfer limit identifier"
},
"to_library_id": {
"type": "string",
"description": "Internal library id for which library the item is going to"
},
"from_library_id": {
"type": "string",
"description": "Internal library id for which library the item is coming from"
},
"item_type": {
"type": ["string", "null"],
"description": "Itemtype defining the type for this limi"
},
"collection_code": {
"type": ["string", "null"],
"description": "Authorized value for the collection code associated with this limit"
}
},
"additionalProperties": false,
"required": ["to_library_id", "from_library_id"]
}

View File

@ -0,0 +1,26 @@
---
type: object
properties:
limit_id:
type: integer
description: Internal transfer limit identifier
to_library_id:
type: string
description: Internal library id for which library the item is going to
from_library_id:
type: string
description: Internal library id for which library the item is coming from
item_type:
type:
- string
- "null"
description: Itemtype defining the type for this limi
collection_code:
type:
- string
- "null"
description: Authorized value for the collection code associated with this limit
additionalProperties: false
required:
- to_library_id
- from_library_id

View File

@ -1,149 +0,0 @@
{
"type": "object",
"properties": {
"id": {
"$ref": "../x-primitives.json#/vendor_id"
},
"name": {
"type": [
"string"
],
"description": "Vendor name"
},
"address1": {
"type": [
"string",
"null"
],
"description": "Vendor physical address (line 1)"
},
"address2": {
"type": [
"string",
"null"
],
"description": "Vendor physical address (line 2)"
},
"address3": {
"type": [
"string",
"null"
],
"description": "Vendor physical address (line 3)"
},
"address4": {
"type": [
"string",
"null"
],
"description": "Vendor physical address (line 4)"
},
"phone": {
"type": [
"string",
"null"
],
"description": "Vendor phone number"
},
"fax": {
"type": [
"string",
"null"
],
"description": "Vendor fax number"
},
"accountnumber": {
"type": [
"string",
"null"
],
"description": "Vendor account number"
},
"notes": {
"type": [
"string",
"null"
],
"description": "Vendor notes"
},
"postal": {
"type": [
"string",
"null"
],
"description": "Vendor postal address"
},
"url": {
"type": [
"string",
"null"
],
"description": "Vendor web address"
},
"active": {
"type": [
"boolean",
"null"
],
"description": "Is this vendor active"
},
"list_currency": {
"type": [
"string",
"null"
],
"description": "List prices currency"
},
"invoice_currency": {
"type": [
"string",
"null"
],
"description": "Invoice prices currency"
},
"gst": {
"type": [
"boolean",
"null"
],
"description": "Is the library taxed when buying from this vendor"
},
"list_includes_gst": {
"type": [
"boolean",
"null"
],
"description": "List prices include taxes"
},
"invoice_includes_gst": {
"type": [
"boolean",
"null"
],
"description": "Invoice prices include taxes"
},
"tax_rate": {
"type": [
"number",
"null"
],
"description": "Default tax rate for items ordered from this vendor"
},
"discount": {
"type": [
"number",
"null"
],
"description": "Default discount rate for items ordered from this vendor"
},
"deliverytime": {
"type": [
"integer",
"null"
],
"description": "Expected delivery time (in days)"
}
},
"additionalProperties": false,
"required": ["name"]
}

View File

@ -0,0 +1,107 @@
---
type: object
properties:
id:
$ref: ../x-primitives.yaml#/vendor_id
name:
type:
- string
description: Vendor name
address1:
type:
- string
- "null"
description: Vendor physical address (line 1)
address2:
type:
- string
- "null"
description: Vendor physical address (line 2)
address3:
type:
- string
- "null"
description: Vendor physical address (line 3)
address4:
type:
- string
- "null"
description: Vendor physical address (line 4)
phone:
type:
- string
- "null"
description: Vendor phone number
fax:
type:
- string
- "null"
description: Vendor fax number
accountnumber:
type:
- string
- "null"
description: Vendor account number
notes:
type:
- string
- "null"
description: Vendor notes
postal:
type:
- string
- "null"
description: Vendor postal address
url:
type:
- string
- "null"
description: Vendor web address
active:
type:
- boolean
- "null"
description: Is this vendor active
list_currency:
type:
- string
- "null"
description: List prices currency
invoice_currency:
type:
- string
- "null"
description: Invoice prices currency
gst:
type:
- boolean
- "null"
description: Is the library taxed when buying from this vendor
list_includes_gst:
type:
- boolean
- "null"
description: List prices include taxes
invoice_includes_gst:
type:
- boolean
- "null"
description: Invoice prices include taxes
tax_rate:
type:
- number
- "null"
description: Default tax rate for items ordered from this vendor
discount:
type:
- number
- "null"
description: Default discount rate for items ordered from this vendor
deliverytime:
type:
- integer
- "null"
description: Expected delivery time (in days)
additionalProperties: false
required:
- name

View File

@ -1,126 +0,0 @@
{
"biblio_id_pp": {
"$ref": "parameters/biblio.json#/biblio_id_pp"
},
"advancededitormacro_id_pp": {
"$ref": "parameters/advancededitormacro.json#/advancededitormacro_id_pp"
},
"patron_id_pp": {
"$ref": "parameters/patron.json#/patron_id_pp"
},
"transfer_limit_id_pp": {
"$ref": "parameters/transfer_limit.json#/transfer_limit_id_pp"
},
"patron_id_qp": {
"$ref": "parameters/patron.json#/patron_id_qp"
},
"import_batch_profile_id_pp": {
"$ref": "parameters/import_batch_profile.json#/import_batch_profile_id_pp"
},
"city_id_pp": {
"$ref": "parameters/city.json#/city_id_pp"
},
"hold_id_pp": {
"$ref": "parameters/hold.json#/hold_id_pp"
},
"club_id_pp": {
"$ref": "parameters/club.json#/club_id_pp"
},
"library_id_pp": {
"$ref": "parameters/library.json#/library_id_pp"
},
"item_id_pp": {
"$ref": "parameters/item.json#/item_id_pp"
},
"order_id_pp": {
"$ref": "parameters/order.json#/order_id_pp"
},
"quote_id_pp": {
"$ref": "parameters/quote.json#/quote_id_pp"
},
"smtp_server_id_pp": {
"$ref": "parameters/smtp_server.json#/smtp_server_id_pp"
},
"vendoridPathParam": {
"$ref": "parameters/vendor.json#/vendoridPathParam"
},
"checkout_id_pp": {
"$ref": "parameters/checkout.json#/checkout_id_pp"
},
"seen_pp": {
"$ref": "parameters/checkout.json#/seen_pp"
},
"cash_register_id_pp": {
"$ref": "parameters/cash_register.json#/cash_register_id_pp"
},
"cashup_id_pp": {
"$ref": "parameters/cashup.json#/cashup_id_pp"
},
"match": {
"name": "_match",
"in": "query",
"required": false,
"description": "Matching criteria",
"type": "string",
"enum": [
"contains",
"exact",
"starts_with",
"ends_with"
]
},
"order_by": {
"name": "_order_by",
"in": "query",
"required": false,
"description": "Sorting criteria",
"type": "array",
"collectionFormat": "csv",
"items": {
"type": "string"
}
},
"page": {
"name": "_page",
"in": "query",
"required": false,
"description": "Page number, for paginated object listing",
"type": "integer"
},
"per_page": {
"name": "_per_page",
"in": "query",
"required": false,
"description": "Page size, for paginated object listing",
"type": "integer"
},
"q_body": {
"name": "query",
"in": "body",
"required": false,
"description": "Query filter sent through request's body",
"schema": {
"type": ["object", "array"]
}
},
"q_param": {
"name": "q",
"in": "query",
"required": false,
"description": "Query filter sent as a request parameter",
"type": "string"
},
"q_header": {
"name": "x-koha-query",
"in": "header",
"required": false,
"description": "Query filter sent as a request header",
"type": "string"
},
"fundidPathParam": {
"$ref": "parameters/fund.json#/fundidPathParam"
},
"suggestion_id_pp": {
"$ref": "parameters/suggestion.json#/suggestion_id_pp"
}
}

View File

@ -0,0 +1,96 @@
---
advancededitormacro_id_pp:
$ref: parameters/advancededitormacro.yaml#/advancededitormacro_id_pp
biblio_id_pp:
$ref: parameters/biblio.yaml#/biblio_id_pp
cash_register_id_pp:
$ref: parameters/cash_register.yaml#/cash_register_id_pp
cashup_id_pp:
$ref: parameters/cashup.yaml#/cashup_id_pp
checkout_id_pp:
$ref: parameters/checkout.yaml#/checkout_id_pp
city_id_pp:
$ref: parameters/city.yaml#/city_id_pp
club_id_pp:
$ref: parameters/club.yaml#/club_id_pp
fundidPathParam:
$ref: parameters/fund.yaml#/fundidPathParam
hold_id_pp:
$ref: parameters/hold.yaml#/hold_id_pp
import_batch_profile_id_pp:
$ref: parameters/import_batch_profile.yaml#/import_batch_profile_id_pp
item_id_pp:
$ref: parameters/item.yaml#/item_id_pp
library_id_pp:
$ref: parameters/library.yaml#/library_id_pp
match:
name: _match
in: query
required: false
description: Matching criteria
type: string
enum:
- contains
- exact
- starts_with
- ends_with
order_by:
name: _order_by
in: query
required: false
description: Sorting criteria
type: array
collectionFormat: csv
items:
type: string
order_id_pp:
$ref: parameters/order.yaml#/order_id_pp
page:
name: _page
in: query
required: false
description: Page number, for paginated object listing
type: integer
patron_id_pp:
$ref: parameters/patron.yaml#/patron_id_pp
patron_id_qp:
$ref: parameters/patron.yaml#/patron_id_qp
per_page:
name: _per_page
in: query
required: false
description: Page size, for paginated object listing
type: integer
q_body:
name: query
in: body
required: false
description: Query filter sent through request's body
schema:
type:
- object
- array
q_param:
name: q
in: query
required: false
description: Query filter sent as a request parameter
type: string
q_header:
name: x-koha-query
in: header
required: false
description: Query filter sent as a request header
type: string
quote_id_pp:
$ref: parameters/quote.yaml#/quote_id_pp
seen_pp:
$ref: parameters/checkout.yaml#/seen_pp
smtp_server_id_pp:
$ref: parameters/smtp_server.yaml#/smtp_server_id_pp
suggestion_id_pp:
$ref: parameters/suggestion.yaml#/suggestion_id_pp
transfer_limit_id_pp:
$ref: parameters/transfer_limit.yaml#/transfer_limit_id_pp
vendoridPathParam:
$ref: parameters/vendor.yaml#/vendoridPathParam

View File

@ -1,9 +0,0 @@
{
"advancededitormacro_id_pp": {
"name": "advancededitormacro_id",
"in": "path",
"description": "Advanced editor macro internal identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
advancededitormacro_id_pp:
name: advancededitormacro_id
in: path
description: Advanced editor macro internal identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"biblio_id_pp": {
"name": "biblio_id",
"in": "path",
"description": "Record internal identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
biblio_id_pp:
name: biblio_id
in: path
description: Record internal identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"cash_register_id_pp": {
"name": "cash_register_id",
"in": "path",
"description": "Cash register internal identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
cash_register_id_pp:
name: cash_register_id
in: path
description: Cash register internal identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"cashup_id_pp": {
"name": "cashup_id",
"in": "path",
"description": "Cashup internal identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
cashup_id_pp:
name: cashup_id
in: path
description: Cashup internal identifier
required: true
type: integer

View File

@ -1,16 +0,0 @@
{
"checkout_id_pp": {
"name": "checkout_id",
"in": "path",
"description": "Internal checkout identifier",
"required": true,
"type": "integer"
},
"seen_pp": {
"name": "seen",
"in": "query",
"description": "Item was seen flag",
"required": false,
"type": "integer"
}
}

View File

@ -0,0 +1,13 @@
---
checkout_id_pp:
name: checkout_id
in: path
description: Internal checkout identifier
required: true
type: integer
seen_pp:
name: seen
in: query
description: Item was seen flag
required: false
type: integer

View File

@ -1,9 +0,0 @@
{
"city_id_pp": {
"name": "city_id",
"in": "path",
"description": "City internal identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
city_id_pp:
name: city_id
in: path
description: City internal identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"club_id_pp": {
"name": "club_id",
"in": "path",
"description": "Internal club identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
club_id_pp:
name: club_id
in: path
description: Internal club identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"fundidPathParam": {
"name": "fund_id",
"in": "path",
"description": "Fund id",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
fundidPathParam:
name: fund_id
in: path
description: Fund id
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"hold_id_pp": {
"name": "hold_id",
"in": "path",
"description": "Internal hold identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
hold_id_pp:
name: hold_id
in: path
description: Internal hold identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"import_batch_profile_id_pp": {
"name": "import_batch_profile_id",
"in": "path",
"description": "Internal profile identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
import_batch_profile_id_pp:
name: import_batch_profile_id
in: path
description: Internal profile identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"item_id_pp": {
"name": "item_id",
"in": "path",
"description": "Internal item identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
item_id_pp:
name: item_id
in: path
description: Internal item identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"library_id_pp": {
"name": "library_id",
"in": "path",
"description": "Internal library identifier",
"required": true,
"type": "string"
}
}

View File

@ -0,0 +1,7 @@
---
library_id_pp:
name: library_id
in: path
description: Internal library identifier
required: true
type: string

View File

@ -1,9 +0,0 @@
{
"order_id_pp": {
"name": "order_id",
"in": "path",
"description": "Internal order identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
order_id_pp:
name: order_id
in: path
description: Internal order identifier
required: true
type: integer

View File

@ -1,15 +0,0 @@
{
"patron_id_pp": {
"name": "patron_id",
"in": "path",
"description": "Internal patron identifier",
"required": true,
"type": "integer"
},
"patron_id_qp": {
"name": "patron_id",
"in": "query",
"description": "Internal patron identifier",
"type": "integer"
}
}

View File

@ -0,0 +1,12 @@
---
patron_id_pp:
name: patron_id
in: path
description: Internal patron identifier
required: true
type: integer
patron_id_qp:
name: patron_id
in: query
description: Internal patron identifier
type: integer

View File

@ -1,9 +0,0 @@
{
"quote_id_pp": {
"name": "quote_id",
"in": "path",
"description": "Quote internal identifier",
"required": true,
"type": "integer"
}
}

View File

@ -0,0 +1,7 @@
---
quote_id_pp:
name: quote_id
in: path
description: Quote internal identifier
required: true
type: integer

View File

@ -1,9 +0,0 @@
{
"smtp_server_id_pp": {
"name": "smtp_server_id",
"in": "path",
"description": "SMTP server internal identifier",
"required": true,
"type": "integer"
}
}

Some files were not shown because too many files have changed in this diff Show More