testing-wadl.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. <?xml version="1.0"?>
  2. <!DOCTYPE application [
  3. <!ENTITY nbsp "\&#160;">
  4. ]>
  5. <wadl:application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xmlns="http://research.sun.com/wadl/2006/10"
  7. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  8. xmlns:wadl="http://research.sun.com/wadl/2006/10"
  9. xsi:schemaLocation="http://research.sun.com/wadl/2006/10/wadl.xsd">
  10. <wadl:resources base="https://api.example.com/testing/">
  11. <wadl:resource path="" type="#service-root"/>
  12. </wadl:resources>
  13. <!--A "service root" resource responds to GET.-->
  14. <wadl:resource_type id="service-root">
  15. <wadl:method name="GET" id="service-root-get">
  16. <wadl:response>
  17. <wadl:representation href="#service-root-json"/>
  18. <wadl:representation mediaType="application/vnd.sun.wadl+xml" id="service-root-wadl"/>
  19. </wadl:response>
  20. </wadl:method>
  21. </wadl:resource_type>
  22. <wadl:representation mediaType="application/json" id="service-root-json">
  23. <wadl:param style="plain"
  24. path="$['branches_collection_link']"
  25. name="branches_collection_link">
  26. <wadl:link resource_type="https://api.example.com/testing/#branches"/>
  27. </wadl:param>
  28. <wadl:param style="plain"
  29. path="$['bugs_collection_link']"
  30. name="bugs_collection_link">
  31. <wadl:link resource_type="https://api.example.com/testing/#bugs"/>
  32. </wadl:param>
  33. <wadl:param style="plain" path="$['me_link']"
  34. name="me_link">
  35. <wadl:link resource_type="https://api.example.com/testing/#person"/>
  36. </wadl:param>
  37. </wadl:representation>
  38. <wadl:resource_type id="person">
  39. <wadl:method name="GET" id="person-get">
  40. <wadl:response>
  41. <wadl:representation
  42. href="https://api.example.com/testing/#person-full"/>
  43. <wadl:representation
  44. mediaType="application/xhtml+xml" id="person-xhtml"/>
  45. <wadl:representation
  46. mediaType="application/vnd.sun.wadl+xml"
  47. id="person-wadl"/>
  48. </wadl:response>
  49. </wadl:method>
  50. <wadl:method name="PUT" id="person-put">
  51. <wadl:request>
  52. <wadl:representation
  53. href="https://api.example.com/testing/#person-full"/>
  54. </wadl:request>
  55. </wadl:method>
  56. <wadl:method name="PATCH" id="person-patch">
  57. <wadl:request>
  58. <wadl:representation
  59. href="https://api.example.com/testing/#person-diff"/>
  60. </wadl:request>
  61. </wadl:method>
  62. <wadl:method id="person-getBranches" name="GET">
  63. <wadl:request>
  64. <wadl:param style="query" name="ws.op"
  65. required="true" fixed="getBranches"/>
  66. <wadl:param style="query" required="false"
  67. type="xsd:dateTime"
  68. name="modified_since">
  69. </wadl:param>
  70. <wadl:param style="query" required="false"
  71. name="status">
  72. </wadl:param>
  73. </wadl:request>
  74. <wadl:response>
  75. <wadl:representation href="https://api.example.com/testing/#branch-page"/>
  76. </wadl:response>
  77. </wadl:method>
  78. <wadl:method id="person-getPPAByName" name="GET">
  79. <wadl:request>
  80. <wadl:param style="query" name="ws.op"
  81. required="true" fixed="getPPAByName"/>
  82. <wadl:param style="query" required="true"
  83. name="name">
  84. </wadl:param>
  85. </wadl:request>
  86. <wadl:response>
  87. <wadl:representation href="https://api.example.com/testing/#archive-full"/>
  88. </wadl:response>
  89. </wadl:method>
  90. </wadl:resource_type>
  91. <wadl:representation mediaType="application/json"
  92. id="person-full">
  93. <wadl:param style="plain" name="self_link" path="$['self_link']">
  94. <wadl:link resource_type="https://api.example.com/testing/#person"/>
  95. </wadl:param>
  96. <wadl:param style="plain" name="web_link"
  97. path="$['web_link']">
  98. <wadl:link/>
  99. </wadl:param>
  100. <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
  101. <wadl:link/>
  102. </wadl:param>
  103. <wadl:param style="plain" name="http_etag" path="$['http_etag']">
  104. </wadl:param>
  105. <wadl:param style="plain" required="true"
  106. path="$['date_created']"
  107. type="xsd:dateTime" name="date_created">
  108. </wadl:param>
  109. <wadl:param style="plain" required="true"
  110. path="$['display_name']"
  111. name="display_name">
  112. </wadl:param>
  113. <wadl:param style="plain" required="true"
  114. path="$['name']" name="name">
  115. </wadl:param>
  116. </wadl:representation>
  117. <wadl:resource_type id="branch">
  118. <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
  119. A Bazaar branch.
  120. </wadl:doc>
  121. <wadl:method name="GET" id="branch-get">
  122. <wadl:response>
  123. <wadl:representation
  124. href="https://api.example.com/testing/#branch-full"/>
  125. <wadl:representation
  126. mediaType="application/xhtml+xml" id="branch-xhtml"/>
  127. <wadl:representation
  128. mediaType="application/vnd.sun.wadl+xml"
  129. id="branch-wadl"/>
  130. </wadl:response>
  131. </wadl:method>
  132. <wadl:method name="PUT" id="branch-put">
  133. <wadl:request>
  134. <wadl:representation
  135. href="https://api.example.com/testing/#branch-full"/>
  136. </wadl:request>
  137. </wadl:method>
  138. <wadl:method name="PATCH" id="branch-patch">
  139. <wadl:request>
  140. <wadl:representation
  141. href="https://api.example.com/testing/#branch-diff"/>
  142. </wadl:request>
  143. </wadl:method>
  144. <wadl:method name="DELETE" id="branch-delete"/>
  145. <wadl:method id="branch-canBeDeleted" name="GET">
  146. <wadl:request>
  147. <wadl:param style="query" name="ws.op" required="true" fixed="canBeDeleted"/>
  148. </wadl:request>
  149. </wadl:method>
  150. </wadl:resource_type>
  151. <wadl:representation mediaType="application/json"
  152. id="branch-full">
  153. <wadl:param style="plain" name="self_link" path="$['self_link']">
  154. <wadl:link resource_type="https://api.example.com/testing/#branch"/>
  155. </wadl:param>
  156. <wadl:param style="plain" name="web_link"
  157. path="$['web_link']">
  158. <wadl:link/>
  159. </wadl:param>
  160. <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
  161. <wadl:link/>
  162. </wadl:param>
  163. <wadl:param style="plain" name="http_etag" path="$['http_etag']">
  164. </wadl:param>
  165. <wadl:param style="plain" required="true"
  166. path="$['bzr_identity']"
  167. name="bzr_identity">
  168. </wadl:param>
  169. <wadl:param style="plain" required="true"
  170. path="$['unique_name']" name="unique_name">
  171. </wadl:param>
  172. <wadl:param style="plain" required="true"
  173. path="$['name']" name="name">
  174. </wadl:param>
  175. <wadl:param style="plain" required="true" name="linked_bugs_collection_link" path="$['linked_bugs_collection_link']">
  176. <wadl:doc xmlns="http://www.w3.org/1999/xhtml">The bugs linked to this branch.</wadl:doc>
  177. <wadl:link resource_type="https://api.example.com/testing/#bug-page-resource"/>
  178. </wadl:param>
  179. </wadl:representation>
  180. <wadl:resource_type id="branches">
  181. <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
  182. Interface representing the set of branches.
  183. </wadl:doc>
  184. <wadl:method name="GET" id="branches-get">
  185. <wadl:response>
  186. <wadl:representation
  187. href="https://api.example.com/testing/#branch-page"/>
  188. <wadl:representation
  189. mediaType="application/vnd.sun.wadl+xml"
  190. id="branches-wadl"/>
  191. </wadl:response>
  192. </wadl:method>
  193. <wadl:method id="branches-getByUniqueName" name="GET">
  194. <wadl:request>
  195. <wadl:param style="query" name="ws.op"
  196. required="true"
  197. fixed="getByUniqueName">
  198. </wadl:param>
  199. <wadl:param style="query" required="true"
  200. name="unique_name">
  201. </wadl:param>
  202. </wadl:request>
  203. <wadl:response>
  204. <wadl:representation
  205. href="https://api.example.com/testing/#branch-full"/>
  206. </wadl:response>
  207. </wadl:method>
  208. </wadl:resource_type>
  209. <wadl:resource_type id="branch-page-resource">
  210. <wadl:method name="GET" id="branch-page-resource-get">
  211. <wadl:response>
  212. <wadl:representation href="#branch-page"/>
  213. </wadl:response>
  214. </wadl:method>
  215. </wadl:resource_type>
  216. <wadl:representation mediaType="application/json"
  217. id="branch-page">
  218. <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
  219. <wadl:link/>
  220. </wadl:param>
  221. <wadl:param style="plain" name="total_size"
  222. path="$['total_size']" required="true"/>
  223. <wadl:param style="plain" name="start" path="$['start']" required="true"/>
  224. <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
  225. <wadl:link resource_type="#branch-page-resource"/>
  226. </wadl:param>
  227. <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
  228. <wadl:link resource_type="#branch-page-resource"/>
  229. </wadl:param>
  230. <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
  231. <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
  232. <wadl:link resource_type="https://api.example.com/testing/#branch"/>
  233. </wadl:param>
  234. </wadl:representation>
  235. <wadl:resource_type id="bugs">
  236. <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
  237. Application root for malone.
  238. </wadl:doc>
  239. <wadl:method name="GET" id="bugs-get">
  240. <wadl:response>
  241. <wadl:representation
  242. href="https://api.example.com/testing/#bug-page"/>
  243. <wadl:representation
  244. mediaType="application/vnd.sun.wadl+xml" id="bugs-wadl"/>
  245. </wadl:response>
  246. </wadl:method>
  247. </wadl:resource_type>
  248. <wadl:resource_type id="bug-page-resource">
  249. <wadl:method name="GET" id="bug-page-resource-get">
  250. <wadl:response>
  251. <wadl:representation href="#bug-page"/>
  252. </wadl:response>
  253. </wadl:method>
  254. </wadl:resource_type>
  255. <wadl:representation mediaType="application/json"
  256. id="bug-page">
  257. <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
  258. <wadl:link/>
  259. </wadl:param>
  260. <wadl:param style="plain" name="total_size"
  261. path="$['total_size']" required="true"/>
  262. <wadl:param style="plain" name="start" path="$['start']" required="true"/>
  263. <wadl:param style="plain" name="next_collection_link" path="$['next_collection_link']">
  264. <wadl:link resource_type="#bug-page-resource"/>
  265. </wadl:param>
  266. <wadl:param style="plain" name="prev_collection_link" path="$['prev_collection_link']">
  267. <wadl:link resource_type="#bug-page-resource"/>
  268. </wadl:param>
  269. <wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
  270. <wadl:param style="plain" name="entry_links" path="$['entries'][*]['self_link']">
  271. <wadl:link resource_type="https://api.example.com/testing/#bug"/>
  272. </wadl:param>
  273. </wadl:representation>
  274. <wadl:resource_type id="bug">
  275. <wadl:doc xmlns="http://www.w3.org/1999/xhtml">
  276. The core bug entry.
  277. </wadl:doc>
  278. <wadl:method name="GET" id="bug-get">
  279. <wadl:response>
  280. <wadl:representation
  281. href="https://api.example.com/testing/#bug-full"/>
  282. <wadl:representation
  283. mediaType="application/xhtml+xml" id="bug-xhtml"/>
  284. <wadl:representation
  285. mediaType="application/vnd.sun.wadl+xml" id="bug-wadl"/>
  286. </wadl:response>
  287. </wadl:method>
  288. <wadl:method name="PUT" id="bug-put">
  289. <wadl:request>
  290. <wadl:representation
  291. href="https://api.example.com/testing/#bug-full"/>
  292. </wadl:request>
  293. </wadl:method>
  294. <wadl:method name="PATCH" id="bug-patch">
  295. <wadl:request>
  296. <wadl:representation
  297. href="https://api.example.com/testing/#bug-diff"/>
  298. </wadl:request>
  299. </wadl:method>
  300. </wadl:resource_type>
  301. <wadl:representation mediaType="application/json"
  302. id="bug-full">
  303. <wadl:param style="plain" name="self_link" path="$['self_link']">
  304. <wadl:link resource_type="https://api.example.com/testing/#bug"/>
  305. </wadl:param>
  306. <wadl:param style="plain" name="web_link"
  307. path="$['web_link']">
  308. <wadl:link/>
  309. </wadl:param>
  310. <wadl:param style="plain" name="resource_type_link" path="$['resource_type_link']">
  311. <wadl:link/>
  312. </wadl:param>
  313. <wadl:param style="plain" name="http_etag" path="$['http_etag']">
  314. </wadl:param>
  315. <wadl:param style="plain" required="true"
  316. path="$['id']" name="id">
  317. </wadl:param>
  318. <wadl:param style="plain" required="true"
  319. path="$['title']" name="title">
  320. </wadl:param>
  321. <wadl:param style="plain" required="true" name="owner_link" path="$['owner_link']">
  322. <wadl:doc xmlns="http://www.w3.org/1999/xhtml">The owner's IPerson</wadl:doc>
  323. <wadl:link resource_type="https://api.example.com/testing/#person"/>
  324. </wadl:param>
  325. </wadl:representation>
  326. </wadl:application>