Hello everyone!
So, I uploaded various attachments to a page called “API_Test_1”. These attachments are pdf_1.pdf, pdf_2.pdf, and mp3_1.mp3 I’m trying to configure Postman to hit the page and retrieve data/attachments. After looking through the documentation, I managed to get an idea of how to use GET to retrieve some data–
I used GET for http://server:port/xwiki/rest and managed to get a 200 status which is good and provided some correct information.
However, when I attempted to access the page specifically as: http://server:port/xwiki/bin/view/Dashboard/API_Test_1/ I got a 404. Do I use params and put name then API_Test_1? How do I access the attachments as well?
I’m fairly new to both XWiki and APIs so any resources or advice you can provide is certainly welcomed.
EDIT: Given the information provided earlier in this post (the page I’m trying to get the attachments from is: http://server:port/xwiki/bin/view/Dashboard/API_Test_1/ ), what do we plug into here exactly?
/wikis/{wikiName}/spaces/{spaceName}[/spaces/{nestedSpaceName}]*/pages/{pageName}/attachments[?start=offset&number=n]
- is Dashboard the wikiName or space name?
- What/where do I find what the nestedSpaceName is?
3.I know API_Test_1 is my page name. - Will I need any sort of code of access to access these resources?
Thank you for your time and patience!