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,36 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Permissions](#permissions)
|
||||
- [Get Permissions](#get-permissions)
|
||||
- [Get Permissions Request](#get-permissions-request)
|
||||
- [Get Permissions Response](#get-permissions-response)
|
||||
|
||||
## Permissions
|
||||
|
||||
### Get Permissions
|
||||
|
||||
#### Get Permissions Request
|
||||
|
||||
```js
|
||||
GET api/v1/auth/permissions
|
||||
```
|
||||
|
||||
#### Get Permissions Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b",
|
||||
"permissionName": "CanDeleteUsers"
|
||||
},
|
||||
{
|
||||
"id": "7830cd55-3585-4da1-bfad-994be8637da8",
|
||||
"permissionName": "CanViewUsers"
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -0,0 +1,182 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Roles](#roles)
|
||||
- [Get Roles](#get-roles)
|
||||
- [Get Roles Request](#get-roles-request)
|
||||
- [Get Roles Response](#get-roles-response)
|
||||
- [Get Role Permissions](#get-role-permissions)
|
||||
- [Get Role Permissions Request](#get-role-permissions-request)
|
||||
- [Get Role Permissions Response](#get-role-permissions-response)
|
||||
- [Add Role](#add-role)
|
||||
- [Add Role Request](#add-role-request)
|
||||
- [Add Role Response](#add-role-response)
|
||||
- [Update Role](#update-role)
|
||||
- [Update Role Request](#update-role-request)
|
||||
- [Update Role Response](#update-role-response)
|
||||
- [Delete Role](#delete-role)
|
||||
- [Delete Role Request](#delete-role-request)
|
||||
- [Delete Role Response](#delete-role-response)
|
||||
|
||||
## Roles
|
||||
|
||||
### Get Roles
|
||||
|
||||
#### Get Roles Request
|
||||
|
||||
```js
|
||||
GET api/v1/auth/roles
|
||||
```
|
||||
|
||||
#### Get Roles Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "776e440d-39d2-4f31-8dcd-481de61e8792",
|
||||
"roleName": "Admin"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
### Get Role Permissions
|
||||
|
||||
#### Get Role Permissions Request
|
||||
|
||||
```js
|
||||
GET api/v1/auth/roles/{roleId}/permissions
|
||||
```
|
||||
|
||||
#### Get Role Permissions Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"role": {
|
||||
"id": "61567253-c752-4680-989c-a40a73f3e4b9",
|
||||
"roleName": "Editor"
|
||||
},
|
||||
"permissions": [
|
||||
{
|
||||
"id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b",
|
||||
"permissionName": "CanDeleteUsers"
|
||||
},
|
||||
{
|
||||
"id": "7830cd55-3585-4da1-bfad-994be8637da8",
|
||||
"permissionName": "CanViewUsers"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Add Role
|
||||
|
||||
#### Add Role Request
|
||||
|
||||
```js
|
||||
POST api/v1/auth/roles
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"roleName": "Editor",
|
||||
"permissions": [
|
||||
"7934ff13-1ccd-4c24-bab3-6423c905e249",
|
||||
"8f23e43a-bb4b-483a-99eb-7ab361df7482"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Add Role Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"role": {
|
||||
"id": "e5b67972-6928-4be1-a757-e98879d4a12a",
|
||||
"roleName": "Editor"
|
||||
},
|
||||
"permissions": [
|
||||
{
|
||||
"id": "7934ff13-1ccd-4c24-bab3-6423c905e249",
|
||||
"permissionName": "CanDeleteUsers"
|
||||
},
|
||||
{
|
||||
"id": "8f23e43a-bb4b-483a-99eb-7ab361df7482",
|
||||
"permissionName": "CanViewUsers"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Update Role
|
||||
|
||||
#### Update Role Request
|
||||
|
||||
```js
|
||||
PUT api/v1/auth/roles
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"roleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa",
|
||||
"roleName": "Editor",
|
||||
"permissions": [
|
||||
"ac113d18-69bb-4162-8c05-ff7a5559059a",
|
||||
"3c2fd936-8d4a-4963-b237-9f8d3aeeab26"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Update Role Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"role": {
|
||||
"id": "61567253-c752-4680-989c-a40a73f3e4b9",
|
||||
"roleName": "Editor"
|
||||
},
|
||||
"permissions": [
|
||||
{
|
||||
"id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b",
|
||||
"permissionName": "CanDeleteUsers"
|
||||
},
|
||||
{
|
||||
"id": "7830cd55-3585-4da1-bfad-994be8637da8",
|
||||
"permissionName": "CanViewUsers"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Delete Role
|
||||
|
||||
#### Delete Role Request
|
||||
|
||||
```js
|
||||
DELETE api/v1/auth/roles/{roleId}
|
||||
```
|
||||
|
||||
#### Delete Role Response
|
||||
|
||||
```js
|
||||
204 No Content
|
||||
```
|
||||
@@ -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.
|
||||
File renamed without changes.
+8
-10
@@ -103,18 +103,16 @@ POST api/v1/books
|
||||
],
|
||||
"contributors": [
|
||||
{
|
||||
"name": "J.R.R. Tolkien",
|
||||
"role": {
|
||||
"name": "author",
|
||||
"category": "book"
|
||||
}
|
||||
"name": {
|
||||
"displayName": "J.R.R. Tolkien"
|
||||
},
|
||||
"role": "Author"
|
||||
},
|
||||
{
|
||||
"name": "Alan Lee",
|
||||
"role": {
|
||||
"name": "illustrator",
|
||||
"category": "book"
|
||||
}
|
||||
"name": {
|
||||
"displayName": "Alan Lee"
|
||||
},
|
||||
"role": "Illustrator"
|
||||
}
|
||||
],
|
||||
"ratings": [
|
||||
@@ -0,0 +1,25 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Health](#health)
|
||||
- [Check Health](#check-health)
|
||||
- [Check Health Request](#check-health-request)
|
||||
- [Check Health Response](#check-health-response)
|
||||
|
||||
## Health
|
||||
|
||||
### Check Health
|
||||
|
||||
#### Check Health Request
|
||||
|
||||
```js
|
||||
GET api/v1/check-health
|
||||
```
|
||||
|
||||
#### Check Health Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
Returns an empty response. This endpoint is not yet implemented.
|
||||
+4
-22
@@ -1,10 +1,7 @@
|
||||
# Lumina API
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Maintenance](#maintenance)
|
||||
- [Check Health](#check-health)
|
||||
- [Check Health Request](#check-health-request)
|
||||
- [Check Health Response](#check-health-response)
|
||||
- [Initialization](#initialization)
|
||||
- [Setup Application](#setup-application)
|
||||
- [Setup Application Request](#setup-application-request)
|
||||
- [Setup Application Response](#setup-application-response)
|
||||
@@ -12,23 +9,7 @@
|
||||
- [Check Initialization Request](#check-initialization-request)
|
||||
- [Check Initialization Response](#check-initialization-response)
|
||||
|
||||
## Maintenance
|
||||
|
||||
### Check Health
|
||||
|
||||
#### Check Health Request
|
||||
|
||||
```js
|
||||
GET api/v1/check-health
|
||||
```
|
||||
|
||||
#### Check Health Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
Returns an empty response. This endpoint is not yet implemented.
|
||||
## Initialization
|
||||
|
||||
### Setup Application
|
||||
|
||||
@@ -61,6 +42,7 @@ POST api/v1/initialization
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Check Initialization
|
||||
|
||||
#### Check Initialization Request
|
||||
@@ -79,4 +61,4 @@ GET api/v1/initialization
|
||||
{
|
||||
"isInitialized": true
|
||||
}
|
||||
```
|
||||
```
|
||||
@@ -2,24 +2,6 @@
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Authorization](#authorization)
|
||||
- [Get Permissions](#get-permissions)
|
||||
- [Get Permissions Request](#get-permissions-request)
|
||||
- [Get Permissions Response](#get-permissions-response)
|
||||
- [Get Roles](#get-roles)
|
||||
- [Get Roles Request](#get-roles-request)
|
||||
- [Get Roles Response](#get-roles-response)
|
||||
- [Get Role Permissions](#get-role-permissions)
|
||||
- [Get Role Permissions Request](#get-role-permissions-request)
|
||||
- [Get Role Permissions Response](#get-role-permissions-response)
|
||||
- [Add Role](#add-role)
|
||||
- [Add Role Request](#add-role-request)
|
||||
- [Add Role Response](#add-role-response)
|
||||
- [Update Role](#update-role)
|
||||
- [Update Role Request](#update-role-request)
|
||||
- [Update Role Response](#update-role-response)
|
||||
- [Delete Role](#delete-role)
|
||||
- [Delete Role Request](#delete-role-request)
|
||||
- [Delete Role Response](#delete-role-response)
|
||||
- [Get Authorization](#get-authorization)
|
||||
- [Get Authorization Request](#get-authorization-request)
|
||||
- [Get Authorization Response](#get-authorization-response)
|
||||
@@ -35,190 +17,6 @@
|
||||
|
||||
## Authorization
|
||||
|
||||
### Get Permissions
|
||||
|
||||
#### Get Permissions Request
|
||||
|
||||
```js
|
||||
GET api/v1/auth/permissions
|
||||
```
|
||||
|
||||
#### Get Permissions Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b",
|
||||
"permissionName": "CanDeleteUsers"
|
||||
},
|
||||
{
|
||||
"id": "7830cd55-3585-4da1-bfad-994be8637da8",
|
||||
"permissionName": "CanViewUsers"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Get Roles
|
||||
|
||||
#### Get Roles Request
|
||||
|
||||
```js
|
||||
GET api/v1/auth/roles
|
||||
```
|
||||
|
||||
#### Get Roles Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "776e440d-39d2-4f31-8dcd-481de61e8792",
|
||||
"roleName": "Admin"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Get Role Permissions
|
||||
|
||||
#### Get Role Permissions Request
|
||||
|
||||
```js
|
||||
GET api/v1/auth/roles/{roleId}/permissions
|
||||
```
|
||||
|
||||
#### Get Role Permissions Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"role": {
|
||||
"id": "61567253-c752-4680-989c-a40a73f3e4b9",
|
||||
"roleName": "Editor"
|
||||
},
|
||||
"permissions": [
|
||||
{
|
||||
"id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b",
|
||||
"permissionName": "CanDeleteUsers"
|
||||
},
|
||||
{
|
||||
"id": "7830cd55-3585-4da1-bfad-994be8637da8",
|
||||
"permissionName": "CanViewUsers"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Add Role
|
||||
|
||||
#### Add Role Request
|
||||
|
||||
```js
|
||||
POST api/v1/auth/roles
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"roleName": "Editor",
|
||||
"permissions": [
|
||||
"7934ff13-1ccd-4c24-bab3-6423c905e249",
|
||||
"8f23e43a-bb4b-483a-99eb-7ab361df7482"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Add Role Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"role": {
|
||||
"id": "e5b67972-6928-4be1-a757-e98879d4a12a",
|
||||
"roleName": "Editor"
|
||||
},
|
||||
"permissions": [
|
||||
{
|
||||
"id": "7934ff13-1ccd-4c24-bab3-6423c905e249",
|
||||
"permissionName": "CanDeleteUsers"
|
||||
},
|
||||
{
|
||||
"id": "8f23e43a-bb4b-483a-99eb-7ab361df7482",
|
||||
"permissionName": "CanViewUsers"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Update Role
|
||||
|
||||
#### Update Role Request
|
||||
|
||||
```js
|
||||
PUT api/v1/auth/roles
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"roleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa",
|
||||
"roleName": "Editor",
|
||||
"permissions": [
|
||||
"ac113d18-69bb-4162-8c05-ff7a5559059a",
|
||||
"3c2fd936-8d4a-4963-b237-9f8d3aeeab26"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### Update Role Response
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"role": {
|
||||
"id": "61567253-c752-4680-989c-a40a73f3e4b9",
|
||||
"roleName": "Editor"
|
||||
},
|
||||
"permissions": [
|
||||
{
|
||||
"id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b",
|
||||
"permissionName": "CanDeleteUsers"
|
||||
},
|
||||
{
|
||||
"id": "7830cd55-3585-4da1-bfad-994be8637da8",
|
||||
"permissionName": "CanViewUsers"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Delete Role
|
||||
|
||||
#### Delete Role Request
|
||||
|
||||
```js
|
||||
DELETE api/v1/auth/roles/{roleId}
|
||||
```
|
||||
|
||||
#### Delete Role Response
|
||||
|
||||
```js
|
||||
204 No Content
|
||||
```
|
||||
|
||||
### Get Authorization
|
||||
|
||||
#### Get Authorization Request
|
||||
@@ -244,6 +42,7 @@ GET api/v1/auth/get-authorization?userId=8e5e2be7-9f3b-4309-882b-8913dc6bda10
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Get User Permissions
|
||||
|
||||
#### Get User Permissions Request
|
||||
@@ -275,6 +74,7 @@ GET api/v1/auth/users/{userId}/permissions
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
### Get User Role
|
||||
|
||||
#### Get User Role Request
|
||||
@@ -296,6 +96,7 @@ GET api/v1/auth/users/{userId}/role
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Update User Role And Permissions
|
||||
|
||||
#### Update User Role And Permissions Request
|
||||
@@ -329,4 +130,4 @@ PUT api/v1/auth/users/{userId}/role-and-permissions
|
||||
"CanDeleteUsers"
|
||||
]
|
||||
}
|
||||
```
|
||||
```
|
||||
@@ -0,0 +1,251 @@
|
||||
- [Lumina Domain](#lumina-domain)
|
||||
- [Audio Library Aggregate](#audio-library-aggregate)
|
||||
- [Artist](#artist)
|
||||
- [Album](#album)
|
||||
- [Track](#track)
|
||||
|
||||
# [Lumina Domain](#lumina-domain)
|
||||
|
||||
## [Audio Library Aggregate](#audio-library-aggregate)
|
||||
|
||||
The audio library aggregate is the aggregate root of the `MusicLibrary` aggregate, which models the music of a media library. An artist is the aggregate root, owning its albums, and each album owns its tracks. Albums and tracks carry full metadata: title, description, release information, languages, genres and tags, and the tracks additionally carry the audio characteristics of their file, their moods and their ISRC codes. The credits of the media contributors that make up an artist, or that performed on an album or a track, are carried as `MusicMediaContributorCredit` value objects.
|
||||
|
||||
### [Artist](#artist)
|
||||
|
||||
```csharp
|
||||
class Artist
|
||||
{
|
||||
Result<Artist> Create(
|
||||
LibraryId libraryId,
|
||||
string name,
|
||||
Optional<string> website,
|
||||
Optional<MusicBrainzId> musicBrainzArtistId,
|
||||
List<MusicMediaContributorCredit> credits,
|
||||
List<Album> albums);
|
||||
}
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"libraryId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"name": "Queen",
|
||||
"website": "https://www.queenonline.com",
|
||||
"musicBrainzArtistId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"credits": [],
|
||||
"albums": [
|
||||
{
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### [Album](#album)
|
||||
|
||||
```csharp
|
||||
class Album
|
||||
{
|
||||
Result<Album> Create(
|
||||
AlbumMetadata metadata,
|
||||
Optional<MusicMediaFormat> mediaFormat,
|
||||
Optional<Barcode> barcode,
|
||||
Optional<string> catalogNumber,
|
||||
Optional<MusicBrainzId> musicBrainzReleaseId,
|
||||
Optional<MusicBrainzId> musicBrainzReleaseGroupId,
|
||||
Optional<MusicBrainzId> musicBrainzReleaseArtistId,
|
||||
List<MusicMediaContributorCredit> credits,
|
||||
List<AudioRating> ratings,
|
||||
List<Track> tracks);
|
||||
}
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "vinyl" }
|
||||
],
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"releaseType": "Album",
|
||||
"releaseStatus": "Official",
|
||||
"totalDiscs": 1,
|
||||
"totalTracks": 12
|
||||
},
|
||||
"mediaFormat": "CD",
|
||||
"barcode": {
|
||||
"value": "0042282778329"
|
||||
},
|
||||
"catalogNumber": "EMC 4008",
|
||||
"musicBrainzReleaseId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"musicBrainzReleaseGroupId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"musicBrainzReleaseArtistId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"credits": [],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
},
|
||||
{
|
||||
"value": 4.8,
|
||||
"maxValue": 5,
|
||||
"source": "LastFm",
|
||||
"voteCount": 1234
|
||||
}
|
||||
],
|
||||
"tracks": [
|
||||
{
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### [Track](#track)
|
||||
|
||||
```csharp
|
||||
class Track
|
||||
{
|
||||
Result<Track> Create(
|
||||
LibraryId libraryId,
|
||||
string path,
|
||||
AudioMetadata metadata,
|
||||
int trackNumber,
|
||||
Optional<int> discNumber,
|
||||
List<Isrc> isrcs,
|
||||
Optional<string> script,
|
||||
Optional<MusicKey> key,
|
||||
Optional<int> bpm,
|
||||
List<Mood> moods,
|
||||
Optional<string> work,
|
||||
Optional<MusicBrainzId> musicBrainzRecordingId,
|
||||
Optional<MusicBrainzId> musicBrainzTrackId,
|
||||
Optional<MusicBrainzId> musicBrainzWorkId,
|
||||
List<MusicMediaContributorCredit> credits,
|
||||
List<AudioRating> ratings);
|
||||
}
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"id": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"libraryId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Progressive Rock" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "epic" }
|
||||
],
|
||||
"language": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"originalLanguage": {
|
||||
"languageCode": "en",
|
||||
"languageName": "English",
|
||||
"nativeName": "English"
|
||||
},
|
||||
"durationInSeconds": 354,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 980
|
||||
},
|
||||
"trackNumber": 1,
|
||||
"discNumber": 1,
|
||||
"isrcs": [
|
||||
{
|
||||
"value": "GBUM71029604"
|
||||
}
|
||||
],
|
||||
"script": "Latn",
|
||||
"key": "CMajor",
|
||||
"bpm": 72,
|
||||
"moods": [
|
||||
{ "name": "dramatic" },
|
||||
{ "name": "anxious" }
|
||||
],
|
||||
"work": "Bohemian Rhapsody",
|
||||
"musicBrainzRecordingId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"musicBrainzTrackId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"musicBrainzWorkId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"credits": [],
|
||||
"ratings": [
|
||||
{
|
||||
"value": 4.5,
|
||||
"maxValue": 5,
|
||||
"source": "MusicBrainz",
|
||||
"voteCount": 2345
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -27,7 +27,7 @@ class Book
|
||||
Optional<string> barnesAndNobleId,
|
||||
Optional<string> appleBooksId,
|
||||
List<Isbn> isbns,
|
||||
List<MediaContributorId> contributors,
|
||||
List<BookMediaContributorCredit> contributors,
|
||||
List<BookRating> ratings);
|
||||
}
|
||||
```
|
||||
@@ -99,7 +99,10 @@ class Book
|
||||
],
|
||||
"contributors": [
|
||||
{
|
||||
"value": "00000000-0000-0000-0000-000000000000",
|
||||
"contributorId": {
|
||||
"value": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"role": "Author"
|
||||
}
|
||||
],
|
||||
"ratings": [
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,220 @@
|
||||
POST {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/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/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.",
|
||||
"durationInSeconds": 181,
|
||||
"sampleRate": 44100,
|
||||
"channels": 2,
|
||||
"bitDepth": 16,
|
||||
"audioCodec": "FLAC",
|
||||
"bitrate": 912,
|
||||
"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"
|
||||
},
|
||||
"genres": [
|
||||
{ "name": "Rock" },
|
||||
{ "name": "Pop Rock" }
|
||||
],
|
||||
"tags": [
|
||||
{ "name": "classic" },
|
||||
{ "name": "love" }
|
||||
]
|
||||
},
|
||||
"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",
|
||||
"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
|
||||
}
|
||||
],
|
||||
"moods": [
|
||||
{ "name": "happy" },
|
||||
{ "name": "warm" }
|
||||
],
|
||||
"isrcs": [
|
||||
{ "value": "GBUM71029609" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
DELETE {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/lite?currentPage=1&perPage=10
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,67 @@
|
||||
PUT {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,226 @@
|
||||
POST {{host}}/api/v1/3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a/artists
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
DELETE {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/lite?currentPage=1&perPage=10
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage=1&perPage=10&searchTerm=queen
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists/lite?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage=1&perPage=10&searchTerm=queen
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,14 @@
|
||||
PUT {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/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" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
POST {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/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" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
DELETE {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,81 @@
|
||||
PUT {{host}}/api/v1/artists/d7c41e6a-9f2b-4b1c-9a3e-7f6e5d4c3b2a/albums/e8d52f7b-0a3c-4c2d-ab4f-8a7b6c5d4e3f/tracks/9f0e1d2c-3b4a-4c6d-8e7f-9a0b1c2d3e4f
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/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" }
|
||||
]
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+8
-10
@@ -66,18 +66,16 @@ Content-Type: application/json
|
||||
],
|
||||
"contributors": [
|
||||
{
|
||||
"name": "J.R.R. Tolkien",
|
||||
"role": {
|
||||
"name": "author",
|
||||
"category": "book"
|
||||
}
|
||||
"name": {
|
||||
"displayName": "J.R.R. Tolkien"
|
||||
},
|
||||
"role": "Author"
|
||||
},
|
||||
{
|
||||
"name": "Alan Lee",
|
||||
"role": {
|
||||
"name": "illustrator",
|
||||
"category": "book"
|
||||
}
|
||||
"name": {
|
||||
"displayName": "Alan Lee"
|
||||
},
|
||||
"role": "Illustrator"
|
||||
}
|
||||
],
|
||||
"ratings": [
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+97
@@ -0,0 +1,97 @@
|
||||
PUT {{host}}/api/v1/books/{{$guid}}
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"id": "{{$guid}}",
|
||||
"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": "GB",
|
||||
"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",
|
||||
"legalName": "John Ronald Reuel Tolkien"
|
||||
},
|
||||
"role": "Author"
|
||||
},
|
||||
{
|
||||
"name": {
|
||||
"displayName": "Alan Lee",
|
||||
"legalName": "Alan Lee"
|
||||
},
|
||||
"role": "Illustrator"
|
||||
}
|
||||
],
|
||||
"ratings": [
|
||||
{
|
||||
"source": "GoogleBooks",
|
||||
"value": 4.36,
|
||||
"maxValue": 5,
|
||||
"voteCount": 2345678
|
||||
},
|
||||
{
|
||||
"source": "Amazon",
|
||||
"value": 4.7,
|
||||
"maxValue": 5,
|
||||
"voteCount": 87654
|
||||
}
|
||||
]
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
PUT {{host}}/api/v1/books/{{$guid}}/cover
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: multipart/form-data; boundary=LuminaBoundary
|
||||
|
||||
--LuminaBoundary
|
||||
Content-Disposition: form-data; name="file"; filename="cover.jpg"
|
||||
Content-Type: image/jpeg
|
||||
|
||||
< ./cover.jpg
|
||||
--LuminaBoundary--
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/libraries/{{$guid}}/artwork-providers
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,11 @@
|
||||
PUT {{host}}/api/v1/libraries/{{$guid}}/artwork-providers/reorder
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"libraryId": "{{$guid}}",
|
||||
"pluginIds": [
|
||||
"{{$guid}}",
|
||||
"{{$guid}}"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
PUT {{host}}/api/v1/libraries/{{$guid}}/artwork-providers/{{$guid}}/enabled
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"libraryId": "{{$guid}}",
|
||||
"pluginId": "{{$guid}}",
|
||||
"isEnabled": true
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user