Closed Ligerx closed 5 years ago
/api/v2/categories/[COMMA SEPARATED CATEGORY IDS]/manga
to change a category's manga. Make a GET request to the same endpoint and look at the data field for an example of the POST request format. Basically, it's just an array of manga IDs. Note that the same manga can be placed in multiple categories.I took a stab at using the v3 api for this, but it's not fully implemented, so I'll stick with v2 api.
I tried calling http://localhost:4567/api/v3/categories/1/manga
with
{
"add": [
105
],
"remove": []
}
returned a 501 not implemented error
I think I'm blocked on this one for now. https://github.com/TachiWeb/TachiWeb-Server/issues/37
You can now add/delete/modify/add-manga-to categories
/api/v2/categories
to list all categories/api/v2/categories
in this format to add a category:/api/v2/categories/[COMMA SEPARATED CATEGORY IDS]/name
to change a category's name. Make a GET request to the same endpoint and look at the data field for an example of the POST request format/api/v2/categories/[COMMA SEPARATED CATEGORY IDS]/order
to change a category's order. Make a GET request to the same endpoint and look at the data field for an example of the POST request format/api/v2/categories/[COMMA SEPARATED CATEGORY IDS]/flags
to change a category's flags. Make a GET request to the same endpoint and look at the data field for an example of the POST request format/api/v2/categories/[COMMA SEPARATED CATEGORY IDS]
to delete categories.