Debian Codegraph @

src/launchpadlib/testing/testing-wadl.xml

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