Bugzilla – Attachment 85459 Details for
Bug 13895
Add routes for checkouts retrieval and renewal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13895: (QA follow-up) Adjust OpenAPI definitions for checkouts
Bug-13895-QA-follow-up-Adjust-OpenAPI-definitions-.patch (text/plain), 2.68 KB, created by
Josef Moravec
on 2019-02-21 16:46:13 UTC
(
hide
)
Description:
Bug 13895: (QA follow-up) Adjust OpenAPI definitions for checkouts
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-02-21 16:46:13 UTC
Size:
2.68 KB
patch
obsolete
>From 8539479882e0c88cd74a236067f80b82ee4f8308 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 10 Nov 2017 16:16:49 -0300 >Subject: [PATCH] Bug 13895: (QA follow-up) Adjust OpenAPI definitions for > checkouts > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/Schema/Result/Issue.pm | 5 +++++ > api/v1/swagger/definitions/checkout.json | 23 +++++++++++++++++++---- > 2 files changed, 24 insertions(+), 4 deletions(-) > >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >index e82886a..a727744 100644 >--- a/Koha/Schema/Result/Issue.pm >+++ b/Koha/Schema/Result/Issue.pm >@@ -251,6 +251,11 @@ __PACKAGE__->belongs_to( > # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-23 13:51:40 > # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+mlcId4odhAFp3HHgV/+tg > >+__PACKAGE__->add_columns( >+ '+auto_renew' => { is_boolean => 1 }, >+ '+onsite_checkout' => { is_boolean => 1 } >+); >+ > __PACKAGE__->belongs_to( > "borrower", > "Koha::Schema::Result::Borrower", >diff --git a/api/v1/swagger/definitions/checkout.json b/api/v1/swagger/definitions/checkout.json >index 6eadd55..4267eba 100644 >--- a/api/v1/swagger/definitions/checkout.json >+++ b/api/v1/swagger/definitions/checkout.json >@@ -12,37 +12,52 @@ > "$ref": "../x-primitives.json#/itemnumber" > }, > "date_due": { >+ "type": "string", > "description": "Due date" > }, > "branchcode": { >- "$ref": "../x-primitives.json#/branchcode" >+ "type": "string", >+ "description": "code of the library the item was checked out" > }, > "issuingbranch": { >+ "type": "string", > "description": "Code of the branch where issue was made" > }, > "returndate": { >+ "type": ["string", "null"], > "description": "Date the item was returned" > }, > "lastreneweddate": { >+ "type": ["string", "null"], > "description": "Date the item was last renewed" > }, >- "return": { >- "description": "?" >- }, > "renewals": { >+ "type": ["integer", "null"], > "description": "Number of renewals" > }, > "auto_renew": { >+ "type": "boolean", > "description": "Auto renewal" > }, > "timestamp": { >+ "type": "string", > "description": "Last update time" > }, > "issuedate": { >+ "type": ["string", "null"], > "description": "Date the item was issued" > }, > "onsite_checkout": { >+ "type": "boolean", > "description": "On site checkout" >+ }, >+ "note": { >+ "type": ["string", "null"], >+ "description": "Issue note text" >+ }, >+ "notedate": { >+ "type": ["string", "null"], >+ "description": "Datetime of the issue note" > } > } > } >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13895
:
37146
|
40104
|
40143
|
40588
|
41163
|
41548
|
45817
|
50021
|
51303
|
53816
|
53817
|
53878
|
53889
|
53890
|
53891
|
53901
|
53924
|
54196
|
54685
|
54951
|
56167
|
56506
|
58387
|
69123
|
84765
|
85458
|
85459
|
85460
|
85461
|
85462
|
85463
|
85464
|
85676
|
86120
|
86576
|
86579
|
86580
|
87105
|
87106
|
87107
|
87108
|
87109
|
87110
|
87111
|
87112
|
87113
|
87114
|
87115
|
87200