Category API
Get all categories
GET
http://lrr.tvc-16.science/api/categories
Get all the categories saved on the server.
Get a single category
GET
http://lrr.tvc-16.science/api/categories/:id
Get the details of the specified category ID.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | ID of the Category desired. |
πCreate a Category
PUT
http://lrr.tvc-16.science/api/categories
Create a new Category.
Query Parameters
Name | Type | Description |
---|---|---|
pinned | boolean | Add this parameter if you want the created category to be pinned. |
search | string | Matching predicate, if creating a Dynamic Category. |
name* | string | Name of the Category. |
πUpdate a Category
PUT
http://lrr.tvc-16.science/api/categories/:id
Modify a Category.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | ID of the Category to update. |
Query Parameters
Name | Type | Description |
---|---|---|
name | string | New name of the Category |
search | string | Predicate. Trying to add a predicate to a category that already contains Archives will give you an error. |
pinned | boolean | Add this argument to pin the Category. \ If you don't, the category will be unpinned on update. |
πDelete a Category
DELETE
http://lrr.tvc-16.science/api/categories/:id
Remove a Category.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | ID of the Category to delete. |
πAdd an Archive to a Category
PUT
http://lrr.tvc-16.science/api/categories/:id/:archive
Adds the specified Archive ID (see Archive API) to the given Category.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | Category ID to add the Archive to. |
archive* | string | Archive ID to add. |
πRemove an Archive from a Category
DELETE
http://lrr.tvc-16.science/api/categories/:id/:archive
Remove an Archive ID from a Category.
Path Parameters
Name | Type | Description |
---|---|---|
id* | string | Category ID |
archive* | string | Archive ID |
Last updated