Github user tbouron commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/927#discussion_r160128817
--- 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 --
Hum I get your PoV. I believe it's better to specify everything but why
not, and it's using the same codepath so I'm fine with that
---