jira-api-restclient icon indicating copy to clipboard operation
jira-api-restclient copied to clipboard

Support passing of query string parameters in API calls

Open aik099 opened this issue 1 year ago • 1 comments

Some of the API calls support both request body parameters and query string parameters (e.g. https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-worklogs/#api-rest-api-2-issue-issueidorkey-worklog-id-put ).

Proposing to support the query_string/queryParams/_query key (or similar) in the $params/$options array for specifying these parameters.

The name must also be quite unique to avoid conflict with any of Request body parameters, that we any of current JIRA API calls (according to docs) can use.

aik099 avatar Dec 31 '24 20:12 aik099

Having some special key in the $data parameter of the Api::api method looks a bit weird, but adding yet another optional parameter to the Api::api method (it already has 6 parameters) looks like an even worse decision to me.

// cc: @jpastoor

aik099 avatar Jan 01 '25 16:01 aik099