Skip to content

Latest commit

 

History

History
200 lines (127 loc) · 3.72 KB

libraries.md

File metadata and controls

200 lines (127 loc) · 3.72 KB
label order
Libraries
99999

Libraries

All the routes related to libraries

Routes

==- [!badge text="POST" variant="success"] Create a new librarie

All parameters need to be in a json

Parameters


Body

Name Type Description Required
libName string The librarie name (unique) true
libPath string The disk path of the files true
libType string The librarie type (movies, series, games, tv, other, books) true
libUsers string A string with all users allowed to acced to the lib. Ex: "Bob, Paulo" false

Responses


Status Description
200: OK Librarie created
400: Bad Request Librarie already exist

==- [!badge text="POST" variant="success"] Edit a librarie

Parameters in the path and in a json

Parameters


Path

Name Type Description Required
libName string The librarie name (unique) true
Body

Name Type Description Required
libPath string The disk path of the files false
libType string The librarie type (movies, series, games, tv, other, books) false
libUsers string A string with all users allowed to acced to the lib. Ex: "Bob, Paulo" false

Responses


Status Description
200: OK Librarie edited
400: Bad Request Librarie doesn't exist

==- [!badge text="POST" variant="success"] Delete a librarie

Parameters in the path

Parameters


Path


Name Type Description Required
libName string The librarie name (unique) true

Responses


Status Description
200: OK Librarie deleted
400: Bad Request Librarie doesn't exist

==- [!badge text="GET"] Get all the libraries

No parameters

Responses


Status Description
200: OK All the libraries

==- [!badge text="GET"] Get all the libraries of a user

Parameters in the path

Parameters


Path


Name Type Description Required
userName string The user name true

Responses


Status Description
200: OK All the libraries of the user

==- [!badge text="GET"] Get all the libraries of a type

Parameters in the path

Parameters


Path

Name Type Description Required
libType string The librarie type (movies, series, games, tv, other, books) true

Responses


Status Description
200: OK All the libraries of the type

==- [!badge text="GET"] Rescan a librarie

Parameters in the path

Parameters


Path


Name Type Description Required
libName string The librarie name (unique) true

Responses


Status Description
200: OK Librarie rescaned
400: Bad Request Librarie doesn't exist

==- [!badge text="GET"] Rescan all the libraries

No parameters

Responses


Status Description
200: OK All the libraries rescaned

===