Talk:MusicBrainz API/XML: Difference between revisions
From MusicBrainz Wiki
Jump to navigationJump to search
m (Kuno moved page Talk:XML Web Service/Version 2 to Talk:Development/XML Web Service/Version 2) |
(formatting and stuff) |
||
Line 6: | Line 6: | ||
A query such as: |
A query such as: |
||
<pre>http:// |
<pre>http://musicbrainz.org/ws/2/recording/?query=Moi+je+dors+pr%C3%A8s+de+la+Seine&artist=29c181c9-9069-41ec-a91d-82f50c7cd2a9</pre> |
||
or |
or |
||
<pre>http:// |
<pre>http://musicbrainz.org/ws/2/recording/?query=Moi+je+dors+pr%C3%A8s+de+la+Seine&arid:29c181c9-9069-41ec-a91d-82f50c7cd2a9</pre> |
||
will not actually recognize the &artist= or &arid= or &arid: parameter unless the query portion is wrapped in double quotes like: |
will not actually recognize the &artist= or &arid= or &arid: parameter unless the query portion is wrapped in double quotes like: |
||
<pre>http:// |
<pre>http://musicbrainz.org/ws/2/recording/?query="Moi+je+dors+pr%C3%A8s+de+la+Seine"&artist=29c181c9-9069-41ec-a91d-82f50c7cd2a9</pre> |
||
Need to have more detailing in the docs about HOW the <QUERY> should be wrapped properly in order for additional parameters after it to be properly recognized. |
Need to have more detailing in the docs about HOW the <QUERY> should be wrapped properly in order for additional parameters after it to be properly recognized. |
||
(or else you could classify this as a bug and say that it SHOULD NOT NEED double quotes ? dunno) --[[User:thadguidry|thadguidry]] Jan 31 2012 |
(or else you could classify this as a bug and say that it SHOULD NOT NEED double quotes ? dunno) --[[User:thadguidry|thadguidry]] Jan 31 2012 |
||
:: "arid" is a field of the Lucene query (part of the &query= string), not part of the browse request, so using &arid is wrong. The following would work: |
:: "arid" is a field of the Lucene query (part of the &query= string), not part of the browse request, so using &arid is wrong. The following would work: |
||
:: <pre>http:// |
:: <pre>http://musicbrainz.org/ws/2/recording/?query=Moi+je+dors+pr%C3%A8s+de+la+Seine%20AND%20arid:29c181c9-9069-41ec-a91d-82f50c7cd2a9</pre> |
||
:: You don't need quotes unless you want to search for the entire phrase. See [[Indexed Search Syntax]]. --[[User:Bitmap|Bitmap]] 00:56, 1 February 2012 (UTC) |
:: You don't need quotes unless you want to search for the entire phrase. See [[Indexed Search Syntax]]. --[[User:Bitmap|Bitmap]] 00:56, 1 February 2012 (UTC) |
Revision as of 15:00, 4 May 2014
Non-supported use-cases
- "labels" isn't a valid inc parameter for release-group requests if "releases" is specified. This would be useful if we wanted to quickly compile a basic list of identifying info about all of the releases in a release group. e.g. having a list of "other versions" of a release in Picard that the user can switch to. With the current web service we can make a list of "Date - Country - Barcode - Format," but can't include the label or catalog number (which can be just as important) without making n additional requests for each release in the RG. --Bitmap 15:47, 21 May 2011 (UTC)
UNDOCUMENTED: <QUERY> seems to actually need double quotes surrounding
A query such as:
http://musicbrainz.org/ws/2/recording/?query=Moi+je+dors+pr%C3%A8s+de+la+Seine&artist=29c181c9-9069-41ec-a91d-82f50c7cd2a9
or
http://musicbrainz.org/ws/2/recording/?query=Moi+je+dors+pr%C3%A8s+de+la+Seine&arid:29c181c9-9069-41ec-a91d-82f50c7cd2a9
will not actually recognize the &artist= or &arid= or &arid: parameter unless the query portion is wrapped in double quotes like:
http://musicbrainz.org/ws/2/recording/?query="Moi+je+dors+pr%C3%A8s+de+la+Seine"&artist=29c181c9-9069-41ec-a91d-82f50c7cd2a9
Need to have more detailing in the docs about HOW the <QUERY> should be wrapped properly in order for additional parameters after it to be properly recognized. (or else you could classify this as a bug and say that it SHOULD NOT NEED double quotes ? dunno) --thadguidry Jan 31 2012
- "arid" is a field of the Lucene query (part of the &query= string), not part of the browse request, so using &arid is wrong. The following would work:
http://musicbrainz.org/ws/2/recording/?query=Moi+je+dors+pr%C3%A8s+de+la+Seine%20AND%20arid:29c181c9-9069-41ec-a91d-82f50c7cd2a9
- You don't need quotes unless you want to search for the entire phrase. See Indexed Search Syntax. --Bitmap 00:56, 1 February 2012 (UTC)