diff --git a/docs/technical/api/Api.Book.md b/docs/technical/api/Api.Book.md index 30c4ae9c..c4a4e996 100644 --- a/docs/technical/api/Api.Book.md +++ b/docs/technical/api/Api.Book.md @@ -5,9 +5,15 @@ - [Add Book](#add-book) - [Add Book Request](#add-book-request) - [Add Book Response](#add-book-response) + - [Get Book](#get-book) + - [Get Book Request](#get-book-request) + - [Get Book Response](#get-book-response) - [Get Books](#get-books) - [Get Books Request](#get-books-request) - [Get Books Response](#get-books-response) + - [Get Books Lite](#get-books-lite) + - [Get Books Lite Request](#get-books-lite-request) + - [Get Books Lite Response](#get-books-lite-response) ## Book @@ -22,7 +28,7 @@ POST api/v1/books ```json { "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", - "path": "/books/the-fellowship-of-the-ring.epub", + "path": "/books/the-fellowship-of-the-ring.pdf", "metadata": { "title": "The Fellowship of the Ring", "originalTitle": "The Fellowship of the Ring", @@ -126,7 +132,7 @@ POST api/v1/books { "id": "32b336e8-dafc-4a08-9dec-9454e66dd55d", "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", - "path": "/books/the-fellowship-of-the-ring.epub", + "path": "/books/the-fellowship-of-the-ring.pdf", "metadata": { "publisher": "Houghton Mifflin", "pageCount": 398, @@ -187,7 +193,7 @@ POST api/v1/books "googleBooksId": "aWZzLPhY4o0C", "barnesAndNobleId": "1100307790", "appleBooksId": "id395211", - "isbNs": [ + "isbns": [ { "value": "0395272238", "format": "Isbn10" @@ -212,18 +218,45 @@ POST api/v1/books ], "metadataStatus": "Pending", "lastMetadataUpdateUtc": null, - "metadataProvider": null + "metadataProvider": null, + "createdOnUtc": "2025-01-01T12:00:00.0000000Z", + "updatedOnUtc": null } ``` +### Get Book + +#### Get Book Request + +```js +GET api/v1/books/{id} +``` + +#### Get Book Response + +```js +200 Ok +``` + +Returns an empty response. This endpoint is not yet implemented. + ### Get Books #### Get Books Request ```js -GET /books?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a +GET api/v1/books?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage=1&perPage=10&searchTerm=fellowship&sortBy=title&sortOrder=Ascending ``` +| Query Parameter | Type | Description | +| --- | --- | --- | +| `libraryId` | `string` (GUID) | Required. The Id of the media library whose books are retrieved. | +| `currentPage` | `int` | Optional. The page of results to retrieve. | +| `perPage` | `int` | Optional. The maximum number of books to retrieve per page. | +| `searchTerm` | `string` | Optional. The search term used to filter results. | +| `sortBy` | `string` | Optional. The name of the field by which to sort the results. | +| `sortOrder` | `string` | Optional. The direction in which to sort the results (`Ascending` or `Descending`). | + #### Get Books Response ```js @@ -231,10 +264,132 @@ GET /books?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a ``` ```json -[ - { - "created": "2020-01-01T00:00:00.0000000Z", - "updated": "2020-01-01T00:00:00.0000000Z" +{ + "data": [ + { + "id": "32b336e8-dafc-4a08-9dec-9454e66dd55d", + "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "path": "/books/the-fellowship-of-the-ring.pdf", + "metadata": { + "title": "The Fellowship of the Ring", + "originalTitle": "The Fellowship of the Ring", + "description": "The first part of J.R.R. Tolkien's epic adventure The Lord of the Rings.", + "releaseInfo": { + "originalReleaseDate": "1954-07-29", + "originalReleaseYear": 1954, + "reReleaseDate": "2001-09-06", + "reReleaseYear": 2001, + "releaseCountry": "uk", + "releaseVersion": "50th Anniversary Edition" + }, + "genres": [ + { "name": "fantasy" }, + { "name": "adventure" }, + { "name": "classic" } + ], + "tags": [ + { "name": "epic fantasy" }, + { "name": "quest" }, + { "name": "middle-earth" } + ], + "language": { + "languageCode": "en", + "languageName": "English", + "nativeName": "English" + }, + "originalLanguage": { + "languageCode": "en", + "languageName": "English", + "nativeName": "English" + }, + "publisher": "Houghton Mifflin", + "pageCount": 398 + }, + "format": "Paperback", + "edition": "50th Anniversary Edition", + "volumeNumber": 1, + "series": { + "title": "The Lord of the Rings" + }, + "asin": "B007978NPG", + "goodreadsId": "3", + "lccn": "54009621", + "oclcNumber": "ocm00012345", + "openLibraryId": "OL7603910M", + "libraryThingId": "3203347", + "googleBooksId": "aWZzLPhY4o0C", + "barnesAndNobleId": "1100307790", + "appleBooksId": "id395211", + "isbns": [ + { + "value": "0395272238", + "format": "Isbn10" + }, + { + "value": "9780395272237", + "format": "Isbn13" + } + ], + "contributors": [], + "ratings": [ + { + "value": 4.36, + "maxValue": 5, + "voteCount": 2345678 + } + ], + "metadataStatus": "Pending", + "lastMetadataUpdateUtc": null, + "metadataProvider": null, + "createdOnUtc": "2025-01-01T12:00:00.0000000Z", + "updatedOnUtc": null } -] + ], + "currentPage": 1, + "perPage": 10, + "count": 1, + "numberOfPages": 1 +} +``` + +### Get Books Lite + +#### Get Books Lite Request + +```js +GET api/v1/books/lite?libraryId=3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a¤tPage=1&perPage=10&searchTerm=fellowship&filterAlphaKey=f&ignoreThePrefixForAlphaPicker=true&sortBy=title&sortOrder=Ascending +``` + +| Query Parameter | Type | Description | +| --- | --- | --- | +| `libraryId` | `string` (GUID) | Required. The Id of the media library whose books are retrieved. | +| `currentPage` | `int` | Optional. The page of results to retrieve. | +| `perPage` | `int` | Optional. The maximum number of books to retrieve per page. | +| `searchTerm` | `string` | Optional. The search term used to filter results. | +| `filterAlphaKey` | `string` | Optional. Filters results by the first character of their title. A single ASCII letter (case-insensitive), `#` for titles starting with a digit, or `*` for titles starting with any other character. | +| `ignoreThePrefixForAlphaPicker` | `bool` | Whether the leading "The " prefix of a title should be ignored when computing the alpha key. | +| `sortBy` | `string` | Optional. The name of the field by which to sort the results. | +| `sortOrder` | `string` | Optional. The direction in which to sort the results (`Ascending` or `Descending`). | + +#### Get Books Lite Response + +```js +200 Ok +``` + +```json +{ + "data": [ + { + "id": "32b336e8-dafc-4a08-9dec-9454e66dd55d", + "title": "The Fellowship of the Ring", + "releaseYear": 1954, + "coverPath": "/media/covers/the-fellowship-of-the-ring.jpg" + } + ], + "currentPage": 1, + "perPage": 10, + "count": 1, + "numberOfPages": 1 +} ``` diff --git a/docs/technical/api/file-system-management/Api.Directories.md b/docs/technical/api/file-system-management/Api.Directories.md index a6bfd480..cd57e035 100644 --- a/docs/technical/api/file-system-management/Api.Directories.md +++ b/docs/technical/api/file-system-management/Api.Directories.md @@ -28,18 +28,18 @@ GET api/v1/directories/get-directories?path=C%3A%5CUsers%5C&includeHiddenElement ```json [ { - "Items": [], - "Path": "/media/movies/The Matrix (1999)/", - "Name": "The Matrix", - "DateCreated": "2025-01-01T13:50:38.3183787Z", - "DateModified": "2025-01-01T13:40:38.3183791Z" + "items": [], + "path": "/media/movies/The Matrix (1999)/", + "name": "The Matrix", + "dateCreated": "2025-01-01T13:50:38.3183787Z", + "dateModified": "2025-01-01T13:40:38.3183791Z" }, { - "Items": [], - "Path": "/media/movies/The Lord of the Rings - The Fellowship of the Ring (2001)/", - "Name": "The Lord of the Rings - The Fellowship of the Ring (2001)", - "DateCreated": "2025-01-01T13:50:38.3184681Z", - "DateModified": "2025-01-01T13:40:38.3184683Z" + "items": [], + "path": "/media/movies/The Lord of the Rings - The Fellowship of the Ring (2001)/", + "name": "The Lord of the Rings - The Fellowship of the Ring (2001)", + "dateCreated": "2025-01-01T13:50:38.3184681Z", + "dateModified": "2025-01-01T13:40:38.3184683Z" } ] ``` diff --git a/docs/technical/api/file-system-management/Api.Drives.md b/docs/technical/api/file-system-management/Api.Drives.md index a8b57ebc..a2920563 100644 --- a/docs/technical/api/file-system-management/Api.Drives.md +++ b/docs/technical/api/file-system-management/Api.Drives.md @@ -19,7 +19,7 @@ GET api/v1/drives/get-drives ``` -##### Get Directories Response +##### Get Drives Response ```js 200 Ok @@ -28,20 +28,20 @@ GET api/v1/drives/get-drives ```json [ { - "Path": "C:\\", - "Name": "C:\\", - "ItemType": "Root", - "IsExpanded": false, - "ChildrenLoaded": false, - "Children": [] + "path": "C:\\", + "name": "C:\\", + "itemType": "Root", + "isExpanded": false, + "childrenLoaded": false, + "children": [] }, { - "Path": "D:\\", - "Name": "D:\\", - "ItemType": "Root", - "IsExpanded": false, - "ChildrenLoaded": false, - "Children": [] + "path": "D:\\", + "name": "D:\\", + "itemType": "Root", + "isExpanded": false, + "childrenLoaded": false, + "children": [] } ] ``` diff --git a/docs/technical/api/file-system-management/Api.FileSystem.md b/docs/technical/api/file-system-management/Api.FileSystem.md index 5bd4a96a..468954a1 100644 --- a/docs/technical/api/file-system-management/Api.FileSystem.md +++ b/docs/technical/api/file-system-management/Api.FileSystem.md @@ -27,6 +27,6 @@ GET api/v1/file-system/get-type ```json { - "PlatformType": "Unix" + "platformType": "Unix" } ``` diff --git a/docs/technical/api/file-system-management/Api.Files.md b/docs/technical/api/file-system-management/Api.Files.md index 33174bb2..41b33576 100644 --- a/docs/technical/api/file-system-management/Api.Files.md +++ b/docs/technical/api/file-system-management/Api.Files.md @@ -31,18 +31,18 @@ GET api/v1/files/get-files?path=C%3A%5CUsers%5C&includeHiddenElements=true ```json [ { - "Size": 754045401, - "Path": "/media/movies/The Matrix (1999)/The Matrix.mkv", - "Name": "The Matrix.mkv", - "DateCreated": "2025-01-01T13:50:38.3143711Z", - "DateModified": "2025-01-01T13:40:38.3143719Z" + "size": 754045401, + "path": "/media/movies/The Matrix (1999)/The Matrix.mkv", + "name": "The Matrix.mkv", + "dateCreated": "2025-01-01T13:50:38.3143711Z", + "dateModified": "2025-01-01T13:40:38.3143719Z" }, { - "Size": 6897, - "Path": "/media/movies/The Matrix (1999)/The Matrix.en.srt", - "Name": "The Matrix.en.srt", - "DateCreated": "2025-01-01T13:50:38.3145606Z", - "DateModified": "2025-01-01T13:40:38.3145609Z" + "size": 6897, + "path": "/media/movies/The Matrix (1999)/The Matrix.en.srt", + "name": "The Matrix.en.srt", + "dateCreated": "2025-01-01T13:50:38.3145606Z", + "dateModified": "2025-01-01T13:40:38.3145609Z" } ] ``` @@ -52,7 +52,7 @@ GET api/v1/files/get-files?path=C%3A%5CUsers%5C&includeHiddenElements=true ##### Get Tree Files Request ```js -GET api/v1/get-tree-files?path=C%3A%5CUsers%5C&includeHiddenElements=true +GET api/v1/files/get-tree-files?path=C%3A%5CUsers%5C&includeHiddenElements=true ``` ##### Get Tree Files Response @@ -64,28 +64,28 @@ GET api/v1/get-tree-files?path=C%3A%5CUsers%5C&includeHiddenElements=true ```json [ { - "Path": "/media/movies/The Matrix (1999)/The Matrix.mkv", - "Name": "The Matrix.mkv", - "ItemType": "File", - "IsExpanded": false, - "ChildrenLoaded": false, - "Children": [] + "path": "/media/movies/The Matrix (1999)/The Matrix.mkv", + "name": "The Matrix.mkv", + "itemType": "File", + "isExpanded": false, + "childrenLoaded": false, + "children": [] }, { - "Path": "/media/movies/The Matrix (1999)/The Matrix.en.srt", - "Name": "The Matrix.en.srt", - "ItemType": "File", - "IsExpanded": false, - "ChildrenLoaded": false, - "Children": [] + "path": "/media/movies/The Matrix (1999)/The Matrix.en.srt", + "name": "The Matrix.en.srt", + "itemType": "File", + "isExpanded": false, + "childrenLoaded": false, + "children": [] }, { - "Path": "/media/movies/The Matrix (1999)/poster.jpg", - "Name": "poster.jpg", - "ItemType": "File", - "IsExpanded": false, - "ChildrenLoaded": false, - "Children": [] + "path": "/media/movies/The Matrix (1999)/poster.jpg", + "name": "poster.jpg", + "itemType": "File", + "isExpanded": false, + "childrenLoaded": false, + "children": [] } ] ``` diff --git a/docs/technical/api/file-system-management/Api.Path.md b/docs/technical/api/file-system-management/Api.Path.md index bd4d991c..251cb768 100644 --- a/docs/technical/api/file-system-management/Api.Path.md +++ b/docs/technical/api/file-system-management/Api.Path.md @@ -21,7 +21,7 @@ - [Split Path](#split-path) - [Split Path Request](#split-path-request) - [Split Path Response](#split-path-response) - - [Split Path](#split-path) + - [Validate Path](#validate-path) - [Validate Path Request](#validate-path-request) - [Validate Path Response](#validate-path-response) @@ -45,7 +45,7 @@ GET api/v1/path/check-path-exists?path=C%3A%5CUsers%5C&includeHiddenElements=tru ```json { - "Exists": true + "exists": true } ``` @@ -65,7 +65,7 @@ GET api/v1/path/combine?originalPath=C%3A%5C&newPath=Users ```json { - "Path": "C:\\Users\\" + "path": "C:\\Users\\" } ``` @@ -86,7 +86,7 @@ GET api/v1/path/get-path-parent?path=C%3A%5CUsers%5C ```json [ { - "Path": "C:" + "path": "C:" } ] ``` @@ -106,11 +106,9 @@ GET api/v1/path/get-path-root?path=C%3A%5CUsers%5C ``` ```json -[ - { - "Path": "C:\\" - } -] +{ + "path": "C:\\" +} ``` #### Get Path Separator @@ -128,14 +126,12 @@ GET api/v1/path/get-path-separator ``` ```json -[ - { - "Separator": "\\" - } -] +{ + "separator": "\\" +} ``` -#### Split Path +#### Split Path ##### Split Path Request @@ -152,15 +148,15 @@ GET api/v1/path/split?path=C%3A%5CUsers%5C ```json [ { - "Path": "C:\\" + "path": "C:\\" }, { - "Path": "Users" + "path": "Users" } ] ``` -#### Validate Path +#### Validate Path ##### Validate Path Request @@ -176,6 +172,6 @@ GET api/v1/path/validate?path=C%3A%5CUsers%5C ```json { - "IsValid": true + "isValid": true } ``` diff --git a/docs/technical/api/file-system-management/Api.Thumbnails.md b/docs/technical/api/file-system-management/Api.Thumbnails.md index d9a95566..7dd40824 100644 --- a/docs/technical/api/file-system-management/Api.Thumbnails.md +++ b/docs/technical/api/file-system-management/Api.Thumbnails.md @@ -24,3 +24,5 @@ GET api/v1/thumbnails/get-thumbnail?path=C%3A%5CUsers%5C&quality=75 ```js 200 Ok ``` + +Returns the thumbnail as a binary image file whose `Content-Type` depends on the requested image type (`Png`, `Jpeg`, `Webp`, `Gif`, `Bmp` or `Tiff`). diff --git a/docs/technical/api/library-management/Api.Library.md b/docs/technical/api/library-management/Api.Library.md new file mode 100644 index 00000000..30a6eba7 --- /dev/null +++ b/docs/technical/api/library-management/Api.Library.md @@ -0,0 +1,402 @@ +# Lumina API + +- [Lumina API](#lumina-api) + - [Library](#library) + - [Add Library](#add-library) + - [Add Library Request](#add-library-request) + - [Add Library Response](#add-library-response) + - [Get Libraries](#get-libraries) + - [Get Libraries Request](#get-libraries-request) + - [Get Libraries Response](#get-libraries-response) + - [Get Enabled Libraries](#get-enabled-libraries) + - [Get Enabled Libraries Request](#get-enabled-libraries-request) + - [Get Enabled Libraries Response](#get-enabled-libraries-response) + - [Get Library](#get-library) + - [Get Library Request](#get-library-request) + - [Get Library Response](#get-library-response) + - [Update Library](#update-library) + - [Update Library Request](#update-library-request) + - [Update Library Response](#update-library-response) + - [Delete Library](#delete-library) + - [Delete Library Request](#delete-library-request) + - [Delete Library Response](#delete-library-response) + - [Scan Libraries](#scan-libraries) + - [Scan Libraries Request](#scan-libraries-request) + - [Scan Libraries Response](#scan-libraries-response) + - [Scan Library](#scan-library) + - [Scan Library Request](#scan-library-request) + - [Scan Library Response](#scan-library-response) + - [Get Running Library Scans](#get-running-library-scans) + - [Get Running Library Scans Request](#get-running-library-scans-request) + - [Get Running Library Scans Response](#get-running-library-scans-response) + - [Get Library Scan Progress](#get-library-scan-progress) + - [Get Library Scan Progress Request](#get-library-scan-progress-request) + - [Get Library Scan Progress Response](#get-library-scan-progress-response) + - [Cancel Libraries Scan](#cancel-libraries-scan) + - [Cancel Libraries Scan Request](#cancel-libraries-scan-request) + - [Cancel Libraries Scan Response](#cancel-libraries-scan-response) + - [Cancel Library Scan](#cancel-library-scan) + - [Cancel Library Scan Request](#cancel-library-scan-request) + - [Cancel Library Scan Response](#cancel-library-scan-response) + +## Library + +### Add Library + +#### Add Library Request + +```js +POST api/v1/libraries +``` + +```json +{ + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true +} +``` + +#### Add Library Response + +```js +201 Created +``` + +```json +{ + "id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true, + "createdOnUtc": "2025-01-01T12:00:00.0000000Z", + "updatedOnUtc": null +} +``` + +### Get Libraries + +#### Get Libraries Request + +```js +GET api/v1/libraries +``` + +#### Get Libraries Response + +```js +200 Ok +``` + +```json +[ + { + "id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true, + "createdOnUtc": "2025-01-01T12:00:00.0000000Z", + "updatedOnUtc": null + } +] +``` + +### Get Enabled Libraries + +#### Get Enabled Libraries Request + +```js +GET api/v1/libraries/enabled +``` + +#### Get Enabled Libraries Response + +```js +200 Ok +``` + +```json +[ + { + "id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true, + "createdOnUtc": "2025-01-01T12:00:00.0000000Z", + "updatedOnUtc": null + } +] +``` + +### Get Library + +#### Get Library Request + +```js +GET api/v1/libraries/{id} +``` + +#### Get Library Response + +```js +200 Ok +``` + +```json +{ + "id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true, + "createdOnUtc": "2025-01-01T12:00:00.0000000Z", + "updatedOnUtc": null +} +``` + +### Update Library + +#### Update Library Request + +```js +PUT api/v1/libraries/{id} +``` + +```json +{ + "id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true +} +``` + +#### Update Library Response + +```js +200 Ok +``` + +```json +{ + "id": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true, + "createdOnUtc": "2025-01-01T12:00:00.0000000Z", + "updatedOnUtc": null +} +``` + +### Delete Library + +#### Delete Library Request + +```js +DELETE api/v1/libraries/{id} +``` + +#### Delete Library Response + +```js +200 Ok +``` + +### Scan Libraries + +#### Scan Libraries Request + +```js +POST api/v1/libraries/scans +``` + +#### Scan Libraries Response + +```js +200 Ok +``` + +```json +[ + { + "scanId": "e7a2c9f4-6b3d-4f80-9e3a-2c1b0d8a4f56", + "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a" + } +] +``` + +### Scan Library + +#### Scan Library Request + +```js +POST api/v1/libraries/{id}/scans +``` + +#### Scan Library Response + +```js +200 Ok +``` + +```json +{ + "scanId": "e7a2c9f4-6b3d-4f80-9e3a-2c1b0d8a4f56", + "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a" +} +``` + +### Get Running Library Scans + +#### Get Running Library Scans Request + +```js +GET api/v1/libraries/scans/running +``` + +#### Get Running Library Scans Response + +```js +200 Ok +``` + +```json +[ + { + "scanId": "e7a2c9f4-6b3d-4f80-9e3a-2c1b0d8a4f56", + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "totalJobs": 5, + "completedJobs": 2, + "currentJobProgress": { + "completedItems": 10, + "totalItems": 50, + "currentOperation": "Reading file system", + "progressPercentage": 20.0 + }, + "status": "Running", + "overallProgressPercentage": 40.0 + } +] +``` + +### Get Library Scan Progress + +#### Get Library Scan Progress Request + +```js +GET api/v1/libraries/{libraryId}/scans/{scanId}/progress +``` + +#### Get Library Scan Progress Response + +```js +200 Ok +``` + +```json +{ + "scanId": "e7a2c9f4-6b3d-4f80-9e3a-2c1b0d8a4f56", + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "totalJobs": 5, + "completedJobs": 2, + "currentJobProgress": { + "completedItems": 10, + "totalItems": 50, + "currentOperation": "Reading file system", + "progressPercentage": 20.0 + }, + "status": "Running", + "overallProgressPercentage": 40.0 +} +``` + +### Cancel Libraries Scan + +#### Cancel Libraries Scan Request + +```js +POST api/v1/libraries/scans/cancel +``` + +#### Cancel Libraries Scan Response + +```js +204 No Content +``` + +### Cancel Library Scan + +#### Cancel Library Scan Request + +```js +POST api/v1/libraries/{libraryId}/scans/{scanId}/cancel +``` + +#### Cancel Library Scan Response + +```js +204 No Content +``` diff --git a/docs/technical/api/maintenance/Api.Maintenance.md b/docs/technical/api/maintenance/Api.Maintenance.md new file mode 100644 index 00000000..6dbccd0f --- /dev/null +++ b/docs/technical/api/maintenance/Api.Maintenance.md @@ -0,0 +1,82 @@ +# Lumina API + +- [Lumina API](#lumina-api) + - [Maintenance](#maintenance) + - [Check Health](#check-health) + - [Check Health Request](#check-health-request) + - [Check Health Response](#check-health-response) + - [Setup Application](#setup-application) + - [Setup Application Request](#setup-application-request) + - [Setup Application Response](#setup-application-response) + - [Check Initialization](#check-initialization) + - [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. + +### Setup Application + +#### Setup Application Request + +```js +POST api/v1/initialization +``` + +```json +{ + "username": "admin", + "password": "Abcd123$", + "passwordConfirm": "Abcd123$", + "use2fa": true +} +``` + +#### Setup Application Response + +```js +201 Created +``` + +```json +{ + "id": "c8ec9858-ed98-4936-a893-cddfe40edf5c", + "username": "admin", + "totpSecret": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABCQAAAQkAQAAAACN7fKkAAAFW0lEQVR4nO3bQW4cOQwF0L6B73/L3MABjCp/ilR1BphkFAl..." +} +``` + +### Check Initialization + +#### Check Initialization Request + +```js +GET api/v1/initialization +``` + +#### Check Initialization Response + +```js +200 Ok +``` + +```json +{ + "isInitialized": true +} +``` diff --git a/docs/technical/api/plugins/Api.Plugins.md b/docs/technical/api/plugins/Api.Plugins.md new file mode 100644 index 00000000..22b30816 --- /dev/null +++ b/docs/technical/api/plugins/Api.Plugins.md @@ -0,0 +1,190 @@ +# Lumina API + +- [Lumina API](#lumina-api) + - [Plugins](#plugins) + - [Get Plugins](#get-plugins) + - [Get Plugins Request](#get-plugins-request) + - [Get Plugins Response](#get-plugins-response) + - [Get Plugin Settings](#get-plugin-settings) + - [Get Plugin Settings Request](#get-plugin-settings-request) + - [Get Plugin Settings Response](#get-plugin-settings-response) + - [Update Plugin Settings](#update-plugin-settings) + - [Update Plugin Settings Request](#update-plugin-settings-request) + - [Update Plugin Settings Response](#update-plugin-settings-response) + - [Get Library Metadata Providers](#get-library-metadata-providers) + - [Get Library Metadata Providers Request](#get-library-metadata-providers-request) + - [Get Library Metadata Providers Response](#get-library-metadata-providers-response) + - [Set Library Metadata Provider Enabled](#set-library-metadata-provider-enabled) + - [Set Library Metadata Provider Enabled Request](#set-library-metadata-provider-enabled-request) + - [Set Library Metadata Provider Enabled Response](#set-library-metadata-provider-enabled-response) + - [Reorder Library Metadata Providers](#reorder-library-metadata-providers) + - [Reorder Library Metadata Providers Request](#reorder-library-metadata-providers-request) + - [Reorder Library Metadata Providers Response](#reorder-library-metadata-providers-response) + +## Plugins + +### Get Plugins + +#### Get Plugins Request + +```js +GET api/v1/plugins +``` + +#### Get Plugins Response + +```js +200 Ok +``` + +```json +[ + { + "id": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b", + "name": "OpenLibrary", + "author": "Binary Alley", + "version": "1.0.0", + "description": "Downloads book metadata from Open Library.", + "loadStatus": "Loaded", + "loadError": null, + "settings": { + "language": "en" + } + } +] +``` + +### Get Plugin Settings + +#### Get Plugin Settings Request + +```js +GET api/v1/plugins/{pluginId}/settings +``` + +#### Get Plugin Settings Response + +```js +200 Ok +``` + +```json +{ + "pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b", + "schema": [ + { + "key": "language", + "label": "Language", + "type": "Text", + "defaultValue": "en", + "allowedValues": null + }, + { + "key": "maxResults", + "label": "Maximum results", + "type": "Number", + "defaultValue": "10", + "allowedValues": null + } + ], + "settings": { + "language": "en", + "maxResults": "10" + } +} +``` + +### Update Plugin Settings + +#### Update Plugin Settings Request + +```js +PUT api/v1/plugins/{pluginId}/settings +``` + +```json +{ + "pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b", + "settings": { + "language": "en", + "maxResults": "25" + } +} +``` + +#### Update Plugin Settings Response + +```js +200 Ok +``` + +### Get Library Metadata Providers + +#### Get Library Metadata Providers Request + +```js +GET api/v1/libraries/{libraryId}/metadata-providers +``` + +#### Get Library Metadata Providers Response + +```js +200 Ok +``` + +```json +[ + { + "pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b", + "name": "OpenLibrary", + "isEnabled": true, + "rank": 1 + } +] +``` + +### Set Library Metadata Provider Enabled + +#### Set Library Metadata Provider Enabled Request + +```js +PUT api/v1/libraries/{libraryId}/metadata-providers/{pluginId}/enabled +``` + +```json +{ + "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b", + "isEnabled": true +} +``` + +#### Set Library Metadata Provider Enabled Response + +```js +200 Ok +``` + +### Reorder Library Metadata Providers + +#### Reorder Library Metadata Providers Request + +```js +PUT api/v1/libraries/{libraryId}/metadata-providers/reorder +``` + +```json +{ + "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "pluginIds": [ + "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b", + "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" + ] +} +``` + +#### Reorder Library Metadata Providers Response + +```js +200 Ok +``` diff --git a/docs/technical/api/themes/Api.Themes.md b/docs/technical/api/themes/Api.Themes.md new file mode 100644 index 00000000..dc842ec6 --- /dev/null +++ b/docs/technical/api/themes/Api.Themes.md @@ -0,0 +1,280 @@ +# Lumina API + +- [Lumina API](#lumina-api) + - [Themes](#themes) + - [Get Themes](#get-themes) + - [Get Themes Request](#get-themes-request) + - [Get Themes Response](#get-themes-response) + - [Install Theme](#install-theme) + - [Install Theme Request](#install-theme-request) + - [Install Theme Response](#install-theme-response) + - [Set Current Theme](#set-current-theme) + - [Set Current Theme Request](#set-current-theme-request) + - [Set Current Theme Response](#set-current-theme-response) + - [Get Current Theme](#get-current-theme) + - [Get Current Theme Request](#get-current-theme-request) + - [Get Current Theme Response](#get-current-theme-response) + - [Get Theme Settings](#get-theme-settings) + - [Get Theme Settings Request](#get-theme-settings-request) + - [Get Theme Settings Response](#get-theme-settings-response) + - [Get Theme Template](#get-theme-template) + - [Get Theme Template Request](#get-theme-template-request) + - [Get Theme Template Response](#get-theme-template-response) + - [Get Theme Asset](#get-theme-asset) + - [Get Theme Asset Request](#get-theme-asset-request) + - [Get Theme Asset Response](#get-theme-asset-response) + - [Get Theme Archive](#get-theme-archive) + - [Get Theme Archive Request](#get-theme-archive-request) + - [Get Theme Archive Response](#get-theme-archive-response) + - [Delete Theme](#delete-theme) + - [Delete Theme Request](#delete-theme-request) + - [Delete Theme Response](#delete-theme-response) + - [Restore Theme](#restore-theme) + - [Restore Theme Request](#restore-theme-request) + - [Restore Theme Response](#restore-theme-response) + +## Themes + +### Get Themes + +#### Get Themes Request + +```js +GET api/v1/themes +``` + +#### Get Themes Response + +```js +200 Ok +``` + +```json +[ + { + "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", + "themeId": "default-dark", + "name": "Default Dark", + "description": "A dark theme bundled with the application.", + "author": "Lumina", + "version": "1.0.0", + "previewPath": "preview.png", + "installSource": "Bundled", + "isCurrent": true, + "installedAtUtc": "2025-01-01T12:00:00.0000000Z", + "isDeleted": false + } +] +``` + +### Install Theme + +#### Install Theme Request + +```js +POST api/v1/themes +``` + +Uploads the theme pack as a ZIP file in a `multipart/form-data` request. The first file part of the form is used as the theme archive. + +#### Install Theme Response + +```js +200 Ok +``` + +```json +{ + "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", + "themeId": "my-theme", + "name": "My Theme", + "description": "A theme uploaded by a user.", + "author": "JohnDoe", + "version": "1.0.0", + "previewPath": null, + "installSource": "Uploaded", + "isCurrent": null, + "installedAtUtc": "2025-01-01T12:00:00.0000000Z", + "isDeleted": false +} +``` + +### Set Current Theme + +#### Set Current Theme Request + +```js +PUT api/v1/themes/current +``` + +```json +{ + "themeId": "my-theme" +} +``` + +#### Set Current Theme Response + +```js +200 Ok +``` + +```json +{ + "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", + "themeId": "my-theme", + "name": "My Theme", + "description": "A theme uploaded by a user.", + "author": "JohnDoe", + "version": "1.0.0", + "previewPath": null, + "installSource": "Uploaded", + "isCurrent": true, + "installedAtUtc": "2025-01-01T12:00:00.0000000Z", + "isDeleted": false +} +``` + +### Get Current Theme + +#### Get Current Theme Request + +```js +GET api/v1/themes/current +``` + +#### Get Current Theme Response + +```js +200 Ok +``` + +```json +{ + "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", + "themeId": "my-theme", + "name": "My Theme", + "description": "A theme uploaded by a user.", + "author": "JohnDoe", + "version": "1.0.0", + "previewPath": null, + "installSource": "Uploaded", + "isCurrent": true, + "installedAtUtc": "2025-01-01T12:00:00.0000000Z", + "isDeleted": false +} +``` + +### Get Theme Settings + +#### Get Theme Settings Request + +```js +GET api/v1/themes/settings +``` + +#### Get Theme Settings Response + +```js +200 Ok +``` + +```json +{ + "maxArchiveBytes": 52428800, + "defaultThemeId": "default-dark" +} +``` + +### Get Theme Template + +#### Get Theme Template Request + +```js +GET api/v1/themes/{themeId}/templates/{pageKey} +``` + +#### Get Theme Template Response + +```js +200 Ok +``` + +```json +{ + "theme": { + "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", + "themeId": "my-theme", + "name": "My Theme", + "description": "A theme uploaded by a user.", + "author": "JohnDoe", + "version": "1.0.0", + "previewPath": null, + "installSource": "Uploaded", + "isCurrent": true, + "installedAtUtc": "2025-01-01T12:00:00.0000000Z", + "isDeleted": false + }, + "template": "\n\n...\n" +} +``` + +### Get Theme Asset + +#### Get Theme Asset Request + +```js +GET api/v1/themes/{themeId}/assets/{assetPath} +``` + +#### Get Theme Asset Response + +```js +200 Ok +``` + +Returns the asset file (e.g. a stylesheet, script or image) stored in the theme pack. + +### Get Theme Archive + +#### Get Theme Archive Request + +```js +GET api/v1/themes/{themeId}/archive +``` + +#### Get Theme Archive Response + +```js +200 Ok +``` + +Returns the theme pack as a downloadable ZIP archive. + +### Delete Theme + +#### Delete Theme Request + +```js +DELETE api/v1/themes/{themeId} +``` + +#### Delete Theme Response + +```js +204 No Content +``` + +### Restore Theme + +#### Restore Theme Request + +```js +POST api/v1/themes/{themeId}/restore +``` + +#### Restore Theme Response + +```js +204 No Content +``` diff --git a/docs/technical/api/users-management/Api.Authentication.md b/docs/technical/api/users-management/Api.Authentication.md index a7cee24f..d1f55d47 100644 --- a/docs/technical/api/users-management/Api.Authentication.md +++ b/docs/technical/api/users-management/Api.Authentication.md @@ -14,6 +14,9 @@ - [Change Password](#change-password) - [Change Password Request](#change-password-request) - [Change Password Response](#change-password-response) + - [Get Users](#get-users) + - [Get Users Request](#get-users-request) + - [Get Users Response](#get-users-response) ## Authentication @@ -27,10 +30,10 @@ POST api/v1/auth/register ```json { - "Username": "JohnDoe", - "Password": "Abcd123$", - "PasswordConfirm": "Abcd123$", - "Use2fa": true + "username": "JohnDoe", + "password": "Abcd123$", + "passwordConfirm": "Abcd123$", + "use2fa": true } ``` @@ -42,9 +45,9 @@ POST api/v1/auth/register ```json { - "Id": "c8ec9858-ed98-4936-a893-cddfe40edf5c", - "Username": "JohnDoe", - "TotpSecret": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABCQAAAQkAQAAAACN7fKkAAAFW0lEQVR4nO3bQW4cOQwF0L6B73/L3MABjCp/ilR1BphkFAl..." + "id": "c8ec9858-ed98-4936-a893-cddfe40edf5c", + "username": "JohnDoe", + "totpSecret": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABCQAAAQkAQAAAACN7fKkAAAFW0lEQVR4nO3bQW4cOQwF0L6B73/L3MABjCp/ilR1BphkFAl..." } ``` @@ -58,9 +61,9 @@ POST api/v1/auth/login ```json { - "Username": "JohnDoe", - "Password": "Abcd123$", - "TotpCode": "123456" + "username": "JohnDoe", + "password": "Abcd123$", + "totpCode": "123456" } ``` @@ -72,10 +75,10 @@ POST api/v1/auth/login ```json { - "Id": "e5ea6c64-992b-4173-9c1c-46d5786e4226", - "Username": "JohnDoe", - "Token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwNzE2Y2E1ZC1hZjhkLT...", - "UsesTotp": true + "id": "e5ea6c64-992b-4173-9c1c-46d5786e4226", + "username": "JohnDoe", + "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwNzE2Y2E1ZC1hZjhkLT...", + "usesTotp": true } ``` @@ -89,8 +92,8 @@ POST api/v1/auth/recover-password ```json { - "Username": "JohnDoe", - "TotpCode": "123456" + "username": "JohnDoe", + "totpCode": "123456" } ``` @@ -102,7 +105,7 @@ POST api/v1/auth/recover-password ```json { - "IsPasswordReset": true + "isPasswordReset": true } ``` @@ -116,10 +119,10 @@ POST api/v1/auth/change-password ```json { - "Username": "JohnDoe", - "CurrentPassword": "Abcd123$", - "NewPassword": "123$Abcd", - "NewPasswordConfirm": "123$Abcd" + "username": "JohnDoe", + "currentPassword": "Abcd123$", + "newPassword": "123$Abcd", + "newPasswordConfirm": "123$Abcd" } ``` @@ -131,6 +134,37 @@ POST api/v1/auth/change-password ```json { - "IsPasswordChanged": true + "isPasswordChanged": true } ``` + +### Get Users + +#### Get Users Request + +```js +GET api/v1/auth/users +``` + +#### Get Users Response + +```js +200 Ok +``` + +```json +[ + { + "id": "c8ec9858-ed98-4936-a893-cddfe40edf5c", + "username": "JohnDoe", + "createdOnUtc": "2025-01-01T12:00:00.0000000Z", + "updatedOnUtc": null + }, + { + "id": "e5ea6c64-992b-4173-9c1c-46d5786e4226", + "username": "JaneDoe", + "createdOnUtc": "2025-01-02T12:00:00.0000000Z", + "updatedOnUtc": "2025-01-03T12:00:00.0000000Z" + } +] +``` diff --git a/docs/technical/api/users-management/Api.Authorization.md b/docs/technical/api/users-management/Api.Authorization.md index 1d4d0013..abce3d67 100644 --- a/docs/technical/api/users-management/Api.Authorization.md +++ b/docs/technical/api/users-management/Api.Authorization.md @@ -50,22 +50,16 @@ GET api/v1/auth/permissions ``` ```json -{ - "Role": { - "Id": "61567253-c752-4680-989c-a40a73f3e4b9", - "RoleName": "Editor" +[ + { + "id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b", + "permissionName": "CanDeleteUsers" }, - "Permissions": [ - { - "Id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b", - "PermissionName": "CanDeleteUsers" - }, - { - "Id": "7830cd55-3585-4da1-bfad-994be8637da8", - "PermissionName": "CanViewUsers" - } - ] -} + { + "id": "7830cd55-3585-4da1-bfad-994be8637da8", + "permissionName": "CanViewUsers" + } +] ``` ### Get Roles @@ -85,8 +79,8 @@ GET api/v1/auth/roles ```json [ { - "Id": "776e440d-39d2-4f31-8dcd-481de61e8792", - "RoleName": "Admin" + "id": "776e440d-39d2-4f31-8dcd-481de61e8792", + "roleName": "Admin" } ] ``` @@ -106,20 +100,22 @@ GET api/v1/auth/roles/{roleId}/permissions ``` ```json -[ - { - "Id": "c64fc53f-ef32-4eba-9592-67b42ced63a3", - "PermissionName": "CanViewUsers" +{ + "role": { + "id": "61567253-c752-4680-989c-a40a73f3e4b9", + "roleName": "Editor" }, - { - "Id": "dbfb6847-7a05-49b5-b63b-b08b020389e8", - "PermissionName": "CanDeleteUsers" - }, - { - "Id": "c3dcd487-01fb-4ad9-b14d-7767809bd07c", - "PermissionName": "CanRegisterUsers" - } -] + "permissions": [ + { + "id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b", + "permissionName": "CanDeleteUsers" + }, + { + "id": "7830cd55-3585-4da1-bfad-994be8637da8", + "permissionName": "CanViewUsers" + } + ] +} ``` ### Add Role @@ -130,6 +126,16 @@ GET api/v1/auth/roles/{roleId}/permissions POST api/v1/auth/roles ``` +```json +{ + "roleName": "Editor", + "permissions": [ + "7934ff13-1ccd-4c24-bab3-6423c905e249", + "8f23e43a-bb4b-483a-99eb-7ab361df7482" + ] +} +``` + #### Add Role Response ```js @@ -138,18 +144,18 @@ POST api/v1/auth/roles ```json { - "Role": { - "Id": "e5b67972-6928-4be1-a757-e98879d4a12a", - "RoleName": "Editor" + "role": { + "id": "e5b67972-6928-4be1-a757-e98879d4a12a", + "roleName": "Editor" }, - "Permissions": [ + "permissions": [ { - "Id": "7934ff13-1ccd-4c24-bab3-6423c905e249", - "PermissionName": "CanDeleteUsers" + "id": "7934ff13-1ccd-4c24-bab3-6423c905e249", + "permissionName": "CanDeleteUsers" }, { - "Id": "8f23e43a-bb4b-483a-99eb-7ab361df7482", - "PermissionName": "CanViewUsers" + "id": "8f23e43a-bb4b-483a-99eb-7ab361df7482", + "permissionName": "CanViewUsers" } ] } @@ -165,9 +171,9 @@ PUT api/v1/auth/roles ```json { - "RoleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa", - "RoleName": "Editor", - "Permissions": [ + "roleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa", + "roleName": "Editor", + "permissions": [ "ac113d18-69bb-4162-8c05-ff7a5559059a", "3c2fd936-8d4a-4963-b237-9f8d3aeeab26" ] @@ -182,18 +188,18 @@ PUT api/v1/auth/roles ```json { - "Role": { - "Id": "61567253-c752-4680-989c-a40a73f3e4b9", - "RoleName": "Editor" + "role": { + "id": "61567253-c752-4680-989c-a40a73f3e4b9", + "roleName": "Editor" }, - "Permissions": [ + "permissions": [ { - "Id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b", - "PermissionName": "CanDeleteUsers" + "id": "5264e3a8-bdec-4ec0-9423-839f3a9afe4b", + "permissionName": "CanDeleteUsers" }, { - "Id": "7830cd55-3585-4da1-bfad-994be8637da8", - "PermissionName": "CanViewUsers" + "id": "7830cd55-3585-4da1-bfad-994be8637da8", + "permissionName": "CanViewUsers" } ] } @@ -218,7 +224,7 @@ DELETE api/v1/auth/roles/{roleId} #### Get Authorization Request ```js -GET api/v1/auth/get-authorization +GET api/v1/auth/get-authorization?userId=8e5e2be7-9f3b-4309-882b-8913dc6bda10 ``` #### Get Authorization Response @@ -229,9 +235,9 @@ GET api/v1/auth/get-authorization ```json { - "UserId": "8e5e2be7-9f3b-4309-882b-8913dc6bda10", - "Role": "Admin", - "Permissions": [ + "userId": "8e5e2be7-9f3b-4309-882b-8913dc6bda10", + "role": "Admin", + "permissions": [ "CanRegisterUsers", "CanDeleteUsers" ] @@ -255,16 +261,16 @@ GET api/v1/auth/users/{userId}/permissions ```json [ { - "Id": "52c58482-f792-4d8a-b97c-7944cf4500d5", - "PermissionName": "CanViewUsers" + "id": "52c58482-f792-4d8a-b97c-7944cf4500d5", + "permissionName": "CanViewUsers" }, { - "Id": "b3b7e562-2e42-455f-a9e7-fed38a3ff63e", - "PermissionName": "CanDeleteUsers" + "id": "b3b7e562-2e42-455f-a9e7-fed38a3ff63e", + "permissionName": "CanDeleteUsers" }, { - "Id": "43bdf58b-1edf-4909-ac43-8be1aaf191f4", - "PermissionName": "CanRegisterUsers" + "id": "43bdf58b-1edf-4909-ac43-8be1aaf191f4", + "permissionName": "CanRegisterUsers" } ] ``` @@ -285,8 +291,8 @@ GET api/v1/auth/users/{userId}/role ```json { - "Id": "54bfd571-9283-4949-bd47-9aa4416c5328", - "RoleName": "Admin" + "id": "54bfd571-9283-4949-bd47-9aa4416c5328", + "roleName": "Admin" } ``` @@ -300,8 +306,8 @@ PUT api/v1/auth/users/{userId}/role-and-permissions ```json { - "RoleId": "92e996fd-645e-4e2f-96fe-30c27e4c6423", - "Permissions": [ + "roleId": "92e996fd-645e-4e2f-96fe-30c27e4c6423", + "permissions": [ "5957ea98-3deb-4ebe-a5b9-1aafa1480558", "5b9cedf5-9fc5-44d9-bc7e-1164409dc952" ] @@ -316,9 +322,9 @@ PUT api/v1/auth/users/{userId}/role-and-permissions ```json { - "UserId": "910518c3-01a4-4622-8114-3a77eed0f392", - "Role": "Editor", - "Permissions": [ + "userId": "910518c3-01a4-4622-8114-3a77eed0f392", + "role": "Editor", + "permissions": [ "CanRegisterUsers", "CanDeleteUsers" ] diff --git a/docs/technical/api/users-management/Api.Settings.md b/docs/technical/api/users-management/Api.Settings.md new file mode 100644 index 00000000..1e3e73b4 --- /dev/null +++ b/docs/technical/api/users-management/Api.Settings.md @@ -0,0 +1,63 @@ +# Lumina API + +- [Lumina API](#lumina-api) + - [Settings](#settings) + - [Get User Settings](#get-user-settings) + - [Get User Settings Request](#get-user-settings-request) + - [Get User Settings Response](#get-user-settings-response) + - [Update User Settings](#update-user-settings) + - [Update User Settings Request](#update-user-settings-request) + - [Update User Settings Response](#update-user-settings-response) + +## Settings + +### Get User Settings + +#### Get User Settings Request + +```js +GET api/v1/users/me/settings +``` + +Returns the settings of the currently authenticated user. + +#### Get User Settings Response + +```js +200 Ok +``` + +```json +{ + "userId": "2cff0c0f-3a67-4e30-b94f-f4e948a3b64f", + "isPaginationEnabled": true, + "itemsPerPage": 50, + "ignoreThePrefixForAlphaPicker": true, + "isThemeCachingEnabled": true +} +``` + +### Update User Settings + +#### Update User Settings Request + +```js +PUT api/v1/users/me/settings +``` + +Updates the settings of the currently authenticated user. + +```json +{ + "isPaginationEnabled": true, + "itemsPerPage": 50, + "ignoreThePrefixForAlphaPicker": true, + "isThemeCachingEnabled": true +} +``` + +#### Update User Settings Response + +```js +200 Ok +``` diff --git a/docs/technical/requests/books/Add.http b/docs/technical/requests/books/Add.http index 73a9c33e..8afe7f01 100644 --- a/docs/technical/requests/books/Add.http +++ b/docs/technical/requests/books/Add.http @@ -2,8 +2,8 @@ POST {{host}}/api/v1/books Content-Type: application/json { - "libraryId": "00000000-0000-0000-0000-000000000000", - "path": "/books/the-fellowship-of-the-ring.epub", + "libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a", + "path": "/books/the-fellowship-of-the-ring.pdf", "metadata": { "title": "The Fellowship of the Ring", "originalTitle": "The Fellowship of the Ring", diff --git a/docs/technical/requests/books/GetAll.http b/docs/technical/requests/books/GetAll.http index d5353d7f..f8d5d229 100644 --- a/docs/technical/requests/books/GetAll.http +++ b/docs/technical/requests/books/GetAll.http @@ -1 +1 @@ -GET {{host}}/api/v1/books \ No newline at end of file +GET {{host}}/api/v1/books?libraryId={{$guid}} \ No newline at end of file diff --git a/docs/technical/requests/books/GetBooksLite.http b/docs/technical/requests/books/GetBooksLite.http new file mode 100644 index 00000000..609dbb6f --- /dev/null +++ b/docs/technical/requests/books/GetBooksLite.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/books/lite?libraryId={{$guid}}¤tPage=1&perPage=10 +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/books/GetById.http b/docs/technical/requests/books/GetById.http new file mode 100644 index 00000000..b2c5f4e7 --- /dev/null +++ b/docs/technical/requests/books/GetById.http @@ -0,0 +1 @@ +GET {{host}}/api/v1/books/{{$guid}} diff --git a/docs/technical/requests/library-management/AddLibrary.http b/docs/technical/requests/library-management/AddLibrary.http new file mode 100644 index 00000000..f6136db5 --- /dev/null +++ b/docs/technical/requests/library-management/AddLibrary.http @@ -0,0 +1,17 @@ +POST {{host}}/api/v1/libraries +Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: application/json + +{ + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true +} diff --git a/docs/technical/requests/library-management/CancelLibrariesScan.http b/docs/technical/requests/library-management/CancelLibrariesScan.http new file mode 100644 index 00000000..6d7f4400 --- /dev/null +++ b/docs/technical/requests/library-management/CancelLibrariesScan.http @@ -0,0 +1,2 @@ +POST {{host}}/api/v1/libraries/scans/cancel +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/CancelLibraryScan.http b/docs/technical/requests/library-management/CancelLibraryScan.http new file mode 100644 index 00000000..ff84fea8 --- /dev/null +++ b/docs/technical/requests/library-management/CancelLibraryScan.http @@ -0,0 +1,2 @@ +POST {{host}}/api/v1/libraries/{{$guid}}/scans/{{$guid}}/cancel +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/DeleteLibrary.http b/docs/technical/requests/library-management/DeleteLibrary.http new file mode 100644 index 00000000..127b9dec --- /dev/null +++ b/docs/technical/requests/library-management/DeleteLibrary.http @@ -0,0 +1,2 @@ +DELETE {{host}}/api/v1/libraries/{{$guid}} +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/GetEnabledLibraries.http b/docs/technical/requests/library-management/GetEnabledLibraries.http new file mode 100644 index 00000000..8b753e6b --- /dev/null +++ b/docs/technical/requests/library-management/GetEnabledLibraries.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/libraries/enabled +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/GetLibraries.http b/docs/technical/requests/library-management/GetLibraries.http new file mode 100644 index 00000000..2867d7a3 --- /dev/null +++ b/docs/technical/requests/library-management/GetLibraries.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/libraries +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/GetLibrary.http b/docs/technical/requests/library-management/GetLibrary.http new file mode 100644 index 00000000..c101b5eb --- /dev/null +++ b/docs/technical/requests/library-management/GetLibrary.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/libraries/{{$guid}} +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/GetLibraryScanProgress.http b/docs/technical/requests/library-management/GetLibraryScanProgress.http new file mode 100644 index 00000000..b2a7f7e9 --- /dev/null +++ b/docs/technical/requests/library-management/GetLibraryScanProgress.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/libraries/{{$guid}}/scans/{{$guid}}/progress +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/GetRunningLibraryScans.http b/docs/technical/requests/library-management/GetRunningLibraryScans.http new file mode 100644 index 00000000..9ad878f0 --- /dev/null +++ b/docs/technical/requests/library-management/GetRunningLibraryScans.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/libraries/scans/running +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/ScanLibraries.http b/docs/technical/requests/library-management/ScanLibraries.http new file mode 100644 index 00000000..9a1b6e8f --- /dev/null +++ b/docs/technical/requests/library-management/ScanLibraries.http @@ -0,0 +1,2 @@ +POST {{host}}/api/v1/libraries/scans +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/ScanLibrary.http b/docs/technical/requests/library-management/ScanLibrary.http new file mode 100644 index 00000000..2ab96d03 --- /dev/null +++ b/docs/technical/requests/library-management/ScanLibrary.http @@ -0,0 +1,2 @@ +POST {{host}}/api/v1/libraries/{{$guid}}/scans +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/library-management/UpdateLibrary.http b/docs/technical/requests/library-management/UpdateLibrary.http new file mode 100644 index 00000000..5cc9136c --- /dev/null +++ b/docs/technical/requests/library-management/UpdateLibrary.http @@ -0,0 +1,19 @@ +PUT {{host}}/api/v1/libraries/{{$guid}} +Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: application/json + +{ + "id": "{{$guid}}", + "userId": "{{$guid}}", + "title": "Books", + "libraryType": "Book", + "contentLocations": [ + "/media/books" + ], + "coverImage": null, + "isEnabled": true, + "isLocked": false, + "downloadMetadataFromWeb": true, + "shouldSaveMetadataInMediaDirectories": true, + "shouldSkipUnchangedDirectoriesDuringScan": true +} diff --git a/docs/technical/requests/maintenance/CheckHealth.http b/docs/technical/requests/maintenance/CheckHealth.http new file mode 100644 index 00000000..e3a7798d --- /dev/null +++ b/docs/technical/requests/maintenance/CheckHealth.http @@ -0,0 +1 @@ +GET {{host}}/api/v1/check-health diff --git a/docs/technical/requests/maintenance/CheckInitialization.http b/docs/technical/requests/maintenance/CheckInitialization.http new file mode 100644 index 00000000..a69688a0 --- /dev/null +++ b/docs/technical/requests/maintenance/CheckInitialization.http @@ -0,0 +1 @@ +GET {{host}}/api/v1/initialization diff --git a/docs/technical/requests/maintenance/SetupApplication.http b/docs/technical/requests/maintenance/SetupApplication.http new file mode 100644 index 00000000..db95da88 --- /dev/null +++ b/docs/technical/requests/maintenance/SetupApplication.http @@ -0,0 +1,9 @@ +POST {{host}}/api/v1/initialization +Content-Type: application/json + +{ + "username": "admin", + "password": "Abcd123$", + "passwordConfirm": "Abcd123$", + "use2fa": true +} diff --git a/docs/technical/requests/plugins/GetLibraryMetadataProviders.http b/docs/technical/requests/plugins/GetLibraryMetadataProviders.http new file mode 100644 index 00000000..13334062 --- /dev/null +++ b/docs/technical/requests/plugins/GetLibraryMetadataProviders.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/libraries/{{$guid}}/metadata-providers +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/plugins/GetPluginSettings.http b/docs/technical/requests/plugins/GetPluginSettings.http new file mode 100644 index 00000000..ead03e97 --- /dev/null +++ b/docs/technical/requests/plugins/GetPluginSettings.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/plugins/{{$guid}}/settings +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/plugins/GetPlugins.http b/docs/technical/requests/plugins/GetPlugins.http new file mode 100644 index 00000000..a9160675 --- /dev/null +++ b/docs/technical/requests/plugins/GetPlugins.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/plugins +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/plugins/ReorderLibraryMetadataProviders.http b/docs/technical/requests/plugins/ReorderLibraryMetadataProviders.http new file mode 100644 index 00000000..4e380910 --- /dev/null +++ b/docs/technical/requests/plugins/ReorderLibraryMetadataProviders.http @@ -0,0 +1,11 @@ +PUT {{host}}/api/v1/libraries/{{$guid}}/metadata-providers/reorder +Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: application/json + +{ + "libraryId": "{{$guid}}", + "pluginIds": [ + "{{$guid}}", + "{{$guid}}" + ] +} diff --git a/docs/technical/requests/plugins/SetLibraryMetadataProviderEnabled.http b/docs/technical/requests/plugins/SetLibraryMetadataProviderEnabled.http new file mode 100644 index 00000000..cdcabb4b --- /dev/null +++ b/docs/technical/requests/plugins/SetLibraryMetadataProviderEnabled.http @@ -0,0 +1,9 @@ +PUT {{host}}/api/v1/libraries/{{$guid}}/metadata-providers/{{$guid}}/enabled +Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: application/json + +{ + "libraryId": "{{$guid}}", + "pluginId": "{{$guid}}", + "isEnabled": true +} diff --git a/docs/technical/requests/plugins/UpdatePluginSettings.http b/docs/technical/requests/plugins/UpdatePluginSettings.http new file mode 100644 index 00000000..bd63b023 --- /dev/null +++ b/docs/technical/requests/plugins/UpdatePluginSettings.http @@ -0,0 +1,11 @@ +PUT {{host}}/api/v1/plugins/{{$guid}}/settings +Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: application/json + +{ + "pluginId": "{{$guid}}", + "settings": { + "language": "en", + "includeSeries": "true" + } +} diff --git a/docs/technical/requests/themes/DeleteTheme.http b/docs/technical/requests/themes/DeleteTheme.http new file mode 100644 index 00000000..b719fc86 --- /dev/null +++ b/docs/technical/requests/themes/DeleteTheme.http @@ -0,0 +1,2 @@ +DELETE {{host}}/api/v1/themes/my-theme +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/themes/GetCurrentTheme.http b/docs/technical/requests/themes/GetCurrentTheme.http new file mode 100644 index 00000000..f0bc820e --- /dev/null +++ b/docs/technical/requests/themes/GetCurrentTheme.http @@ -0,0 +1 @@ +GET {{host}}/api/v1/themes/current diff --git a/docs/technical/requests/themes/GetThemeArchive.http b/docs/technical/requests/themes/GetThemeArchive.http new file mode 100644 index 00000000..fee971e5 --- /dev/null +++ b/docs/technical/requests/themes/GetThemeArchive.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/themes/my-theme/archive +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/themes/GetThemeAsset.http b/docs/technical/requests/themes/GetThemeAsset.http new file mode 100644 index 00000000..0d4a9b14 --- /dev/null +++ b/docs/technical/requests/themes/GetThemeAsset.http @@ -0,0 +1 @@ +GET {{host}}/api/v1/themes/my-theme/assets/css/site.css diff --git a/docs/technical/requests/themes/GetThemeSettings.http b/docs/technical/requests/themes/GetThemeSettings.http new file mode 100644 index 00000000..5752b701 --- /dev/null +++ b/docs/technical/requests/themes/GetThemeSettings.http @@ -0,0 +1 @@ +GET {{host}}/api/v1/themes/settings diff --git a/docs/technical/requests/themes/GetThemeTemplate.http b/docs/technical/requests/themes/GetThemeTemplate.http new file mode 100644 index 00000000..46139b3e --- /dev/null +++ b/docs/technical/requests/themes/GetThemeTemplate.http @@ -0,0 +1 @@ +GET {{host}}/api/v1/themes/my-theme/templates/login diff --git a/docs/technical/requests/themes/GetThemes.http b/docs/technical/requests/themes/GetThemes.http new file mode 100644 index 00000000..8a1bc2ce --- /dev/null +++ b/docs/technical/requests/themes/GetThemes.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/themes +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/themes/InstallTheme.http b/docs/technical/requests/themes/InstallTheme.http new file mode 100644 index 00000000..94315971 --- /dev/null +++ b/docs/technical/requests/themes/InstallTheme.http @@ -0,0 +1,10 @@ +POST {{host}}/api/v1/themes +Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: multipart/form-data; boundary=----LuminaBoundary + +------LuminaBoundary +Content-Disposition: form-data; name="file"; filename="theme.zip" +Content-Type: application/zip + +< ./theme.zip +------LuminaBoundary-- diff --git a/docs/technical/requests/themes/RestoreTheme.http b/docs/technical/requests/themes/RestoreTheme.http new file mode 100644 index 00000000..e1a0c95f --- /dev/null +++ b/docs/technical/requests/themes/RestoreTheme.http @@ -0,0 +1,2 @@ +POST {{host}}/api/v1/themes/my-theme/restore +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/themes/SetCurrentTheme.http b/docs/technical/requests/themes/SetCurrentTheme.http new file mode 100644 index 00000000..bbbb0d5d --- /dev/null +++ b/docs/technical/requests/themes/SetCurrentTheme.http @@ -0,0 +1,7 @@ +PUT {{host}}/api/v1/themes/current +Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: application/json + +{ + "themeId": "my-theme" +} diff --git a/docs/technical/requests/users-management/authentication/ChangePassword.http b/docs/technical/requests/users-management/authentication/ChangePassword.http index d6518419..46a87cae 100644 --- a/docs/technical/requests/users-management/authentication/ChangePassword.http +++ b/docs/technical/requests/users-management/authentication/ChangePassword.http @@ -3,8 +3,8 @@ Authorization: Bearer {{ACCESS_TOKEN}} Content-Type: application/json { - "Username": "JohnDoe", - "CurrentPassword": "Abcd123$", - "NewPassword": "123$Abcd", - "NewPasswordConfirm": "123$Abcd" + "username": "JohnDoe", + "currentPassword": "Abcd123$", + "newPassword": "123$Abcd", + "newPasswordConfirm": "123$Abcd" } diff --git a/docs/technical/requests/users-management/authentication/GetUsers.http b/docs/technical/requests/users-management/authentication/GetUsers.http new file mode 100644 index 00000000..d41193fd --- /dev/null +++ b/docs/technical/requests/users-management/authentication/GetUsers.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/auth/users +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/users-management/authentication/Login.http b/docs/technical/requests/users-management/authentication/Login.http index 5cae6ae7..7dac7377 100644 --- a/docs/technical/requests/users-management/authentication/Login.http +++ b/docs/technical/requests/users-management/authentication/Login.http @@ -2,7 +2,7 @@ POST {{host}}/api/v1/auth/login Content-Type: application/json { - "Username": "a", - "Password": "Abcd123$", - "TotpCode": "123456" + "username": "JohnDoe", + "password": "Abcd123$", + "totpCode": "123456" } diff --git a/docs/technical/requests/users-management/authentication/RecoverPassword.http b/docs/technical/requests/users-management/authentication/RecoverPassword.http index 69d32fd9..02316304 100644 --- a/docs/technical/requests/users-management/authentication/RecoverPassword.http +++ b/docs/technical/requests/users-management/authentication/RecoverPassword.http @@ -2,6 +2,6 @@ POST {{host}}/api/v1/auth/recover-password Content-Type: application/json { - "Username": "JohnDoe", - "TotpCode": "123456" + "username": "JohnDoe", + "totpCode": "123456" } diff --git a/docs/technical/requests/users-management/authentication/Register.http b/docs/technical/requests/users-management/authentication/Register.http index 534d23c4..5fa27e4a 100644 --- a/docs/technical/requests/users-management/authentication/Register.http +++ b/docs/technical/requests/users-management/authentication/Register.http @@ -2,8 +2,8 @@ POST {{host}}/api/v1/auth/register Content-Type: application/json { - "Username": "JohnDoe", - "Password": "Abcd123$", - "PasswordConfirm": "Abcd123$", - "Use2fa": true + "username": "JohnDoe", + "password": "Abcd123$", + "passwordConfirm": "Abcd123$", + "use2fa": true } diff --git a/docs/technical/requests/users-management/authorization/AddRole.http b/docs/technical/requests/users-management/authorization/AddRole.http index 79f4a1c1..4b8ec2f4 100644 --- a/docs/technical/requests/users-management/authorization/AddRole.http +++ b/docs/technical/requests/users-management/authorization/AddRole.http @@ -1,2 +1,8 @@ -GET {{host}}/api/v1/auth/roles +POST {{host}}/api/v1/auth/roles Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: application/json + +{ + "roleName": "Editor", + "permissions": [] +} diff --git a/docs/technical/requests/users-management/authorization/UpdateRole.http b/docs/technical/requests/users-management/authorization/UpdateRole.http index 56b61ce0..cf16abc3 100644 --- a/docs/technical/requests/users-management/authorization/UpdateRole.http +++ b/docs/technical/requests/users-management/authorization/UpdateRole.http @@ -3,9 +3,9 @@ Authorization: Bearer {{ACCESS_TOKEN}} Content-Type: application/json { - "RoleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa", - "RoleName": "Editor", - "Permissions": [ + "roleId": "73d204e2-5922-441d-83d8-8d4d8fc29eaa", + "roleName": "Editor", + "permissions": [ "ac113d18-69bb-4162-8c05-ff7a5559059a", "3c2fd936-8d4a-4963-b237-9f8d3aeeab26" ] diff --git a/docs/technical/requests/users-management/authorization/UpdateUserRoleAndPermissions.http b/docs/technical/requests/users-management/authorization/UpdateUserRoleAndPermissions.http index 179e89a3..fda790b1 100644 --- a/docs/technical/requests/users-management/authorization/UpdateUserRoleAndPermissions.http +++ b/docs/technical/requests/users-management/authorization/UpdateUserRoleAndPermissions.http @@ -3,8 +3,8 @@ Authorization: Bearer {{ACCESS_TOKEN}} Content-Type: application/json { - "RoleId": "92e996fd-645e-4e2f-96fe-30c27e4c6423", - "Permissions": [ + "roleId": "92e996fd-645e-4e2f-96fe-30c27e4c6423", + "permissions": [ "5957ea98-3deb-4ebe-a5b9-1aafa1480558", "5b9cedf5-9fc5-44d9-bc7e-1164409dc952" ] diff --git a/docs/technical/requests/users-management/settings/GetUserSettings.http b/docs/technical/requests/users-management/settings/GetUserSettings.http new file mode 100644 index 00000000..5723f63c --- /dev/null +++ b/docs/technical/requests/users-management/settings/GetUserSettings.http @@ -0,0 +1,2 @@ +GET {{host}}/api/v1/users/me/settings +Authorization: Bearer {{ACCESS_TOKEN}} diff --git a/docs/technical/requests/users-management/settings/UpdateUserSettings.http b/docs/technical/requests/users-management/settings/UpdateUserSettings.http new file mode 100644 index 00000000..d6fdba14 --- /dev/null +++ b/docs/technical/requests/users-management/settings/UpdateUserSettings.http @@ -0,0 +1,10 @@ +PUT {{host}}/api/v1/users/me/settings +Authorization: Bearer {{ACCESS_TOKEN}} +Content-Type: application/json + +{ + "isPaginationEnabled": true, + "itemsPerPage": 50, + "ignoreThePrefixForAlphaPicker": true, + "isThemeCachingEnabled": true +}