-
Notifications
You must be signed in to change notification settings - Fork 31
Plans and regions to look to setup/options api first #39
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
Changes from 1 commit
836fa83
de7f74a
d67ea8e
b683d81
ea87c04
471b880
57b0357
1c363a7
b915809
87f1dfd
eda586c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <?php | ||
|
|
||
| namespace Platformsh\Client\Model; | ||
|
|
||
| /** | ||
| * Represents Platform.sh setup options return data. | ||
| * | ||
| */ | ||
| class SetupOptions extends Resource | ||
|
||
| { | ||
|
|
||
| } | ||
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 is mimicking
get()but I think you want to mimicgetCollection(), as it's a list of results you're afteryou could add a parameter to getCollection to override the request method,
getCollection( ... , $method = 'get')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.
Would
getCollectionwork? Given that is also processes the returned data withwrapCollection.I thought we might need to implement more
posts in future if we use the APIs more so it seems reasonable to create a new post method. If you don't think that's the case we can alter an existing method.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.
It takes a $collectionUrl so it seems like you're trying to fetch a collection; list of things. But it's ignoring 404s, which isn't appropriate for a POST nor for a collection.