wlnupdates icon indicating copy to clipboard operation
wlnupdates copied to clipboard

API endpoint for adding novels and editing them

Open sebbu2 opened this issue 5 years ago • 3 comments

When I tried to uniformise my reading lists between wlnupdates and webnovel, I found out some novels i read on webnovel aren't on wlnupdates. I read the api-docs page, but I didn't see an endpoint for adding novels, or editing them (description, tags, homepage, etc...).

sebbu2 avatar Sep 08 '20 21:09 sebbu2

There is a API endpoint (the webpage editing facilities operate using the API), I've just not documented them.

For the moment, you probably want to look at editable.js and process_series_update_json which lives behind the series-update api endpoint.

The one thing I don't have currently is a API endpoint for creating series, but I can add that pretty easily. Otherwise, all the editing stuff on the site is implemented via the API as-is using client-side JS.

fake-name avatar Sep 12 '20 09:09 fake-name

I got a weird 500 error when using the series-updates endpoint: {"mode": "series-update", "item-id": 47429, "entries": [ { "key": "website-container", "type": "singleitem", "value": "https://www.webnovel.com/book/abyss-domination_11479586806389905" } ] } instead of adding the website to the entry, it returns a 500 error. others edit works, but returns {"error": false, "message": "Wat?!"}

sebbu2 avatar Oct 09 '20 16:10 sebbu2

others edit works, but returns {"error": false, "message": "Wat?!"}

looks like it's working correctly, but that's a terrible return message

I'll change that to something more reasonable.

Not sure what's going on with the series-update endpoint. I'm kind of moving at the moment, I'll see if I can get some time together.

fake-name avatar Oct 10 '20 06:10 fake-name