From 4a64bd14d29957551c3e3bf96a78b43a02885229 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 13 Aug 2024 14:18:49 +0000 Subject: [PATCH] Bug 10190: Let the circulation_rules endpoint accept query parameters Sponsored-by: Glasgow Colleges Library Group Signed-off-by: George Harkins --- api/v1/swagger/paths/circulation_rules.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/api/v1/swagger/paths/circulation_rules.yaml b/api/v1/swagger/paths/circulation_rules.yaml index 4b7e5e1cd65..b08e1f6bf7f 100644 --- a/api/v1/swagger/paths/circulation_rules.yaml +++ b/api/v1/swagger/paths/circulation_rules.yaml @@ -9,6 +9,13 @@ produces: - application/json parameters: + - $ref: "../swagger.yaml#/parameters/match" + - $ref: "../swagger.yaml#/parameters/order_by" + - $ref: "../swagger.yaml#/parameters/page" + - $ref: "../swagger.yaml#/parameters/per_page" + - $ref: "../swagger.yaml#/parameters/q_param" + - $ref: "../swagger.yaml#/parameters/q_body" + - $ref: "../swagger.yaml#/parameters/request_id_header" - name: effective in: query description: Boolean indicating whether to return effective rules or all rules. Defaults to true. @@ -42,7 +49,10 @@ items: $ref: "../swagger.yaml#/definitions/circulation_rules" "400": - description: Bad request + description: | + Bad request. Possible `error_code` attribute values: + + * `invalid_query` schema: $ref: "../swagger.yaml#/definitions/error" "401": -- 2.51.0