(
String namespace, String name, String provider)
| 67 | } |
| 68 | |
| 69 | @GET |
| 70 | @Path("{namespace}/{name}/{provider}/versions") |
| 71 | public Response getAvailableVersionsForModule( |
| 72 | String namespace, String name, String provider) throws Exception { |
| 73 | TreeSet<ArtifactVersion> moduleVersions = moduleService |
| 74 | .getModuleVersions(new Module(namespace, name, provider)); |
| 75 | JsonObject jsonObject = new JsonObject() |
| 76 | .put("modules", List.of(JsonObject.of("versions", moduleVersions))); |
| 77 | return Response.ok(jsonObject).build(); |
| 78 | } |
| 79 | |
| 80 | @GET |
| 81 | @Path("/{namespace}/{name}/{provider}/{version}/download") |
nothing calls this directly
no test coverage detected