-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add optional create collection params #29
Conversation
collections.go
Outdated
func newCollectionsCreateClient(sl *sling.Sling, params collectionsCreateParams) *CollectionsCreateClient { | ||
copy := sl.New() | ||
copy.Post(common.CollectionsCreateEndpoint()).BodyJSON(&data) | ||
return &CollectionsCreateClient{sl: copy, params: 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.
second parameter should be name only and while returning the new CollectionsCreateClient
give it a new param with name field initialized from the name parameter
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.
@rsjethani in case you are fine with my changes, you can approve it directly. |
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.
LGTM, a rebase is needed of course.
Closes #27
Follows the same pattern as in #20