-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Simplify lookup, browse and search functions #823
Conversation
7772bcf
to
e249935
Compare
44413a8
to
664b49b
Compare
If you are happy with this one @Haschikeks , I like to merge it. |
f00f011
to
7e73e3b
Compare
7e73e3b
to
28b3921
Compare
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.
Looks good.
But we should keep in mind, that this is a breaking API change.
Very true. Thanks for your review @Haschikeks, much appreciated. |
Remove specific search function in favor of a single typed function:
mbApi.browseArtist(query)
withmbApi.browse('artist', query)
mbApi.lookupArtist('ab2528d9-719f-4261-8098-21849222a0f2')
withmbApi.lookup('artist', 'ab2528d9-719f-4261-8098-21849222a0f2')
mbApi.searchArtist({query: 'Stromae'})
withmbApi.search('artist', {query: 'Stromae'})
Resolves #822