Hello, I'm new here.
I want to save some content from a forum that uses Flarum. Usually I save html pages in the browser but this doesn't work with dynamically loaded content like Flarum, since content doesn't stay loaded as you scroll.
Its a small private forum that is about to die and be taken offline.
I found the REST API here - https://docs.flarum.org/rest-api/#access-tokens
I was able to make a POST and get an access token
I looked at the JS docs - https://api.docs.flarum.org/js/v1.8.0/index.html, but it doesn't list endpoints.
what are the next steps?
- do I get list of all discussions using GET /api/discussions, how then do you get all the posts in a given discussion?
- how do you get content of a discussion including all posts - this probably needs pagination?
- can you get content of a single discussion directly using its forum url/id?
also in this sample url - https://discuss.flarum.org/d/37239-relations-on-custom-resource-not-working, is the discussion id 37239
- is content returned as html/text? I want to have an offline html file so I guess I have to build my own right?
are there any examples of this, maybe sample code or are there any JS/python clients that use the JS api?
sorry if I missed anything. I'd really like to be able to do this, thanks!