Fix REST API endopints paths
@@ -26,7 +26,6 @@ import java.util.List;
@Lazy
@RestController
-@RequestMapping("/mvn/packages")
public class ResolutionApi {
private final ResolutionApiService service;
@@ -35,7 +34,7 @@ public class ResolutionApi {
this.service = service;
}
- @GetMapping(value = "/{pkg}/{pkg_ver}/resolve/dependencies", produces = MediaType.APPLICATION_JSON_VALUE)
+ @GetMapping(value = "/mvn/packages/{pkg}/{pkg_ver}/resolve/dependencies", produces = MediaType.APPLICATION_JSON_VALUE)
ResponseEntity<String> resolveDependencies(@PathVariable("pkg") String package_name,
@PathVariable("pkg_ver") String package_version,
@RequestParam(required = false, defaultValue = "true") boolean transitive,
@@ -44,7 +43,7 @@ public class ResolutionApi {
return service.resolveDependencies(package_name, package_version, transitive, timestamp, useDepGraph);
}
- @GetMapping(value = "/{pkg}/{pkg_ver}/resolve/dependents", produces = MediaType.APPLICATION_JSON_VALUE)
+ @GetMapping(value = "/mvn/packages/{pkg}/{pkg_ver}/resolve/dependents", produces = MediaType.APPLICATION_JSON_VALUE)
ResponseEntity<String> resolveDependents(@PathVariable("pkg") String package_name,
@PathVariable("pkg_ver") String package_version,
@RequestParam(required = false, defaultValue = "true") boolean transitive,
