MCPcopy Create free account
hub / github.com/PacoVK/tapir / getAvailableVersionsForModule

Method getAvailableVersionsForModule

src/main/java/api/Modules.java:69–78  ·  view source on GitHub ↗
(
          String namespace, String name, String provider)

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 1

getModuleVersionsMethod · 0.45

Tested by

no test coverage detected