<
From version < 29.1 >
edited by Anca Luca
on 2011/07/15
To version < 30.1 >
edited by Eduard Moraru
on 2011/07/21
>
Change comment: Added 2 undocumented attachments resources implemented by http://jira.xwiki.org/jira/browse/XWIKI-3483

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.lucaa
1 +XWiki.enygma
Content
... ... @@ -526,7 +526,7 @@
526 526  *** 200: If the request was successful.
527 527  *** 401: If the user is not authorized.
528 528  
529 -=== /wikis/{wikiName}/wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/attachments/{attachmentName} ===
529 +=== /wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/attachments/{attachmentName} ===
530 530  
531 531  * **HTTP Method:** GET
532 532  ** **Media types:**
... ... @@ -598,6 +598,26 @@
598 598  *** 200: If the request was successful.
599 599  *** 401: If the user is not authorized.
600 600  
601 +=== /wikis/{wikiName}/spaces/{spaceName}/attachments[?name~=attachmentName&page~=pageName&author~=authorName&types~=attachmentTypeList&start~=offset&number~=n] ===
602 +
603 +* **HTTP Method:** GET
604 +** **Media types:**
605 +*** application/xml (Attachments element)
606 +** **Description:** The list of attachments of pages located in a given {spaceName}. Filters can be set for the name, page, author or types (comma separated list of strings) to include only attachments that match the given filters. This resource can be used to search for attachments in a space.
607 +** **Status codes:**
608 +*** 200: If the request was successful.
609 +*** 401: If the user is not authorized.
610 +
611 +== /wikis/{wikiName}/attachments[?name~=attachmentName&page~=pageName&space~=spaceName&author~=authorName&types~=attachmentTypeList&start~=offset&number~=n] ==
612 +
613 +* **HTTP Method:** GET
614 +** **Media types:**
615 +*** application/xml (Attachments element)
616 +** **Description:** The list of attachments in a given {wikiName}. Filters can be set for the name, page, space, author or type (comma separated list of strings) to include only attachments that match the given filters. This resource can be used to search for attachments in a wiki.
617 +** **Status codes:**
618 +*** 200: If the request was successful.
619 +*** 401: If the user is not authorized.
620 +
601 601  == Object resources ==
602 602  
603 603  === /wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/objects[?start~=offset&number~=n] ===
... ... @@ -831,4 +831,3 @@
831 831  The name of the component has to be the class FQN.
832 832  
833 833  You can find more examples on [[https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/resources]].
834 -

Get Connected