Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/927#discussion_r160126515
  
    --- Diff: 
rest/rest-api/src/main/java/org/apache/brooklyn/rest/api/BundleApi.java ---
    @@ -88,6 +90,51 @@ public BundleSummary detail(
             @PathParam("version")
             String version);
     
    +
    +    @Path("/{symbolicName}/{version}/types")
    +    @GET
    +    @ApiOperation(value = "Get all types declared in a given bundle", 
    +            response = TypeDetail.class)
    +    public List<TypeSummary> getTypes(
    +        @ApiParam(name = "symbolicName", value = "Bundle name to query", 
required = true)
    +        @PathParam("symbolicName")
    +        String symbolicName,
    +        @ApiParam(name = "version", value = "Version of bundle and of type 
to query", required = true)
    +        @PathParam("version")
    +        String version);
    +    
    +    @Path("/{symbolicName}/{version}/types/{typeSymbolicName}")
    +    @GET
    +    @ApiOperation(value = "Get detail on a given type in a given bundle", 
    +            response = TypeDetail.class)
    +    public TypeDetail getType(
    +        @ApiParam(name = "symbolicName", value = "Bundle name to query", 
required = true)
    +        @PathParam("symbolicName")
    +        String symbolicName,
    +        @ApiParam(name = "version", value = "Version of bundle and of type 
to query", required = true)
    +        @PathParam("version")
    +        String version,
    +        @ApiParam(name = "typeSymbolicName", value = "Type name to query", 
required = true)
    +        @PathParam("typeSymbolicName")
    +        String typeSymbolicName);
    --- End diff --
    
    it isn't `latest` - it is for case where type version = bundle version.  i 
think as that should be the normal case we should have an endpoint which 
doesn't require repeating version.


---

Reply via email to