Category API

Get all categories

GET http://lrr.tvc-16.science/api/categories

Get all the categories saved on the server.

[
  {
    "archives": [],
    "id": "SET_1589227137",
    "name": "doujinshi ๐Ÿ’ฆ๐Ÿ’ฆ๐Ÿ’ฆ",
    "pinned": "1",
    "search": "doujinshi"
  },
  {
    "archives": [],
    "id": "SET_1589291510",
    "name": "All archives by uo denim",
    "pinned": "0",
    "search": "artist:uo denim"
  },
  {
    "archives": [
      "b835f24b953c236b7bbb22414e4f2f1f4b51891a",
      "9ed04c35aa41be137e3e696d2001a2f6d9cbd38d",
      "8b0b6bb3d180eff607c941755695c317570d8449",
      "a5c0958ad25642e2204aff09f2cc8e70870bd81f",
      "32f0edeb5d5b3cf71a02b39279a69d0a903e4aed"
    ],
    "id": "SET_1589493021",
    "name": "The very best",
    "pinned": "0",
    "search": ""
  }
]

Get a single category

GET http://lrr.tvc-16.science/api/categories/:id

Get the details of the specified category ID.

Path Parameters

{
  "archives": [],
  "id": "SET_1613080290",
  "name": "My great category",
  "pinned": "0",
  "search": ""
}

๐Ÿ”‘Create a Category

PUT http://lrr.tvc-16.science/api/categories

Create a new Category.

Query Parameters

{
  "category_id": "SET_1589383525",
  "operation": "create_category",
  "success": 1
}

๐Ÿ”‘Update a Category

PUT http://lrr.tvc-16.science/api/categories/:id

Modify a Category.

Path Parameters

Query Parameters

{
  "category_id": "SET_1589573608",
  "operation": "update_category",
  "success": 1
}

๐Ÿ”‘Delete a Category

DELETE http://lrr.tvc-16.science/api/categories/:id

Remove a Category.

Path Parameters

{
  "operation": "delete_category",
  "success": 1
}

๐Ÿ”‘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

{
  "operation": "add_to_category",
  "success": 1,
  "successMessage": "Added \"Name of archive\" to category \"Name of category\""
}

๐Ÿ”‘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

{
  "operation": "remove_from_category",
  "success": 1
}

Last updated