Bugzilla – Attachment 121503 Details for
Bug 28480
GET /patrons missing q parameters on the spec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28480: Add q parameters for GET /patrons
Bug-28480-Add-q-parameters-for-GET-patrons.patch (text/plain), 1.25 KB, created by
David Nind
on 2021-05-29 00:21:56 UTC
(
hide
)
Description:
Bug 28480: Add q parameters for GET /patrons
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-05-29 00:21:56 UTC
Size:
1.25 KB
patch
obsolete
>From fd7f1196069be89222bee949427ca8178b0f8058 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 28 May 2021 08:34:29 -0300 >Subject: [PATCH] Bug 28480: Add q parameters for GET /patrons > >This patch adds the q query parameters to the route. > >To test: >1. Try the route with the following query parameter: > q={"patron_id":2} > i.e. GET /api/v1/patrons?q={"patron_id":2} >=> FAIL: You get a bad request respose >2. Apply this patch >3. Restart all >4. Repeat 1 >=> SUCCESS: You get the patron >5. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: David Nind <david@davidnind.com> >--- > api/v1/swagger/paths/patrons.json | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/api/v1/swagger/paths/patrons.json b/api/v1/swagger/paths/patrons.json >index 63ff876710..a49f3e3491 100644 >--- a/api/v1/swagger/paths/patrons.json >+++ b/api/v1/swagger/paths/patrons.json >@@ -418,6 +418,12 @@ > "$ref": "../parameters.json#/page" > }, { > "$ref": "../parameters.json#/per_page" >+ }, { >+ "$ref": "../parameters.json#/q_param" >+ }, { >+ "$ref": "../parameters.json#/q_body" >+ }, { >+ "$ref": "../parameters.json#/q_header" > }], > "responses": { > "200": { >-- >2.11.0
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 28480
:
121475
|
121503
|
121874
|
121875
|
122278
|
122332