-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination, additional parameters, and tests for the Connections endpoint #258
Conversation
Will replace #247 |
5af41c7
to
13143d2
Compare
Add pagination to getAll method via page and per_page parameters. Add application type to getAll method via app_type parameter and app_type constants. Change apiClient fluent methods to explicit. Add validation for required 'name' parameter in create method. Add docblocks throughout Clients. Add additional testing for Clients and BasicCrudTest.
13143d2
to
f404503
Compare
…r test tweak for accuracy
$add_params = [] | ||
) { | ||
// Set additional parameters first so they are over-written by function parameters. | ||
$params = is_array($add_params) ? $add_params : []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again. Is array? shouldn't $param
be a dictionary structure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, which is == array in PHP ... no special data structure for that
{ | ||
return $this->apiClient->patch() | ||
->connections($id) | ||
->withHeader(new ContentType('application/json')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is now missing. Was missing from #256 too. Are you covering this somewhere else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
method('patch')
adds that header automatically
src/API/Management/Connections.php
Outdated
* @return mixed | ||
* Delete a specific User for a Connection. | ||
* | ||
* @param string $id - Connection ID (currently only database connections are supported). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AKA auth0
strategies. Is there another way to rephrase this database only warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👨🎓
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Similar implementation as #256