<
From version < 28.6 >
edited by Chamika Weerasinghe
on 2011/06/19
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.chamika
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] ===
... ... @@ -615,7 +615,7 @@
615 615  * **HTTP Method:** POST
616 616  ** **Accepted media types:**
617 617  *** application/xml (Object element)
618 -*** application/x-www-formurlencoded (a set of property#name=value pairs representing properties and a field className)
638 +*** application/x-www-form-urlencoded (a set of property#name=value pairs representing properties and a field className)
619 619  ** **Media types:**
620 620  *** application/xml (Object element)
621 621  ** **Description:** Create a new object.
... ... @@ -648,7 +648,7 @@
648 648  * **HTTP Method:** PUT
649 649  ** **Accepted media types:**
650 650  *** application/xml (Object element)
651 -*** application/x-www-formurlencoded (a set of property#name=value pairs representing properties)
671 +*** application/x-www-form-urlencoded (a set of property#name=value pairs representing properties)
652 652  ** **Media types:**
653 653  *** application/xml (Object element)
654 654  ** **Description:** Modify the object properties.
... ... @@ -691,7 +691,7 @@
691 691  ** **Accepted media types:**
692 692  *** application/xml (Property element)
693 693  *** text/plain
694 -*** application/x-www-formurlencoded (a field property#name=value pairs representing a property)
714 +*** application/x-www-form-urlencoded (a field property#name=value pairs representing a property)
695 695  ** **Media types:**
696 696  *** application/xml (Property element)
697 697  ** **Description:** Modify the object properties.

Get Connected