Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
592bd080
Commit
592bd080
authored
Aug 21, 2013
by
Dave Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 907245 - Allow for URL params to also be passed with POST/PUT REST API requests
r/a=glob
parent
74b8cef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
REST.pm
Bugzilla/WebService/Server/REST.pm
+11
-0
No files found.
Bugzilla/WebService/Server/REST.pm
View file @
592bd080
...
...
@@ -341,6 +341,14 @@ sub _retrieve_json_params {
ThrowUserError
(
'json_rpc_invalid_params'
,
{
err_msg
=>
$@
});
}
}
# Allow parameters in the query string if request was not GET.
# Note: query string parameters will override any matching params
# also specified in the request body.
foreach
my
$param
(
$self
->
cgi
->
url_param
())
{
$extra_params
->
{
$param
}
=
$self
->
cgi
->
url_param
(
$param
);
}
%
{
$params
}
=
(
%
{
$params
},
%
{
$extra_params
})
if
%
{
$extra_params
};
}
...
...
@@ -527,6 +535,9 @@ tells it how you want your data back. "Content-Type" must be "application/json".
"Accept" can be either that, or "application/javascript" for JSONP - add a "callback"
parameter to name your callback.
Parameters may also be passed in as part of the query string for non-GET requests
and will override any matching parameters in the request body.
=head1 AUTHENTICATION
Along with viewing data as an anonymous user, you may also see private information
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment