Koha/api/v1/swagger/definitions/quote.json
Jonathan Druart 401987bdad Bug 27251: Rewrite QOTD with the Koha REST API
This patch replace the QOTD editor with our new way to CRUD the
adminitration page (like libraries and STMP servers)

Test plan:
Play with the QOTD by adding, removing, updating quotes
Try to find bugs :)

Bug 27251: Fix capitalization

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-01-29 09:03:45 +01:00

22 lines
473 B
JSON

{
"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"]
}