mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 11:01:10 +00:00
Updates API documentation
This commit is contained in:
1 parent
53ec400921
commit
629e6e463e
59 files changed
+1558
-192
No files matched your search
@@ -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",
|
||||
|
||||
@@ -1 +1 @@
|
||||
GET {{host}}/api/v1/books
|
||||
GET {{host}}/api/v1/books?libraryId={{$guid}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/books/lite?libraryId={{$guid}}¤tPage=1&perPage=10
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1 @@
|
||||
GET {{host}}/api/v1/books/{{$guid}}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
POST {{host}}/api/v1/libraries/scans/cancel
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
POST {{host}}/api/v1/libraries/{{$guid}}/scans/{{$guid}}/cancel
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
DELETE {{host}}/api/v1/libraries/{{$guid}}
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/libraries/enabled
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/libraries
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/libraries/{{$guid}}
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/libraries/{{$guid}}/scans/{{$guid}}/progress
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/libraries/scans/running
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
POST {{host}}/api/v1/libraries/scans
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
POST {{host}}/api/v1/libraries/{{$guid}}/scans
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
GET {{host}}/api/v1/check-health
|
||||
@@ -0,0 +1 @@
|
||||
GET {{host}}/api/v1/initialization
|
||||
@@ -0,0 +1,9 @@
|
||||
POST {{host}}/api/v1/initialization
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "admin",
|
||||
"password": "Abcd123$",
|
||||
"passwordConfirm": "Abcd123$",
|
||||
"use2fa": true
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/libraries/{{$guid}}/metadata-providers
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/plugins/{{$guid}}/settings
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/plugins
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -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}}"
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
DELETE {{host}}/api/v1/themes/my-theme
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1 @@
|
||||
GET {{host}}/api/v1/themes/current
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/themes/my-theme/archive
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1 @@
|
||||
GET {{host}}/api/v1/themes/my-theme/assets/css/site.css
|
||||
@@ -0,0 +1 @@
|
||||
GET {{host}}/api/v1/themes/settings
|
||||
@@ -0,0 +1 @@
|
||||
GET {{host}}/api/v1/themes/my-theme/templates/login
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/themes
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -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--
|
||||
@@ -0,0 +1,2 @@
|
||||
POST {{host}}/api/v1/themes/my-theme/restore
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -0,0 +1,7 @@
|
||||
PUT {{host}}/api/v1/themes/current
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"themeId": "my-theme"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/auth/users
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -2,6 +2,6 @@ POST {{host}}/api/v1/auth/recover-password
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"Username": "JohnDoe",
|
||||
"TotpCode": "123456"
|
||||
"username": "JohnDoe",
|
||||
"totpCode": "123456"
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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": []
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
|
||||
+2
-2
@@ -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"
|
||||
]
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
GET {{host}}/api/v1/users/me/settings
|
||||
Authorization: Bearer {{ACCESS_TOKEN}}
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user