Bugzilla – Attachment 145715 Details for
Bug 28701
primary_contact_method not part of the REST API spec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28701 - Adding primary_contact_method to the REST API spec
Bug-28701---Adding-primarycontactmethod-to-the-RES.patch (text/plain), 1.95 KB, created by
Marcel de Rooy
on 2023-01-27 08:12:00 UTC
(
hide
)
Description:
Bug 28701 - Adding primary_contact_method to the REST API spec
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-01-27 08:12:00 UTC
Size:
1.95 KB
patch
obsolete
>From db6856b27cf3c4defd53a37a691daf4f82ab0454 Mon Sep 17 00:00:00 2001 >From: Alexis Ripetti <alexis.ripetti@inLibro.com> >Date: Wed, 15 Jun 2022 16:33:53 -0400 >Subject: [PATCH] Bug 28701 - Adding primary_contact_method to the REST API > spec >Content-Type: text/plain; charset=utf-8 > >This patch adds the primary_contact_method field to the api response for patrons > >To test: >1 - GET http://localhost:8081/api/v1/patrons/51 >2 - Look for primary_contact_method, it's not there >3 - Apply patch >4 - GET http://localhost:8081/api/v1/patrons/51 >5 - Look for primary_contact_method, it's not there > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > api/v1/swagger/definitions/patron.yaml | 5 +++++ > api/v1/swagger/paths/patrons.yaml | 5 +++++ > 2 files changed, 10 insertions(+) > >diff --git a/api/v1/swagger/definitions/patron.yaml b/api/v1/swagger/definitions/patron.yaml >index 7967722db7..5d2920ee00 100644 >--- a/api/v1/swagger/definitions/patron.yaml >+++ b/api/v1/swagger/definitions/patron.yaml >@@ -374,6 +374,11 @@ properties: > - object > - "null" > description: Library of the patron >+ primary_contact_method: >+ type: >+ - string >+ - "null" >+ description: patron's primary contact method > additionalProperties: false > required: > - surname >diff --git a/api/v1/swagger/paths/patrons.yaml b/api/v1/swagger/paths/patrons.yaml >index 1100a9fba9..19f9bcde60 100644 >--- a/api/v1/swagger/paths/patrons.yaml >+++ b/api/v1/swagger/paths/patrons.yaml >@@ -339,6 +339,11 @@ > description: Search on login_attempts > required: false > type: string >+ - name: primary_contact_method >+ in: query >+ description: Case insensitive search on primary_contact_method >+ required: false >+ type: string > - $ref: "../swagger.yaml#/parameters/match" > - $ref: "../swagger.yaml#/parameters/order_by" > - $ref: "../swagger.yaml#/parameters/page" >-- >2.30.2
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 28701
:
136124
|
143972
| 145715 |
145716