TrackResource Resource

GET /tracks

Request Parameters
name type description
albumIds query
trackIds query
Response Codes
code condition
200 The track for the provided track id was returned.
404 The provided track id does not correspond to an available track.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom)

Example

Request
GET /tracks
Content-Type: application/xml
Accept: application/xml;charset=utf-8

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...
                
              

GET /tracks/search

Search for tracks.

Request Parameters
name type description
loadEntities query a boolean indicating if entities should be returned along with the response. If set to false only entity ids will be returned. Defaults to false.
maxSuggestionsPerCategory query an int holding the maximum number of suggestions which will be returned for each applicable filters category. Defaults to unlimited.
page query an int holding the page number which is to be returned. Numbering starts on 1. Defaults to 1.
pageSize query an int holding the number of entities which are to be returned for the page. Defaults to 50.
phrase query a String holding a search phrase. Required.
sort query a comma separated String holding the fields which results are to be sorted by. Each field is a combination of the field name and the sort direction, e.g. track_title:asc. Respected fields are track_number, track_title, track_type, track_version, track_alternativetitle, track_year, track_bpm,track_pd track_created,album_number,album_title library_name,library_code. Defaults to no sorting.
trackTitleMustContainPhrase query a boolean indicating if the track title field must contain the provided phrase (if provided). Defaults to false
Response Codes
code condition
200 The track for the provided track id was returned.
500 An error occured.

Example

Request
GET /tracks/search
Content-Type: application/xml

                
...
                
              
Response
HTTP/1.1 200 OK