You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by bo...@apache.org on 2015/07/19 22:50:19 UTC
svn commit: r1691854 [3/3] - in /tapestry/tapestry-site/trunk: ./
src/main/java/org/apache/cxf/cwiki/ src/main/resources/ src/test/
src/test/resources/ src/test/resources/wadl/
Added: tapestry/tapestry-site/trunk/src/main/resources/confluence-rest.wadl
URL: http://svn.apache.org/viewvc/tapestry/tapestry-site/trunk/src/main/resources/confluence-rest.wadl?rev=1691854&view=auto
==============================================================================
--- tapestry/tapestry-site/trunk/src/main/resources/confluence-rest.wadl (added)
+++ tapestry/tapestry-site/trunk/src/main/resources/confluence-rest.wadl Sun Jul 19 20:50:18 2015
@@ -0,0 +1,451 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<application xmlns="http://wadl.dev.java.net/2009/02">
+ <resources base="https://cwiki.apache.org/confluence/rest/api/latest/">
+ <resource path="/content">
+ <method name="POST" id="createContent">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="GET" id="getContent">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="page" type="xs:string" style="query" name="type"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="spaceKey"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="title"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="status"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="postingDay"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="25" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <resource path="/{id}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="getContentById">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="status"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="version"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="history,space,version" type="xs:string" style="query" name="expand"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="PUT" id="update">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="DELETE" id="delete">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="status"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="/{id}/history/{version}/macro/hash/{hash}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="template" name="version"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="hash"/>
+ <method name="GET" id="getMacroBodyByHash">
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="/{id}/history/{version}/macro/id/{macroId}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="macroId"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="template" name="version"/>
+ <method name="GET" id="getMacroBodyByMacroId">
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="/{id}/history">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="getHistory">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="previousVersion,nextVersion,lastUpdated" type="xs:string" style="query" name="expand"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="/search">
+ <method name="GET" id="search">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="cql"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="cqlcontext"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="25" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ <resource path="/content/{id}/property">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="findAll">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="10" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="POST" id="create">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <resource path="{key}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="key"/>
+ <method name="GET" id="findByKey">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="expand"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="PUT" id="update">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="DELETE" id="delete">
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="POST" id="create">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ <resource path="/content/{id}/restriction">
+ <resource path="byOperation/{operationKey}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="operationKey"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="forOperation">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="restrictions.user,restrictions.group" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="100" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="byOperation">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="byOperation">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="update.restrictions.user,read.restrictions.group,read.restrictions.user,update.restrictions.group" type="xs:string" style="query" name="expand"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ <resource path="/contentbody/convert/{to}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="to"/>
+ <method name="POST" id="convert">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="/content/{id}/child">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="children">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="0" type="xs:int" style="query" name="parentVersion"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <resource path="/{type}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="type"/>
+ <method name="GET" id="childrenOfType">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="0" type="xs:int" style="query" name="parentVersion"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="25" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="/comment">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="commentsOfContent">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="0" type="xs:int" style="query" name="parentVersion"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="25" type="xs:int" style="query" name="limit"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="location"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="depth"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ <resource path="/content/{id}/child/attachment">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="POST" id="createAttachments">
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="GET" id="getAttachments">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="50" type="xs:int" style="query" name="limit"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="filename"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="mediaType"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <resource path="/{attachmentId}/data">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="attachmentId"/>
+ <method name="POST" id="updateData">
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="/{attachmentId}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="attachmentId"/>
+ <method name="PUT" id="update">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ <resource path="/longtask">
+ <method name="GET" id="getTasks">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="100" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <resource path="/{id}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="getTask">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ <resource path="/content/{id}/label">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="DELETE" id="deleteLabelWithQueryParam">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="name"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="POST" id="addLabels">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="GET" id="labels">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="prefix"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="200" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <resource path="/{label}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="label"/>
+ <method name="DELETE" id="deleteLabel">
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ <resource path="/content/{id}/descendant">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <method name="GET" id="descendants">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <resource path="/{type}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="id"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="type"/>
+ <method name="GET" id="descendantsOfType">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="25" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ <resource path="/space">
+ <method name="GET" id="spaces">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="spaceKey"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="25" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="POST" id="createSpace">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <resource path="{spaceKey}/content/{type}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="spaceKey"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="type"/>
+ <method name="GET" id="contentsWithType">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="all" type="xs:string" style="query" name="depth"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="25" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="_private">
+ <method name="POST" id="createPrivateSpace">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="/{spaceKey}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="spaceKey"/>
+ <method name="PUT" id="update">
+ <request>
+ <representation mediaType="application/json"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ <method name="DELETE" id="delete">
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="{spaceKey}/content">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="spaceKey"/>
+ <method name="GET" id="contents">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="all" type="xs:string" style="query" name="depth"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:int" style="query" name="start"/>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="25" type="xs:int" style="query" name="limit"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ <resource path="{spaceKey}">
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="spaceKey"/>
+ <method name="GET" id="space">
+ <request>
+ <param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="" type="xs:string" style="query" name="expand"/>
+ </request>
+ <response>
+ <representation mediaType="application/json"/>
+ </response>
+ </method>
+ </resource>
+ </resource>
+ </resources>
+</application>