123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- <?xml version="1.0"?>
- <!DOCTYPE application [
- <!ENTITY nbsp "\ ">
- ]>
- <wadl:application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://research.sun.com/wadl/2006/10"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:wadl="http://research.sun.com/wadl/2006/10"
- xsi:schemaLocation="http://research.sun.com/wadl/2006/10/wadl.xsd">
- <wadl:resources base="https://api.example.com/testing/">
- <wadl:resource path="" type="#service-root"/>
- </wadl:resources>
- <!--A "service root" resource responds to GET.-->
- <wadl:resource_type id="service-root">
- <wadl:method name="GET" id="service-root-get">
- <wadl:response>
- <wadl:representation href="#service-root-json"/>
- <wadl:representation mediaType="application/vnd.sun.wadl+xml" id="service-root-wadl"/>
- </wadl:response>
- </wadl:method>
- </wadl:resource_type>
- <wadl:representation mediaType="application/json" id="service-root-json">
- <wadl:param style="plain"
- path="$['branches_collection_link']"
- name="branches_collection_link">
- <wadl:link resource_type="https://api.example.com/testing/#branches"/>
- </wadl:param>
- <wadl:param style="plain"
- path="$['bugs_collection_link']"
- name="bugs_collection_link">
- <wadl:link resource_type="https://api.example.com/testing/#bugs"/>
- </wadl:param>
- <wadl:param style="plain" path="$['me_link']"
- name="me_link">
- <wadl:link resource_type="https://api.example.com/testing/#person"/>
- </wadl:param>
- </wadl:representation>
- <wadl:resource_type id="person">
- <wadl:method name="GET" id="person-get">
- <wadl:response>
- <wadl:representation
- href="https://api.example.com/testing/#person-full"/>
- <wadl:representation
- mediaType="application/xhtml+xml" id="person-xhtml"/>
- <wadl:representation
- mediaType="application/vnd.sun.wadl+xml"
- id="person-wadl"/>
- </wadl:response>
- </wadl:method>
- <wadl:method name="PUT" id="person-put">
- <wadl:request>
- <wadl:representation
- href="https://api.example.com/testing/#person-full"/>
- </wadl:request>
- </wadl:method>
- <wadl:method name="PATCH" id="person-patch">
- <wadl:request>
- <wadl:representation
- href="https://api.example.com/testing/#person-diff"/>
- </wadl:request>
- </wadl:method>
- <wadl:method id="person-getBranches" name="GET">
- <wadl:request>
- <wadl:param style="query" name="ws.op"
- required="true" fixed="getBranches"/>
- <wadl:param style="query" required="false"
- type="xsd:dateTime"
- name="modified_since">
- </wadl:param>
- <wadl:param style="query" required="false"
- name="status">
- </wadl:param>
- </wadl:request>
- <wadl:response>
- <wadl:representation href="https://api.example.com/testing/#branch-page"/>
- </wadl:response>
- </wadl:method>
- <wadl:method id="person-getPPAByName" name="GET">
- <wadl:request>
- <wadl:param style="query" name="ws.op"
- required="true" fixed="getPPAByName"/>
- <wadl:param style="query" required="true"
- name="name">
- </wadl:param>
- </wadl:request>
- <wadl:response>
- <wadl:representation href="https://api.example.com/testing/#archive-full"/>
- </wadl:response>
- </wadl:method>
- </wadl:resource_type>
- <wadl:representation mediaType="application/json"
- id="person-full">
- <wadl:param style="plain" name="self_link" path="$['self_link']">
- <wadl:link resource_type="https://api.example.com/testing/#person"/>
- </wadl:param>
- <wadl:param style="plain" name="web_link"
- path="$['web_link']">
- <wadl:link/>
- </wadl:param>
- <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
- <wadl:link/>
- </wadl:param>
- <wadl:param style="plain" name="http_etag" path="$['http_etag']">
- </wadl:param>
- <wadl:param style="plain" required="true"
- path="$['date_created']"
- type="xsd:dateTime" name="date_created">
- </wadl:param>
- <wadl:param style="plain" required="true"
- path="$['display_name']"
- name="display_name">
- </wadl:param>
- <wadl:param style="plain" required="true"
- path="$['name']" name="name">
- </wadl:param>
- </wadl:representation>
- <wadl:resource_type id="branch">
- <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
- A Bazaar branch.
- </wadl:doc>
- <wadl:method name="GET" id="branch-get">
- <wadl:response>
- <wadl:representation
- href="https://api.example.com/testing/#branch-full"/>
- <wadl:representation
- mediaType="application/xhtml+xml" id="branch-xhtml"/>
- <wadl:representation
- mediaType="application/vnd.sun.wadl+xml"
- id="branch-wadl"/>
- </wadl:response>
- </wadl:method>
- <wadl:method name="PUT" id="branch-put">
- <wadl:request>
- <wadl:representation
- href="https://api.example.com/testing/#branch-full"/>
- </wadl:request>
- </wadl:method>
- <wadl:method name="PATCH" id="branch-patch">
- <wadl:request>
- <wadl:representation
- href="https://api.example.com/testing/#branch-diff"/>
- </wadl:request>
- </wadl:method>
- <wadl:method name="DELETE" id="branch-delete"/>
- <wadl:method id="branch-canBeDeleted" name="GET">
- <wadl:request>
- <wadl:param style="query" name="ws.op" required="true" fixed="canBeDeleted"/>
- </wadl:request>
- </wadl:method>
- </wadl:resource_type>
- <wadl:representation mediaType="application/json"
- id="branch-full">
- <wadl:param style="plain" name="self_link" path="$['self_link']">
- <wadl:link resource_type="https://api.example.com/testing/#branch"/>
- </wadl:param>
- <wadl:param style="plain" name="web_link"
- path="$['web_link']">
- <wadl:link/>
- </wadl:param>
- <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
- <wadl:link/>
- </wadl:param>
- <wadl:param style="plain" name="http_etag" path="$['http_etag']">
- </wadl:param>
- <wadl:param style="plain" required="true"
- path="$['bzr_identity']"
- name="bzr_identity">
- </wadl:param>
- <wadl:param style="plain" required="true"
- path="$['unique_name']" name="unique_name">
- </wadl:param>
- <wadl:param style="plain" required="true"
- path="$['name']" name="name">
- </wadl:param>
- <wadl:param style="plain" required="true" name="linked_bugs_collection_link" path="$['linked_bugs_collection_link']">
- <wadl:doc xmlns="http://www.w3.org/1999/xhtml">The bugs linked to this branch.</wadl:doc>
- <wadl:link resource_type="https://api.example.com/testing/#bug-page-resource"/>
- </wadl:param>
- </wadl:representation>
- <wadl:resource_type id="branches">
- <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
- Interface representing the set of branches.
- </wadl:doc>
- <wadl:method name="GET" id="branches-get">
- <wadl:response>
- <wadl:representation
- href="https://api.example.com/testing/#branch-page"/>
- <wadl:representation
- mediaType="application/vnd.sun.wadl+xml"
- id="branches-wadl"/>
- </wadl:response>
- </wadl:method>
- <wadl:method id="branches-getByUniqueName" name="GET">
- <wadl:request>
- <wadl:param style="query" name="ws.op"
- required="true"
- fixed="getByUniqueName">
- </wadl:param>
- <wadl:param style="query" required="true"
- name="unique_name">
- </wadl:param>
- </wadl:request>
- <wadl:response>
- <wadl:representation
- href="https://api.example.com/testing/#branch-full"/>
- </wadl:response>
- </wadl:method>
- </wadl:resource_type>
- <wadl:resource_type id="branch-page-resource">
- <wadl:method name="GET" id="branch-page-resource-get">
- <wadl:response>
- <wadl:representation href="#branch-page"/>
- </wadl:response>
- </wadl:method>
- </wadl:resource_type>
- <wadl:representation mediaType="application/json"
- id="branch-page">
- <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
- <wadl:link/>
- </wadl:param>
- <wadl:param style="plain" name="total_size"
- path="$['total_size']" required="true"/>
- <wadl:param style="plain" name="start" path="$['start']" required="true"/>
- <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
- <wadl:link resource_type="#branch-page-resource"/>
- </wadl:param>
- <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
- <wadl:link resource_type="#branch-page-resource"/>
- </wadl:param>
- <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
- <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
- <wadl:link resource_type="https://api.example.com/testing/#branch"/>
- </wadl:param>
- </wadl:representation>
- <wadl:resource_type id="bugs">
- <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
- Application root for malone.
- </wadl:doc>
- <wadl:method name="GET" id="bugs-get">
- <wadl:response>
- <wadl:representation
- href="https://api.example.com/testing/#bug-page"/>
- <wadl:representation
- mediaType="application/vnd.sun.wadl+xml" id="bugs-wadl"/>
- </wadl:response>
- </wadl:method>
- </wadl:resource_type>
- <wadl:resource_type id="bug-page-resource">
- <wadl:method name="GET" id="bug-page-resource-get">
- <wadl:response>
- <wadl:representation href="#bug-page"/>
- </wadl:response>
- </wadl:method>
- </wadl:resource_type>
- <wadl:representation mediaType="application/json"
- id="bug-page">
- <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
- <wadl:link/>
- </wadl:param>
- <wadl:param style="plain" name="total_size"
- path="$['total_size']" required="true"/>
- <wadl:param style="plain" name="start" path="$['start']" required="true"/>
- <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
- <wadl:link resource_type="#bug-page-resource"/>
- </wadl:param>
- <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
- <wadl:link resource_type="#bug-page-resource"/>
- </wadl:param>
- <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
- <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
- <wadl:link resource_type="https://api.example.com/testing/#bug"/>
- </wadl:param>
- </wadl:representation>
- <wadl:resource_type id="bug">
- <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
- The core bug entry.
- </wadl:doc>
- <wadl:method name="GET" id="bug-get">
- <wadl:response>
- <wadl:representation
- href="https://api.example.com/testing/#bug-full"/>
- <wadl:representation
- mediaType="application/xhtml+xml" id="bug-xhtml"/>
- <wadl:representation
- mediaType="application/vnd.sun.wadl+xml" id="bug-wadl"/>
- </wadl:response>
- </wadl:method>
- <wadl:method name="PUT" id="bug-put">
- <wadl:request>
- <wadl:representation
- href="https://api.example.com/testing/#bug-full"/>
- </wadl:request>
- </wadl:method>
- <wadl:method name="PATCH" id="bug-patch">
- <wadl:request>
- <wadl:representation
- href="https://api.example.com/testing/#bug-diff"/>
- </wadl:request>
- </wadl:method>
- </wadl:resource_type>
- <wadl:representation mediaType="application/json"
- id="bug-full">
- <wadl:param style="plain" name="self_link" path="$['self_link']">
- <wadl:link resource_type="https://api.example.com/testing/#bug"/>
- </wadl:param>
- <wadl:param style="plain" name="web_link"
- path="$['web_link']">
- <wadl:link/>
- </wadl:param>
- <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
- <wadl:link/>
- </wadl:param>
- <wadl:param style="plain" name="http_etag" path="$['http_etag']">
- </wadl:param>
- <wadl:param style="plain" required="true"
- path="$['id']" name="id">
- </wadl:param>
- <wadl:param style="plain" required="true"
- path="$['title']" name="title">
- </wadl:param>
- <wadl:param style="plain" required="true" name="owner_link" path="$['owner_link']">
- <wadl:doc xmlns="http://www.w3.org/1999/xhtml">The owner's IPerson</wadl:doc>
- <wadl:link resource_type="https://api.example.com/testing/#person"/>
- </wadl:param>
- </wadl:representation>
- </wadl:application>
|