So i am using the Rest Api to extract a space from confluence.
If i request the next site with the next link on spaces it answers with a 400 bad request but using the exact same link in the browser works.
I thought it could be a problem with the login but using another resttemplate without authentication is resulting in a 403.
Any help or advice appreciated.
Hello @thomas.fregin !
As I understand, you need to read content from your Confluence Spaces via REST API but faces a 400 message when trying to do so.
However, it is not totally clear what you mean by “next site”. With this in mind, I would like to ask you a few questions:
- What is the REST API call that you are trying to use?
- What do you mean by “Next site”?
- Has this worked at some point?
Here is our documentation on REST API:
Let us hear from you!
Hello @Diego
The next link didnt work for me so far or better to say i cant use it in rest. If i try to call any of the links in the browser it works flawlessly. So i am trying to receive an answer on the following rest call for the space and pages:
ResponseEntity<String>contentJson=restTemplate.getForEntity(<the url of our page+the next link>,String.class);
using the next link as described here => https://developer.atlassian.com/server/confluence/pagination-in-the-rest-api/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.