# Libraries

# Libraries

All the routes related to libraries

# Routes

# http://ip:port/createLib

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
# http://ip:port/editLib/:libName

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
# http://ip:port/deleteLib/:libName

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
# http://ip:port/getAllLibraries

No parameters

# Responses


Status Description
200: OK All the libraries
# http://ip:port/getAllLibraries/:userName

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
# http://ip:port/getAllLibraries/:libType

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
# http://ip:port/rescan/:libName

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
# http://ip:port/rescanAll

No parameters

# Responses


Status Description
200: OK All the libraries rescaned