@Test public void testPlatformIncludesList() { PlatformDto p = load(PlatformRestResource.CAMP_URI_PATH, PlatformDto.class); PlatformComponentTemplateDto pct = load(p.getPlatformComponentTemplates().get(0).getHref(), PlatformComponentTemplateDto.class); log.debug("Loaded PCT via REST: "+pct); Assert.assertNotNull(pct.getName()); }
@ApiOperation(value = "Return the Platform (root) resource", response = PlatformDto.class) @GET public PlatformDto get() { return dto().adapt(camp().root()); }
PlatformRestResource extends AbstractCampRestResource { @ApiOperation(value = "Return the Platform (root) resource", response = PlatformDto.class) @GET public PlatformDto get() { return dto().adapt(camp().root()); } }
PlatformRestResource extends AbstractCampRestResource { @ApiOperation(value = "Return the Platform (root) resource", response = PlatformDto.class) @GET public PlatformDto get() { return dto().adapt(camp().root()); }  }
PlatformRestResource extends AbstractCampRestResource { @ApiOperation(value = "Return the Platform (root) resource", response = PlatformDto.class) @GET public PlatformDto get() { return dto().adapt(camp().root()); }  @ApiOperation(value = "Return the Platform (root) resource", response = PlatformDto.class) @GET PlatformDto get(); @POST @Consumes({MediaType.APPLICATION_JSON}) Response postJson(@Context UriInfo info, String json); @POST @Consumes({"application/x-yaml"}) Response postYaml(@Context UriInfo info, String yaml); @POST @Consumes({"application/x-tar", "application/x-tgz", "application/x-zip"}) Response postArchive(@Context UriInfo info, InputStream archiveInput); }
PlatformRestResource extends AbstractCampRestResource { @ApiOperation(value = "Return the Platform (root) resource", response = PlatformDto.class) @GET public PlatformDto get() { return dto().adapt(camp().root()); }  @ApiOperation(value = "Return the Platform (root) resource", response = PlatformDto.class) @GET PlatformDto get(); @POST @Consumes({MediaType.APPLICATION_JSON}) Response postJson(@Context UriInfo info, String json); @POST @Consumes({"application/x-yaml"}) Response postYaml(@Context UriInfo info, String yaml); @POST @Consumes({"application/x-tar", "application/x-tgz", "application/x-zip"}) Response postArchive(@Context UriInfo info, InputStream archiveInput); static final String CAMP_URI_PATH; }