From 9dbdcde9b11b01beabae18577ae9b9da9eb7999b Mon Sep 17 00:00:00 2001 From: Alexis Ripetti Date: Wed, 15 Jun 2022 16:33:53 -0400 Subject: [PATCH] Bug 28701 - Adding primary_contact_method to the REST API spec --- 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 256430ae6c..d0aa4486db 100644 --- a/api/v1/swagger/definitions/patron.yaml +++ b/api/v1/swagger/definitions/patron.yaml @@ -359,6 +359,11 @@ properties: - number - "null" description: Balance of the patron's account + 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 878f4b6105..0701d6a49a 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.25.1