mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 01:01:10 +00:00
Reorganizes the API documentation to mirror the API project structure
This commit is contained in:
1 parent
3f8eac43ea
commit
3a2c80b615
74 files changed
+3225
-392
No files matched your search
@@ -0,0 +1,552 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Album](#album)
|
||||
- [Get Artist Albums](#get-artist-albums)
|
||||
- [Get Artist Albums Request](#get-artist-albums-request)
|
||||
- [Get Artist Albums Response](#get-artist-albums-response)
|
||||
- [Get Artist Albums Lite](#get-artist-albums-lite)
|
||||
- [Get Artist Albums Lite Request](#get-artist-albums-lite-request)
|
||||
- [Get Artist Albums Lite Response](#get-artist-albums-lite-response)
|
||||
- [Add Album](#add-album)
|
||||
- [Add Album Request](#add-album-request)
|
||||
- [Add Album Response](#add-album-response)
|
||||
- [Get Album](#get-album)
|
||||
- [Get Album Request](#get-album-request)
|
||||
- [Get Album Response](#get-album-response)
|
||||
- [Update Album](#update-album)
|
||||
- [Update Album Request](#update-album-request)
|
||||
- [Update Album Response](#update-album-response)
|
||||
- [Delete Album](#delete-album)
|
||||
|
||||
## Album
|
||||
|
||||
### Get Artist Albums
|
||||
|
||||
#### Get Artist Albums Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums
|
||||
```
|
||||
|
||||
#### Get Artist Albums Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"title": "A Night at the Opera",
|
||||
"originalTitle": "A Night at the Opera",
|
||||
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
|
||||
"releaseType": "Album",
|
||||
"releaseStatus": "Official",
|
||||
"totalDiscs": 1,
|
||||
"totalTracks": 12,
|
||||
"mediaFormat": "CD",
|
||||
"barcode": "0042282778329",
|
||||
"catalogNumber": "EMC 4008",
|
||||
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
||||
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
|
||||
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null,
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"originalReleaseDate": "1975-11-21",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Remastered",
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"languageNativeName": "English",
|
||||
"originalLanguageCode": "en",
|
||||
"originalLanguageName": "English",
|
||||
"originalLanguageNativeName": "English",
|
||||
"genres": [
|
||||
{
|
||||
"name": "Rock"
|
||||
},
|
||||
{
|
||||
"name": "Progressive Rock"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
{
|
||||
"name": "classic"
|
||||
},
|
||||
{
|
||||
"name": "vinyl"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
### Get Artist Albums Lite
|
||||
|
||||
#### Get Artist Albums Lite Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/lite?currentPage=1&perPage=10
|
||||
```
|
||||
|
||||
| Query Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `currentPage` | `int` | Optional. The page of results to retrieve. |
|
||||
| `perPage` | `int` | Optional. The maximum number of albums to retrieve per page. |
|
||||
|
||||
#### Get Artist Albums Lite Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"title": "A Night at the Opera",
|
||||
"totalTracks": 12
|
||||
}
|
||||
],
|
||||
"currentPage": 1,
|
||||
"perPage": 10,
|
||||
"count": 1,
|
||||
"numberOfPages": 1
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Add Album
|
||||
|
||||
#### Add Album Request
|
||||
|
||||
```js
|
||||
POST api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"metadata": {
|
||||
"title": "A Night at the Opera",
|
||||
"originalTitle": "A Night at the Opera",
|
||||
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1975-11-21",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Remastered"
|
||||
},
|
||||
"releaseType": "Album",
|
||||
"releaseStatus": "Official",
|
||||
"totalDiscs": 1,
|
||||
"totalTracks": 12,
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "vinyl" }
|
||||
]
|
||||
},
|
||||
"mediaFormat": "CD",
|
||||
"barcode": "0042282778329",
|
||||
"catalogNumber": "EMC 4008",
|
||||
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
||||
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
|
||||
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
|
||||
"credits": [
|
||||
{ "contributorId": "0e7b4a6c-5f8d-6b9e-ca0b-3c4d5e6f7a8b", "role": "Producer" },
|
||||
{ "contributorId": "1a8c5b7d-6a9e-7c0f-db1c-4d5e6f7a8b9c", "role": "Engineer" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"tracks": [
|
||||
{
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"path": "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
"metadata": {
|
||||
"title": "Bohemian Rhapsody",
|
||||
"originalTitle": "Bohemian Rhapsody",
|
||||
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||
"durationInSeconds": 354,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 980,
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1975-10-31",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Original"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "epic" }
|
||||
]
|
||||
},
|
||||
"trackNumber": 1,
|
||||
"discNumber": 1,
|
||||
"script": "Latn",
|
||||
"key": "CMajor",
|
||||
"bpm": 72,
|
||||
"work": "Bohemian Rhapsody",
|
||||
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
|
||||
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
|
||||
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
|
||||
"credits": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
|
||||
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"moods": [
|
||||
{ "name": "dramatic" },
|
||||
{ "name": "anxious" }
|
||||
],
|
||||
"isrcs": [
|
||||
{ "value": "GBUM71029604" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"path": "/music/queen/a-night-at-the-opera/02-youre-my-best-friend.flac",
|
||||
"metadata": {
|
||||
"title": "You're My Best Friend",
|
||||
"originalTitle": "You're My Best Friend",
|
||||
"description": "A song by the British rock band Queen. It was written by John Deacon and originally released on the album A Night at the Opera in 1975.",
|
||||
"durationInSeconds": 157,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 895,
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1975-06-18",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Original"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Pop" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "pop" }
|
||||
]
|
||||
},
|
||||
"trackNumber": 2,
|
||||
"discNumber": 1,
|
||||
"script": "Latn",
|
||||
"key": "CMajor",
|
||||
"bpm": 128,
|
||||
"work": "You're My Best Friend",
|
||||
"musicBrainzRecordingId": "a0b1c2d3-e4f5-4a6b-8c7d-9e0f1a2b3c4d",
|
||||
"musicBrainzTrackId": "b1c2d3e4-f5a6-4b7c-9d0e-1f2a3b4c5d6e",
|
||||
"musicBrainzWorkId": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
|
||||
"credits": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
|
||||
{ "contributorId": "8c5f2e4a-3d6b-4f7c-ae8f-1a2b3c4d5e6f", "role": "BassGuitar" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.2,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 1890
|
||||
},
|
||||
{
|
||||
"value": 4.1,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 987
|
||||
}
|
||||
],
|
||||
"moods": [
|
||||
{ "name": "upbeat" },
|
||||
{ "name": "happy" }
|
||||
],
|
||||
"isrcs": [
|
||||
{ "value": "GBUM71029605" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Add Album Response
|
||||
|
||||
```js
|
||||
201 Created
|
||||
```
|
||||
|
||||
The response carries the full details of the newly created album, using the same shape as the [Get Album Response](#get-album-response).
|
||||
|
||||
|
||||
### Get Album
|
||||
|
||||
#### Get Album Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f
|
||||
```
|
||||
|
||||
#### Get Album Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"title": "A Night at the Opera",
|
||||
"originalTitle": "A Night at the Opera",
|
||||
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
|
||||
"releaseType": "Album",
|
||||
"releaseStatus": "Official",
|
||||
"totalDiscs": 1,
|
||||
"totalTracks": 12,
|
||||
"mediaFormat": "CD",
|
||||
"barcode": "0042282778329",
|
||||
"catalogNumber": "EMC 4008",
|
||||
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
||||
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
|
||||
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null,
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"originalReleaseDate": "1975-11-21",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Remastered",
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"languageNativeName": "English",
|
||||
"originalLanguageCode": "en",
|
||||
"originalLanguageName": "English",
|
||||
"originalLanguageNativeName": "English",
|
||||
"genres": [
|
||||
{
|
||||
"name": "Rock"
|
||||
},
|
||||
{
|
||||
"name": "Progressive Rock"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
{
|
||||
"name": "classic"
|
||||
},
|
||||
{
|
||||
"name": "vinyl"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Update Album
|
||||
|
||||
#### Update Album Request
|
||||
|
||||
```js
|
||||
PUT api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"metadata": {
|
||||
"title": "A Night at the Opera",
|
||||
"originalTitle": "A Night at the Opera",
|
||||
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1975-11-21",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Remastered"
|
||||
},
|
||||
"releaseType": "Album",
|
||||
"releaseStatus": "Official",
|
||||
"totalDiscs": 1,
|
||||
"totalTracks": 12,
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "vinyl" }
|
||||
]
|
||||
},
|
||||
"mediaFormat": "CD",
|
||||
"barcode": "0042282778329",
|
||||
"catalogNumber": "EMC 4008",
|
||||
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
||||
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
|
||||
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
|
||||
"credits": [
|
||||
{ "contributorId": "0e7b4a6c-5f8d-6b9e-ca0b-3c4d5e6f7a8b", "role": "Producer" },
|
||||
{ "contributorId": "1a8c5b7d-6a9e-7c0f-db1c-4d5e6f7a8b9c", "role": "Engineer" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Update Album Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
The response carries the full details of the updated album, using the same shape as the [Get Album Response](#get-album-response).
|
||||
|
||||
|
||||
### Delete Album
|
||||
|
||||
```js
|
||||
DELETE api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f
|
||||
```
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
Deletes the album identified by the path, together with its tracks.
|
||||
|
||||
@@ -0,0 +1,433 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Artist](#artist)
|
||||
- [Add Artist](#add-artist)
|
||||
- [Add Artist Request](#add-artist-request)
|
||||
- [Add Artist Response](#add-artist-response)
|
||||
- [Get Artists](#get-artists)
|
||||
- [Get Artists Request](#get-artists-request)
|
||||
- [Get Artists Response](#get-artists-response)
|
||||
- [Get Artists Lite](#get-artists-lite)
|
||||
- [Get Artists Lite Request](#get-artists-lite-request)
|
||||
- [Get Artists Lite Response](#get-artists-lite-response)
|
||||
- [Get Artist](#get-artist)
|
||||
- [Get Artist Request](#get-artist-request)
|
||||
- [Get Artist Response](#get-artist-response)
|
||||
- [Update Artist](#update-artist)
|
||||
- [Update Artist Request](#update-artist-request)
|
||||
- [Update Artist Response](#update-artist-response)
|
||||
- [Delete Artist](#delete-artist)
|
||||
|
||||
## Artist
|
||||
|
||||
### Add Artist
|
||||
|
||||
#### Add Artist Request
|
||||
|
||||
```js
|
||||
POST api/v1/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "Queen",
|
||||
"website": "https://www.queenonline.com",
|
||||
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
|
||||
"credits": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
|
||||
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
|
||||
],
|
||||
"albums": [
|
||||
{
|
||||
"metadata": {
|
||||
"title": "A Night at the Opera",
|
||||
"originalTitle": "A Night at the Opera",
|
||||
"description": "The fourth studio album by the British rock band Queen, released in 1975. It was the most expensive album ever recorded at the time of its release.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1975-11-21",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Remastered"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "vinyl" }
|
||||
],
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"releaseType": "Album",
|
||||
"releaseStatus": "Official",
|
||||
"totalDiscs": 1,
|
||||
"totalTracks": 12
|
||||
},
|
||||
"mediaFormat": "CD",
|
||||
"barcode": "0042282778329",
|
||||
"catalogNumber": "EMC 4008",
|
||||
"musicBrainzReleaseId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
||||
"musicBrainzReleaseGroupId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
|
||||
"musicBrainzReleaseArtistId": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
|
||||
"credits": [
|
||||
{ "contributorId": "0e7b4a6c-5f8d-6b9e-ca0b-3c4d5e6f7a8b", "role": "Producer" },
|
||||
{ "contributorId": "1a8c5b7d-6a9e-7c0f-db1c-4d5e6f7a8b9c", "role": "Engineer" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"tracks": [
|
||||
{
|
||||
"path": "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
"metadata": {
|
||||
"title": "Bohemian Rhapsody",
|
||||
"originalTitle": "Bohemian Rhapsody",
|
||||
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1975-10-31",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Original"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "epic" }
|
||||
],
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"durationInSeconds": 354,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 980
|
||||
},
|
||||
"trackNumber": 1,
|
||||
"discNumber": 1,
|
||||
"script": "Latn",
|
||||
"key": "CMajor",
|
||||
"bpm": 72,
|
||||
"work": "Bohemian Rhapsody",
|
||||
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
|
||||
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
|
||||
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
|
||||
"moods": [
|
||||
{ "name": "dramatic" },
|
||||
{ "name": "anxious" }
|
||||
],
|
||||
"isrcs": [
|
||||
{ "value": "GBUM71029604" }
|
||||
],
|
||||
"credits": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
|
||||
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "/music/queen/a-night-at-the-opera/07-youre-my-best-friend.flac",
|
||||
"metadata": {
|
||||
"title": "You're My Best Friend",
|
||||
"originalTitle": "You're My Best Friend",
|
||||
"description": "A song by the British rock band Queen, written by bass guitarist John Deacon. It was originally released on the album A Night at the Opera in 1975 and as a single in 1976.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1976-06-18",
|
||||
"originalReleaseYear": 1976,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Original"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "love" }
|
||||
],
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Pop Rock" }
|
||||
],
|
||||
"durationInSeconds": 181,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 912
|
||||
},
|
||||
"trackNumber": 7,
|
||||
"discNumber": 1,
|
||||
"script": "Latn",
|
||||
"key": "BMajor",
|
||||
"bpm": 118,
|
||||
"work": "You're My Best Friend",
|
||||
"musicBrainzRecordingId": "0f3e4d5c-6b7a-4f8e-9d0c-1b2a3c4d5e6f",
|
||||
"musicBrainzTrackId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
|
||||
"musicBrainzWorkId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
|
||||
"moods": [
|
||||
{ "name": "happy" },
|
||||
{ "name": "warm" }
|
||||
],
|
||||
"isrcs": [
|
||||
{ "value": "GBUM71029609" }
|
||||
],
|
||||
"credits": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
|
||||
{ "contributorId": "8c5f2e4a-3d6b-4f7c-ae8f-1a2b3c4d5e6f", "role": "BassGuitar" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.2,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 1234
|
||||
},
|
||||
{
|
||||
"value": 4.4,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 567
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Add Artist Response
|
||||
|
||||
```js
|
||||
201 Created
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"name": "Queen",
|
||||
"website": "https://www.queenonline.com",
|
||||
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Get Artists
|
||||
|
||||
#### Get Artists Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage=1&perPage=10&searchTerm=queen
|
||||
```
|
||||
|
||||
| Query Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `libraryId` | `string` (GUID) | Required. The Id of the media library whose artists are retrieved. |
|
||||
| `currentPage` | `int` | Optional. The page of results to retrieve. |
|
||||
| `perPage` | `int` | Optional. The maximum number of artists to retrieve per page. |
|
||||
| `searchTerm` | `string` | Optional. The search term used to filter the artists by name. |
|
||||
|
||||
#### Get Artists Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"name": "Queen",
|
||||
"website": "https://www.queenonline.com",
|
||||
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
],
|
||||
"currentPage": 1,
|
||||
"perPage": 10,
|
||||
"count": 1,
|
||||
"numberOfPages": 1
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Get Artists Lite
|
||||
|
||||
#### Get Artists Lite Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists/lite?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage=1&perPage=10&searchTerm=queen
|
||||
```
|
||||
|
||||
| Query Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `libraryId` | `string` (GUID) | Required. The Id of the media library whose artists are retrieved. |
|
||||
| `currentPage` | `int` | Optional. The page of results to retrieve. |
|
||||
| `perPage` | `int` | Optional. The maximum number of artists to retrieve per page. |
|
||||
| `searchTerm` | `string` | Optional. The search term used to filter the artists by name. |
|
||||
|
||||
#### Get Artists Lite Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"name": "Queen"
|
||||
}
|
||||
],
|
||||
"currentPage": 1,
|
||||
"perPage": 10,
|
||||
"count": 1,
|
||||
"numberOfPages": 1
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Get Artist
|
||||
|
||||
#### Get Artist Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a
|
||||
```
|
||||
|
||||
#### Get Artist Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"name": "Queen",
|
||||
"website": "https://www.queenonline.com",
|
||||
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Update Artist
|
||||
|
||||
#### Update Artist Request
|
||||
|
||||
```js
|
||||
PUT api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"name": "Queen",
|
||||
"website": "https://www.queenonline.com",
|
||||
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
|
||||
"credits": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
|
||||
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Update Artist Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"name": "Queen",
|
||||
"website": "https://www.queenonline.com",
|
||||
"musicBrainzArtistId": "6f9c0b2a-1d3e-4a5b-8c7d-9e0f1a2b3c4d",
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": "2025-02-01T12:00:00.0000000Z"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Delete Artist
|
||||
|
||||
```js
|
||||
DELETE api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a
|
||||
```
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
Deletes the artist identified by the path, together with its albums and tracks.
|
||||
|
||||
@@ -0,0 +1,464 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Track](#track)
|
||||
- [Get Album Tracks](#get-album-tracks)
|
||||
- [Get Album Tracks Request](#get-album-tracks-request)
|
||||
- [Get Album Tracks Response](#get-album-tracks-response)
|
||||
- [Get Album Tracks Lite](#get-album-tracks-lite)
|
||||
- [Get Album Tracks Lite Request](#get-album-tracks-lite-request)
|
||||
- [Get Album Tracks Lite Response](#get-album-tracks-lite-response)
|
||||
- [Add Track](#add-track)
|
||||
- [Add Track Request](#add-track-request)
|
||||
- [Add Track Response](#add-track-response)
|
||||
- [Get Track](#get-track)
|
||||
- [Get Track Request](#get-track-request)
|
||||
- [Get Track Response](#get-track-response)
|
||||
- [Update Track](#update-track)
|
||||
- [Update Track Request](#update-track-request)
|
||||
- [Update Track Response](#update-track-response)
|
||||
- [Delete Track](#delete-track)
|
||||
|
||||
## Track
|
||||
|
||||
### Get Album Tracks
|
||||
|
||||
#### Get Album Tracks Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks
|
||||
```
|
||||
|
||||
#### Get Album Tracks Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f",
|
||||
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"path": "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
"title": "Bohemian Rhapsody",
|
||||
"originalTitle": "Bohemian Rhapsody",
|
||||
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||
"trackNumber": 1,
|
||||
"discNumber": 1,
|
||||
"script": "Latn",
|
||||
"key": "CMajor",
|
||||
"bpm": 72,
|
||||
"work": "Bohemian Rhapsody",
|
||||
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
|
||||
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
|
||||
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null,
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"durationInSeconds": 354,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 980,
|
||||
"originalReleaseDate": "1975-10-31",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Original",
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"languageNativeName": "English",
|
||||
"originalLanguageCode": "en",
|
||||
"originalLanguageName": "English",
|
||||
"originalLanguageNativeName": "English",
|
||||
"genres": [
|
||||
{
|
||||
"name": "Rock"
|
||||
},
|
||||
{
|
||||
"name": "Progressive Rock"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
{
|
||||
"name": "classic"
|
||||
},
|
||||
{
|
||||
"name": "epic"
|
||||
}
|
||||
],
|
||||
"moods": [
|
||||
{
|
||||
"name": "dramatic"
|
||||
},
|
||||
{
|
||||
"name": "anxious"
|
||||
}
|
||||
],
|
||||
"isrcs": [
|
||||
{
|
||||
"value": "GBUM71029604"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
### Get Album Tracks Lite
|
||||
|
||||
#### Get Album Tracks Lite Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/lite?currentPage=1&perPage=10
|
||||
```
|
||||
|
||||
| Query Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `currentPage` | `int` | Optional. The page of results to retrieve. |
|
||||
| `perPage` | `int` | Optional. The maximum number of tracks to retrieve per page. |
|
||||
|
||||
#### Get Album Tracks Lite Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": "9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f",
|
||||
"title": "Bohemian Rhapsody",
|
||||
"trackNumber": 1,
|
||||
"discNumber": 1
|
||||
}
|
||||
],
|
||||
"currentPage": 1,
|
||||
"perPage": 10,
|
||||
"count": 1,
|
||||
"numberOfPages": 1
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Add Track
|
||||
|
||||
#### Add Track Request
|
||||
|
||||
```js
|
||||
POST api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"path": "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
"metadata": {
|
||||
"title": "Bohemian Rhapsody",
|
||||
"originalTitle": "Bohemian Rhapsody",
|
||||
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||
"durationInSeconds": 354,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 980,
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1975-10-31",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Original"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "epic" }
|
||||
]
|
||||
},
|
||||
"trackNumber": 1,
|
||||
"discNumber": 1,
|
||||
"script": "Latn",
|
||||
"key": "CMajor",
|
||||
"bpm": 72,
|
||||
"work": "Bohemian Rhapsody",
|
||||
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
|
||||
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
|
||||
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
|
||||
"credits": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
|
||||
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"moods": [
|
||||
{ "name": "dramatic" },
|
||||
{ "name": "anxious" }
|
||||
],
|
||||
"isrcs": [
|
||||
{ "value": "GBUM71029604" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Add Track Response
|
||||
|
||||
```js
|
||||
201 Created
|
||||
```
|
||||
|
||||
The response carries the full details of the newly created track, using the same shape as the [Get Track Response](#get-track-response).
|
||||
|
||||
|
||||
### Get Track
|
||||
|
||||
#### Get Track Request
|
||||
|
||||
```js
|
||||
GET api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f
|
||||
```
|
||||
|
||||
#### Get Track Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f",
|
||||
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"path": "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
"title": "Bohemian Rhapsody",
|
||||
"originalTitle": "Bohemian Rhapsody",
|
||||
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||
"trackNumber": 1,
|
||||
"discNumber": 1,
|
||||
"script": "Latn",
|
||||
"key": "CMajor",
|
||||
"bpm": 72,
|
||||
"work": "Bohemian Rhapsody",
|
||||
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
|
||||
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
|
||||
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null,
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"durationInSeconds": 354,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 980,
|
||||
"originalReleaseDate": "1975-10-31",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Original",
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"languageNativeName": "English",
|
||||
"originalLanguageCode": "en",
|
||||
"originalLanguageName": "English",
|
||||
"originalLanguageNativeName": "English",
|
||||
"genres": [
|
||||
{
|
||||
"name": "Rock"
|
||||
},
|
||||
{
|
||||
"name": "Progressive Rock"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
{
|
||||
"name": "classic"
|
||||
},
|
||||
{
|
||||
"name": "epic"
|
||||
}
|
||||
],
|
||||
"moods": [
|
||||
{
|
||||
"name": "dramatic"
|
||||
},
|
||||
{
|
||||
"name": "anxious"
|
||||
}
|
||||
],
|
||||
"isrcs": [
|
||||
{
|
||||
"value": "GBUM71029604"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Update Track
|
||||
|
||||
#### Update Track Request
|
||||
|
||||
```js
|
||||
PUT api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"artistId": "d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a",
|
||||
"albumId": "e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f",
|
||||
"trackId": "9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f",
|
||||
"path": "/music/queen/a-night-at-the-opera/01-bohemian-rhapsody.flac",
|
||||
"metadata": {
|
||||
"title": "Bohemian Rhapsody",
|
||||
"originalTitle": "Bohemian Rhapsody",
|
||||
"description": "A song by the British rock band Queen. It was written by Freddie Mercury and originally released on the album A Night at the Opera in 1975.",
|
||||
"durationInSeconds": 354,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 980,
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1975-10-31",
|
||||
"originalReleaseYear": 1975,
|
||||
"reReleaseDate": null,
|
||||
"reReleaseYear": null,
|
||||
"releaseCountry": "GB",
|
||||
"releaseVersion": "Original"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "epic" }
|
||||
]
|
||||
},
|
||||
"trackNumber": 1,
|
||||
"discNumber": 1,
|
||||
"script": "Latn",
|
||||
"key": "CMajor",
|
||||
"bpm": 72,
|
||||
"work": "Bohemian Rhapsody",
|
||||
"musicBrainzRecordingId": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
|
||||
"musicBrainzTrackId": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
|
||||
"musicBrainzWorkId": "f6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0c",
|
||||
"credits": [
|
||||
{ "contributorId": "6a3f0c2d-1b4e-4f5a-8c6d-9e0f1a2b3c4d", "role": "Vocals" },
|
||||
{ "contributorId": "7b4e1d3f-2c5a-4e6b-9d7e-0f1a2b3c4d5e", "role": "Guitar" }
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"moods": [
|
||||
{ "name": "dramatic" },
|
||||
{ "name": "anxious" }
|
||||
],
|
||||
"isrcs": [
|
||||
{ "value": "GBUM71029604" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Update Track Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
The response carries the full details of the updated track, using the same shape as the [Get Track Response](#get-track-response).
|
||||
|
||||
|
||||
### Delete Track
|
||||
|
||||
```js
|
||||
DELETE api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f
|
||||
```
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
Deletes the track identified by the path.
|
||||
@@ -0,0 +1,402 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Library](#library)
|
||||
- [Add Library](#add-library)
|
||||
- [Add Library Request](#add-library-request)
|
||||
- [Add Library Response](#add-library-response)
|
||||
- [Get Libraries](#get-libraries)
|
||||
- [Get Libraries Request](#get-libraries-request)
|
||||
- [Get Libraries Response](#get-libraries-response)
|
||||
- [Get Enabled Libraries](#get-enabled-libraries)
|
||||
- [Get Enabled Libraries Request](#get-enabled-libraries-request)
|
||||
- [Get Enabled Libraries Response](#get-enabled-libraries-response)
|
||||
- [Get Library](#get-library)
|
||||
- [Get Library Request](#get-library-request)
|
||||
- [Get Library Response](#get-library-response)
|
||||
- [Update Library](#update-library)
|
||||
- [Update Library Request](#update-library-request)
|
||||
- [Update Library Response](#update-library-response)
|
||||
- [Delete Library](#delete-library)
|
||||
- [Delete Library Request](#delete-library-request)
|
||||
- [Delete Library Response](#delete-library-response)
|
||||
- [Scan Libraries](#scan-libraries)
|
||||
- [Scan Libraries Request](#scan-libraries-request)
|
||||
- [Scan Libraries Response](#scan-libraries-response)
|
||||
- [Scan Library](#scan-library)
|
||||
- [Scan Library Request](#scan-library-request)
|
||||
- [Scan Library Response](#scan-library-response)
|
||||
- [Get Running Library Scans](#get-running-library-scans)
|
||||
- [Get Running Library Scans Request](#get-running-library-scans-request)
|
||||
- [Get Running Library Scans Response](#get-running-library-scans-response)
|
||||
- [Get Library Scan Progress](#get-library-scan-progress)
|
||||
- [Get Library Scan Progress Request](#get-library-scan-progress-request)
|
||||
- [Get Library Scan Progress Response](#get-library-scan-progress-response)
|
||||
- [Cancel Libraries Scan](#cancel-libraries-scan)
|
||||
- [Cancel Libraries Scan Request](#cancel-libraries-scan-request)
|
||||
- [Cancel Libraries Scan Response](#cancel-libraries-scan-response)
|
||||
- [Cancel Library Scan](#cancel-library-scan)
|
||||
- [Cancel Library Scan Request](#cancel-library-scan-request)
|
||||
- [Cancel Library Scan Response](#cancel-library-scan-response)
|
||||
|
||||
## Library
|
||||
|
||||
### Add Library
|
||||
|
||||
#### Add Library Request
|
||||
|
||||
```js
|
||||
POST api/v1/libraries
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"title": "Books",
|
||||
"libraryType": "Book",
|
||||
"contentLocations": [
|
||||
"/media/books"
|
||||
],
|
||||
"coverImage": null,
|
||||
"isEnabled": true,
|
||||
"isLocked": false,
|
||||
"downloadMetadataFromWeb": true,
|
||||
"shouldSaveMetadataInMediaDirectories": true,
|
||||
"shouldSkipUnchangedDirectoriesDuringScan": true
|
||||
}
|
||||
```
|
||||
|
||||
#### Add Library Response
|
||||
|
||||
```js
|
||||
201 Created
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
|
||||
"title": "Books",
|
||||
"libraryType": "Book",
|
||||
"contentLocations": [
|
||||
"/media/books"
|
||||
],
|
||||
"coverImage": null,
|
||||
"isEnabled": true,
|
||||
"isLocked": false,
|
||||
"downloadMetadataFromWeb": true,
|
||||
"shouldSaveMetadataInMediaDirectories": true,
|
||||
"shouldSkipUnchangedDirectoriesDuringScan": true,
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
```
|
||||
|
||||
### Get Libraries
|
||||
|
||||
#### Get Libraries Request
|
||||
|
||||
```js
|
||||
GET api/v1/libraries
|
||||
```
|
||||
|
||||
#### Get Libraries Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
|
||||
"title": "Books",
|
||||
"libraryType": "Book",
|
||||
"contentLocations": [
|
||||
"/media/books"
|
||||
],
|
||||
"coverImage": null,
|
||||
"isEnabled": true,
|
||||
"isLocked": false,
|
||||
"downloadMetadataFromWeb": true,
|
||||
"shouldSaveMetadataInMediaDirectories": true,
|
||||
"shouldSkipUnchangedDirectoriesDuringScan": true,
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Get Enabled Libraries
|
||||
|
||||
#### Get Enabled Libraries Request
|
||||
|
||||
```js
|
||||
GET api/v1/libraries/enabled
|
||||
```
|
||||
|
||||
#### Get Enabled Libraries Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
|
||||
"title": "Books",
|
||||
"libraryType": "Book",
|
||||
"contentLocations": [
|
||||
"/media/books"
|
||||
],
|
||||
"coverImage": null,
|
||||
"isEnabled": true,
|
||||
"isLocked": false,
|
||||
"downloadMetadataFromWeb": true,
|
||||
"shouldSaveMetadataInMediaDirectories": true,
|
||||
"shouldSkipUnchangedDirectoriesDuringScan": true,
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Get Library
|
||||
|
||||
#### Get Library Request
|
||||
|
||||
```js
|
||||
GET api/v1/libraries/{id}
|
||||
```
|
||||
|
||||
#### Get Library Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
|
||||
"title": "Books",
|
||||
"libraryType": "Book",
|
||||
"contentLocations": [
|
||||
"/media/books"
|
||||
],
|
||||
"coverImage": null,
|
||||
"isEnabled": true,
|
||||
"isLocked": false,
|
||||
"downloadMetadataFromWeb": true,
|
||||
"shouldSaveMetadataInMediaDirectories": true,
|
||||
"shouldSkipUnchangedDirectoriesDuringScan": true,
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
```
|
||||
|
||||
### Update Library
|
||||
|
||||
#### Update Library Request
|
||||
|
||||
```js
|
||||
PUT api/v1/libraries/{id}
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
|
||||
"title": "Books",
|
||||
"libraryType": "Book",
|
||||
"contentLocations": [
|
||||
"/media/books"
|
||||
],
|
||||
"coverImage": null,
|
||||
"isEnabled": true,
|
||||
"isLocked": false,
|
||||
"downloadMetadataFromWeb": true,
|
||||
"shouldSaveMetadataInMediaDirectories": true,
|
||||
"shouldSkipUnchangedDirectoriesDuringScan": true
|
||||
}
|
||||
```
|
||||
|
||||
#### Update Library Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
|
||||
"title": "Books",
|
||||
"libraryType": "Book",
|
||||
"contentLocations": [
|
||||
"/media/books"
|
||||
],
|
||||
"coverImage": null,
|
||||
"isEnabled": true,
|
||||
"isLocked": false,
|
||||
"downloadMetadataFromWeb": true,
|
||||
"shouldSaveMetadataInMediaDirectories": true,
|
||||
"shouldSkipUnchangedDirectoriesDuringScan": true,
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
```
|
||||
|
||||
### Delete Library
|
||||
|
||||
#### Delete Library Request
|
||||
|
||||
```js
|
||||
DELETE api/v1/libraries/{id}
|
||||
```
|
||||
|
||||
#### Delete Library Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
### Scan Libraries
|
||||
|
||||
#### Scan Libraries Request
|
||||
|
||||
```js
|
||||
POST api/v1/libraries/scans
|
||||
```
|
||||
|
||||
#### Scan Libraries Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"scanId": "e7a2c9f4-6b3d-4f80-9e3a-2c1b0d8a4f56",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Scan Library
|
||||
|
||||
#### Scan Library Request
|
||||
|
||||
```js
|
||||
POST api/v1/libraries/{id}/scans
|
||||
```
|
||||
|
||||
#### Scan Library Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"scanId": "e7a2c9f4-6b3d-4f80-9e3a-2c1b0d8a4f56",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a"
|
||||
}
|
||||
```
|
||||
|
||||
### Get Running Library Scans
|
||||
|
||||
#### Get Running Library Scans Request
|
||||
|
||||
```js
|
||||
GET api/v1/libraries/scans/running
|
||||
```
|
||||
|
||||
#### Get Running Library Scans Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"scanId": "e7a2c9f4-6b3d-4f80-9e3a-2c1b0d8a4f56",
|
||||
"userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"totalJobs": 5,
|
||||
"completedJobs": 2,
|
||||
"currentJobProgress": {
|
||||
"completedItems": 10,
|
||||
"totalItems": 50,
|
||||
"currentOperation": "Reading file system",
|
||||
"progressPercentage": 20.0
|
||||
},
|
||||
"status": "Running",
|
||||
"overallProgressPercentage": 40.0
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Get Library Scan Progress
|
||||
|
||||
#### Get Library Scan Progress Request
|
||||
|
||||
```js
|
||||
GET api/v1/libraries/{libraryId}/scans/{scanId}/progress
|
||||
```
|
||||
|
||||
#### Get Library Scan Progress Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"scanId": "e7a2c9f4-6b3d-4f80-9e3a-2c1b0d8a4f56",
|
||||
"userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"totalJobs": 5,
|
||||
"completedJobs": 2,
|
||||
"currentJobProgress": {
|
||||
"completedItems": 10,
|
||||
"totalItems": 50,
|
||||
"currentOperation": "Reading file system",
|
||||
"progressPercentage": 20.0
|
||||
},
|
||||
"status": "Running",
|
||||
"overallProgressPercentage": 40.0
|
||||
}
|
||||
```
|
||||
|
||||
### Cancel Libraries Scan
|
||||
|
||||
#### Cancel Libraries Scan Request
|
||||
|
||||
```js
|
||||
POST api/v1/libraries/scans/cancel
|
||||
```
|
||||
|
||||
#### Cancel Libraries Scan Response
|
||||
|
||||
```js
|
||||
204 No Content
|
||||
```
|
||||
|
||||
### Cancel Library Scan
|
||||
|
||||
#### Cancel Library Scan Request
|
||||
|
||||
```js
|
||||
POST api/v1/libraries/{libraryId}/scans/{scanId}/cancel
|
||||
```
|
||||
|
||||
#### Cancel Library Scan Response
|
||||
|
||||
```js
|
||||
204 No Content
|
||||
```
|
||||
@@ -0,0 +1,523 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Book](#book)
|
||||
- [Add Book](#add-book)
|
||||
- [Add Book Request](#add-book-request)
|
||||
- [Add Book Response](#add-book-response)
|
||||
- [Get Book](#get-book)
|
||||
- [Get Book Request](#get-book-request)
|
||||
- [Get Book Response](#get-book-response)
|
||||
- [Get Books](#get-books)
|
||||
- [Get Books Request](#get-books-request)
|
||||
- [Get Books Response](#get-books-response)
|
||||
- [Get Books Lite](#get-books-lite)
|
||||
- [Get Books Lite Request](#get-books-lite-request)
|
||||
- [Get Books Lite Response](#get-books-lite-response)
|
||||
- [Get Reading Availability](#get-reading-availability)
|
||||
- [Get Reading Availability Request](#get-reading-availability-request)
|
||||
- [Get Reading Availability Response](#get-reading-availability-response)
|
||||
- [Get Reading Manifest](#get-reading-manifest)
|
||||
- [Get Reading Manifest Request](#get-reading-manifest-request)
|
||||
- [Get Reading Manifest Response](#get-reading-manifest-response)
|
||||
- [Get Reading Resource](#get-reading-resource)
|
||||
- [Get Reading Resource Request](#get-reading-resource-request)
|
||||
- [Get Reading Resource Response](#get-reading-resource-response)
|
||||
- [Get Reading Section](#get-reading-section)
|
||||
- [Get Reading Section Request](#get-reading-section-request)
|
||||
- [Get Reading Section Response](#get-reading-section-response)
|
||||
|
||||
## Book
|
||||
|
||||
### Add Book
|
||||
|
||||
#### Add Book Request
|
||||
|
||||
```js
|
||||
POST api/v1/books
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"path": "/books/the-fellowship-of-the-ring.pdf",
|
||||
"metadata": {
|
||||
"title": "The Fellowship of the Ring",
|
||||
"originalTitle": "The Fellowship of the Ring",
|
||||
"description": "The first part of J.R.R. Tolkien's epic adventure The Lord of the Rings. In a sleepy village in the Shire, young Frodo Baggins finds himself faced with an immense task, as his elderly cousin Bilbo entrusts the Ring to his care. Frodo must leave his home and make a perilous journey across Middle-earth to the Cracks of Doom, there to destroy the Ring and foil the Dark Lord in his evil purpose.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1954-07-29",
|
||||
"originalReleaseYear": 1954,
|
||||
"reReleaseDate": "2001-09-06",
|
||||
"reReleaseYear": 2001,
|
||||
"releaseCountry": "uk",
|
||||
"releaseVersion": "50th Anniversary Edition"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "fantasy" },
|
||||
{ "name": "adventure" },
|
||||
{ "name": "classic" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "epic fantasy" },
|
||||
{ "name": "quest" },
|
||||
{ "name": "middle-earth" }
|
||||
],
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"publisher": "Houghton Mifflin",
|
||||
"pageCount": 398
|
||||
},
|
||||
"format": "Paperback",
|
||||
"edition": "50th Anniversary Edition",
|
||||
"volumeNumber": 1,
|
||||
"series": {
|
||||
"title": "The Lord of the Rings"
|
||||
},
|
||||
"asin": "B007978NPG",
|
||||
"goodreadsId": "3",
|
||||
"lccn": "54009621",
|
||||
"oclcNumber": "ocm00012345",
|
||||
"openLibraryId": "OL7603910M",
|
||||
"libraryThingId": "3203347",
|
||||
"googleBooksId": "aWZzLPhY4o0C",
|
||||
"barnesAndNobleId": "1100307790",
|
||||
"appleBooksId": "id395211",
|
||||
"isbns": [
|
||||
{
|
||||
"value": "0395272238",
|
||||
"format": "Isbn10"
|
||||
},
|
||||
{
|
||||
"value": "9780395272237",
|
||||
"format": "Isbn13"
|
||||
}
|
||||
],
|
||||
"contributors": [
|
||||
{
|
||||
"name": {
|
||||
"displayName": "J.R.R. Tolkien"
|
||||
},
|
||||
"role": "Author"
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"displayName": "Alan Lee"
|
||||
},
|
||||
"role": "Illustrator"
|
||||
}
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"source": "Goodreads",
|
||||
"value": 4.36,
|
||||
"maxValue": 5,
|
||||
"voteCount": 2345678
|
||||
},
|
||||
{
|
||||
"source": "Amazon",
|
||||
"value": 4.7,
|
||||
"maxValue": 5,
|
||||
"voteCount": 87654
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Add Book Response
|
||||
|
||||
```js
|
||||
201 Created
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "32b336e8-dafc-4a08-9dec-9454e66dd55d",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"path": "/books/the-fellowship-of-the-ring.pdf",
|
||||
"metadata": {
|
||||
"publisher": "Houghton Mifflin",
|
||||
"pageCount": 398,
|
||||
"title": "The Fellowship of the Ring",
|
||||
"originalTitle": "The Fellowship of the Ring",
|
||||
"description": "The first part of J.R.R. Tolkien's epic adventure The Lord of the Rings. In a sleepy village in the Shire, young Frodo Baggins finds himself faced with an immense task, as his elderly cousin Bilbo entrusts the Ring to his care. Frodo must leave his home and make a perilous journey across Middle-earth to the Cracks of Doom, there to destroy the Ring and foil the Dark Lord in his evil purpose.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1954-07-29",
|
||||
"originalReleaseYear": 1954,
|
||||
"reReleaseDate": "2001-09-06",
|
||||
"reReleaseYear": 2001,
|
||||
"releaseCountry": "uk",
|
||||
"releaseVersion": "50th Anniversary Edition"
|
||||
},
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "epic fantasy"
|
||||
},
|
||||
{
|
||||
"name": "quest"
|
||||
},
|
||||
{
|
||||
"name": "middle-earth"
|
||||
}
|
||||
],
|
||||
"genres": [
|
||||
{
|
||||
"name": "fantasy"
|
||||
},
|
||||
{
|
||||
"name": "adventure"
|
||||
},
|
||||
{
|
||||
"name": "classic"
|
||||
}
|
||||
]
|
||||
},
|
||||
"format": "Paperback",
|
||||
"edition": "50th Anniversary Edition",
|
||||
"volumeNumber": 1,
|
||||
"series": null,
|
||||
"asin": "B007978NPG",
|
||||
"goodreadsId": "3",
|
||||
"lccn": "54009621",
|
||||
"oclcNumber": "ocm00012345",
|
||||
"openLibraryId": "OL7603910M",
|
||||
"libraryThingId": "3203347",
|
||||
"googleBooksId": "aWZzLPhY4o0C",
|
||||
"barnesAndNobleId": "1100307790",
|
||||
"appleBooksId": "id395211",
|
||||
"isbns": [
|
||||
{
|
||||
"value": "0395272238",
|
||||
"format": "Isbn10"
|
||||
},
|
||||
{
|
||||
"value": "9780395272237",
|
||||
"format": "Isbn13"
|
||||
}
|
||||
],
|
||||
"contributors": [],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.36,
|
||||
"maxValue": 5,
|
||||
"voteCount": 2345678
|
||||
},
|
||||
{
|
||||
"value": 4.7,
|
||||
"maxValue": 5,
|
||||
"voteCount": 87654
|
||||
}
|
||||
],
|
||||
"metadataStatus": "Pending",
|
||||
"lastMetadataUpdateUtc": null,
|
||||
"metadataProvider": null,
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
```
|
||||
|
||||
### Get Book
|
||||
|
||||
#### Get Book Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{id}
|
||||
```
|
||||
|
||||
#### Get Book Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
Returns an empty response. This endpoint is not yet implemented.
|
||||
|
||||
### Get Books
|
||||
|
||||
#### Get Books Request
|
||||
|
||||
```js
|
||||
GET api/v1/books?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage=1&perPage=10&searchTerm=fellowship&sortBy=title&sortOrder=Ascending
|
||||
```
|
||||
|
||||
| Query Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `libraryId` | `string` (GUID) | Required. The Id of the media library whose books are retrieved. |
|
||||
| `currentPage` | `int` | Optional. The page of results to retrieve. |
|
||||
| `perPage` | `int` | Optional. The maximum number of books to retrieve per page. |
|
||||
| `searchTerm` | `string` | Optional. The search term used to filter results. |
|
||||
| `sortBy` | `string` | Optional. The name of the field by which to sort the results. |
|
||||
| `sortOrder` | `string` | Optional. The direction in which to sort the results (`Ascending` or `Descending`). |
|
||||
|
||||
#### Get Books Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": "32b336e8-dafc-4a08-9dec-9454e66dd55d",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"path": "/books/the-fellowship-of-the-ring.pdf",
|
||||
"metadata": {
|
||||
"title": "The Fellowship of the Ring",
|
||||
"originalTitle": "The Fellowship of the Ring",
|
||||
"description": "The first part of J.R.R. Tolkien's epic adventure The Lord of the Rings.",
|
||||
"releaseInfo": {
|
||||
"originalReleaseDate": "1954-07-29",
|
||||
"originalReleaseYear": 1954,
|
||||
"reReleaseDate": "2001-09-06",
|
||||
"reReleaseYear": 2001,
|
||||
"releaseCountry": "uk",
|
||||
"releaseVersion": "50th Anniversary Edition"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "fantasy" },
|
||||
{ "name": "adventure" },
|
||||
{ "name": "classic" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "epic fantasy" },
|
||||
{ "name": "quest" },
|
||||
{ "name": "middle-earth" }
|
||||
],
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"publisher": "Houghton Mifflin",
|
||||
"pageCount": 398
|
||||
},
|
||||
"format": "Paperback",
|
||||
"edition": "50th Anniversary Edition",
|
||||
"volumeNumber": 1,
|
||||
"series": {
|
||||
"title": "The Lord of the Rings"
|
||||
},
|
||||
"asin": "B007978NPG",
|
||||
"goodreadsId": "3",
|
||||
"lccn": "54009621",
|
||||
"oclcNumber": "ocm00012345",
|
||||
"openLibraryId": "OL7603910M",
|
||||
"libraryThingId": "3203347",
|
||||
"googleBooksId": "aWZzLPhY4o0C",
|
||||
"barnesAndNobleId": "1100307790",
|
||||
"appleBooksId": "id395211",
|
||||
"isbns": [
|
||||
{
|
||||
"value": "0395272238",
|
||||
"format": "Isbn10"
|
||||
},
|
||||
{
|
||||
"value": "9780395272237",
|
||||
"format": "Isbn13"
|
||||
}
|
||||
],
|
||||
"contributors": [],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.36,
|
||||
"maxValue": 5,
|
||||
"voteCount": 2345678
|
||||
}
|
||||
],
|
||||
"metadataStatus": "Pending",
|
||||
"lastMetadataUpdateUtc": null,
|
||||
"metadataProvider": null,
|
||||
"createdOnUtc": "2025-01-01T12:00:00.0000000Z",
|
||||
"updatedOnUtc": null
|
||||
}
|
||||
],
|
||||
"currentPage": 1,
|
||||
"perPage": 10,
|
||||
"count": 1,
|
||||
"numberOfPages": 1
|
||||
}
|
||||
```
|
||||
|
||||
### Get Books Lite
|
||||
|
||||
#### Get Books Lite Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/lite?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage=1&perPage=10&searchTerm=fellowship&filterAlphaKey=f&ignoreThePrefixForAlphaPicker=true&sortBy=title&sortOrder=Ascending
|
||||
```
|
||||
|
||||
| Query Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `libraryId` | `string` (GUID) | Required. The Id of the media library whose books are retrieved. |
|
||||
| `currentPage` | `int` | Optional. The page of results to retrieve. |
|
||||
| `perPage` | `int` | Optional. The maximum number of books to retrieve per page. |
|
||||
| `searchTerm` | `string` | Optional. The search term used to filter results. |
|
||||
| `filterAlphaKey` | `string` | Optional. Filters results by the first character of their title. A single ASCII letter (case-insensitive), `#` for titles starting with a digit, or `*` for titles starting with any other character. |
|
||||
| `ignoreThePrefixForAlphaPicker` | `bool` | Whether the leading "The " prefix of a title should be ignored when computing the alpha key. |
|
||||
| `sortBy` | `string` | Optional. The name of the field by which to sort the results. |
|
||||
| `sortOrder` | `string` | Optional. The direction in which to sort the results (`Ascending` or `Descending`). |
|
||||
|
||||
#### Get Books Lite Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": "32b336e8-dafc-4a08-9dec-9454e66dd55d",
|
||||
"title": "The Fellowship of the Ring",
|
||||
"releaseYear": 1954,
|
||||
"coverPath": "/media/covers/the-fellowship-of-the-ring.jpg"
|
||||
}
|
||||
],
|
||||
"currentPage": 1,
|
||||
"perPage": 10,
|
||||
"count": 1,
|
||||
"numberOfPages": 1
|
||||
}
|
||||
```
|
||||
|
||||
### Get Reading Availability
|
||||
|
||||
#### Get Reading Availability Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{bookId}/reading/availability
|
||||
```
|
||||
|
||||
Reports whether the book identified by `bookId` can be opened for reading: the book reader that supports the format of the book is resolved and its enablement for the media library of the book is checked, without extracting the book. When the book cannot be read, the response carries the code of the error preventing it, so the client can tell a missing book reader apart from a disabled one.
|
||||
|
||||
#### Get Reading Availability Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"bookId": "32b336e8-dafc-4a08-9dec-9454e66dd55d",
|
||||
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
|
||||
"isAvailable": true,
|
||||
"errorCode": null
|
||||
}
|
||||
```
|
||||
|
||||
### Get Reading Manifest
|
||||
|
||||
#### Get Reading Manifest Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{bookId}/reading/manifest
|
||||
```
|
||||
|
||||
Opens the book identified by `bookId` for reading by extracting its contents through the book reader that is enabled for its media library, and returns the reading manifest: the title and author of the book, its hierarchical table of contents, its ordered spine of reading sections, the keys of its resources, and whether it has extractable text content. A scanned book, whose pages are only images, has no text content and is displayed as page images.
|
||||
|
||||
#### Get Reading Manifest Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"title": "The Fellowship of the Ring",
|
||||
"author": "J.R.R. Tolkien",
|
||||
"coverResourceKey": "0f4d6e2b1c9a4f3e8d7c6b5a4f3e2d1c",
|
||||
"tableOfContents": [
|
||||
{
|
||||
"label": "Chapter One",
|
||||
"locationRef": "chapter1",
|
||||
"children": [
|
||||
{
|
||||
"label": "Part One",
|
||||
"locationRef": "chapter1",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"spine": [
|
||||
{
|
||||
"locationRef": "chapter1",
|
||||
"title": "Chapter One"
|
||||
},
|
||||
{
|
||||
"locationRef": "chapter2",
|
||||
"title": "Chapter Two"
|
||||
}
|
||||
],
|
||||
"resourceKeys": [
|
||||
"0f4d6e2b1c9a4f3e8d7c6b5a4f3e2d1c"
|
||||
],
|
||||
"hasTextContent": true
|
||||
}
|
||||
```
|
||||
|
||||
### Get Reading Section
|
||||
|
||||
#### Get Reading Section Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{bookId}/reading/sections/{locationRef}
|
||||
```
|
||||
|
||||
Returns the reading section identified by `locationRef` of the book identified by `bookId`. The section content is sanitized by the host before it is served, and its references to the resources of the book are resolved by the client through the resource endpoint. The `locationRef` of a section is taken from the spine of the reading manifest of the book.
|
||||
|
||||
#### Get Reading Section Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"locationRef": "chapter1",
|
||||
"title": "Chapter One",
|
||||
"contentHtml": "<section><h1>Chapter One</h1><p>First paragraph.</p></section>"
|
||||
}
|
||||
```
|
||||
|
||||
### Get Reading Resource
|
||||
|
||||
#### Get Reading Resource Request
|
||||
|
||||
```js
|
||||
GET api/v1/books/{bookId}/reading/resources/{resourceKey}
|
||||
```
|
||||
|
||||
Returns the binary resource identified by `resourceKey` of the book identified by `bookId` (for example an image, a font, or a stylesheet of the book, or a page image of a scanned PDF that is rendered on demand). The `resourceKey` of a resource is taken from the reading manifest of the book.
|
||||
|
||||
#### Get Reading Resource Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
The response is the raw bytes of the resource, served with the `Content-Type` of the resource and with `X-Content-Type-Options: nosniff`. A resource whose declared media type could be rendered as an active document (for example an SVG) is served as an opaque binary download instead.
|
||||
Reference in new issue
Block a user