1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rest.resources.attachments; |
21 |
|
|
22 |
|
import javax.ws.rs.DELETE; |
23 |
|
import javax.ws.rs.GET; |
24 |
|
import javax.ws.rs.PUT; |
25 |
|
import javax.ws.rs.Path; |
26 |
|
import javax.ws.rs.PathParam; |
27 |
|
import javax.ws.rs.core.Response; |
28 |
|
|
29 |
|
import org.xwiki.rest.XWikiRestException; |
30 |
|
|
31 |
|
|
32 |
|
@version |
33 |
|
|
34 |
|
@Path("/wikis/{wikiName}/spaces/{spaceName: .+}/pages/{pageName}/attachments/{attachmentName}") |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
35 |
|
public interface AttachmentResource |
36 |
|
{ |
37 |
|
@GET Response getAttachment( |
38 |
|
@PathParam("wikiName") String wikiName, |
39 |
|
@PathParam("spaceName") String spaceName, |
40 |
|
@PathParam("pageName") String pageName, |
41 |
|
@PathParam("attachmentName") String attachmentName |
42 |
|
) throws XWikiRestException; |
43 |
|
|
44 |
|
@PUT Response putAttachment( |
45 |
|
@PathParam("wikiName") String wikiName, |
46 |
|
@PathParam("spaceName") String spaceName, |
47 |
|
@PathParam("pageName") String pageName, |
48 |
|
@PathParam("attachmentName") String attachmentName, |
49 |
|
byte[] content |
50 |
|
) throws XWikiRestException; |
51 |
|
|
52 |
|
@DELETE void deleteAttachment( |
53 |
|
@PathParam("wikiName") String wikiName, |
54 |
|
@PathParam("spaceName") String spaceName, |
55 |
|
@PathParam("pageName") String pageName, |
56 |
|
@PathParam("attachmentName") String attachmentName |
57 |
|
) throws XWikiRestException; |
58 |
|
} |