THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
| Supported | Media Types | Data Model | Provider registration |
---|---|---|---|---|
Read | Yes | NA | application/atomcat+xml | Not required. Registered by default |
Write | Yes | application/atomcat+xml |
| Not required. Registered by default |
Examples
TBD
Producing an APP Service Document
TBD
Code Block |
---|
@GET
@Produces(MediaTypeUtils.ATOM_SERVICE_DOCUMENT)
public AppService getServiceDocument() {
AppService serviceDocument = new AppService();
List<AppWorkspace> workspaces = serviceDocument.getWorkspace();
AppWorkspace workspace1 = new AppWorkspace();
workspace1.setTitle(new AtomText("Workspace1"));
List<AppCollection> collections = workspace1.getCollection();
AppCollection collection = new AppCollection();
collection.setTitle(new AtomText("Collection1"));
collections.add(collection);
workspaces.add(workspace1);
...
return serviceDocument;
}
|