You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now some methods of the Api class use the $params parameter (6 methods) and some use the $options parameter (2 methods) for specifying extra parameters for the upcoming Jira API call.
I think we need to use consistent naming because the parameter meanings for API calls are identical.
@glensc , what about other methods using $params and $options?
I'm on the fence here, because:
what usually is specified in $params goes into the json-encoded Request body part (according to the API docs) so they are parameters of the API call
the $options are optional stuff and indeed every API call implemented can work without specifying these
So they're options and params at the same time.
The $data variable name is from library conception times. Not sure what @chobie meant with this name. Probably an abstract name to represent a data, that goes into the request.
Right now some methods of the
Api
class use the$params
parameter (6 methods) and some use the$options
parameter (2 methods) for specifying extra parameters for the upcoming Jira API call.I think we need to use consistent naming because the parameter meanings for API calls are identical.
What do you prefer?
// cc: @chobie, @jpastoor, @glensc
The text was updated successfully, but these errors were encountered: