Get all tracks
GET/api/tracks?page=:page&sort=:sortField&order=:order
Get all tracks
Request
Path Parameters
page integerrequired
number of page for pagination
sortField string
how should the list be sorted
order string
Ascending or descending order
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
type string
url string
id integer
title string
cover string
album string
album_id integer
duration integer
track integer
disc integer
year integer
explicit boolean
genre string
lyrics string
artists
Artist[]
type string
id integer
name string
image string
created_at string
added_at string
[
{
"type": "string",
"url": "string",
"id": 0,
"title": "string",
"cover": "string",
"album": "string",
"album_id": 0,
"duration": 0,
"track": 0,
"disc": 0,
"year": 0,
"explicit": true,
"genre": "string",
"lyrics": "string",
"artists": [
{
"type": "string",
"id": 0,
"name": "string",
"image": "string",
"created_at": "string"
}
],
"added_at": "string"
}
]
Loading...