Bugzilla – Attachment 99253 Details for
Bug 24502
Add a query language and param (q=) to the API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24502: (follow-up) Add all 3 query parameters in api definition
Bug-24502-follow-up-Add-all-3-query-parameters-in-.patch (text/plain), 1.58 KB, created by
Agustín Moyano
on 2020-02-19 14:09:26 UTC
(
hide
)
Description:
Bug 24502: (follow-up) Add all 3 query parameters in api definition
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2020-02-19 14:09:26 UTC
Size:
1.58 KB
patch
obsolete
>From 34f40d27b9ce838554932cc8a34817531bc3f2a8 Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Thu, 30 Jan 2020 19:20:42 +0000 >Subject: [PATCH] Bug 24502: (follow-up) Add all 3 query parameters in api > definition > >This patch adds api definition for body, query or header parameters. > >To use them include: > >* "$ref": "../parameters.json#/q_body" for body parameter. >* "$ref": "../parameters.json#/q_param" for query parameter. >* "$ref": "../parameters.json#/q_header" for header parameter. >--- > api/v1/swagger/parameters.json | 25 ++++++++++++++++++++++++- > 1 file changed, 24 insertions(+), 1 deletion(-) > >diff --git a/api/v1/swagger/parameters.json b/api/v1/swagger/parameters.json >index adc455018c..9c3d7ebc96 100644 >--- a/api/v1/swagger/parameters.json >+++ b/api/v1/swagger/parameters.json >@@ -69,7 +69,30 @@ > "required": false, > "description": "Page size, for paginated object listing", > "type": "integer" >- }, >+ }, >+ "q_body": { >+ "name": "query", >+ "in": "body", >+ "required": false, >+ "description": "Query filter sent through request's body", >+ "schema": { >+ "type": ["object", "array"] >+ } >+ }, >+ "q_param": { >+ "name": "q", >+ "in": "query", >+ "required": false, >+ "description": "Query filter sent as a request parameter", >+ "type": "string" >+ }, >+ "q_header": { >+ "name": "x-koha-query", >+ "in": "header", >+ "required": false, >+ "description": "Query filter sent as a request header", >+ "type": "string" >+ }, > "fundidPathParam": { > "$ref": "parameters/fund.json#/fundidPathParam" > } >-- >2.17.1
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 24502
:
97934
|
98185
|
98186
|
98596
|
98597
|
98605
|
98606
|
98611
|
99252
|
99253
|
99351
|
99352
|
99946
|
99947