Skip to content
Snippets Groups Projects

Swagger Updates

@@ -87,8 +87,8 @@ public class NetcdfController {
@Get(uri = "/{latitude}/{longitude}/{siteClass}", produces = MediaType.APPLICATION_JSON)
public HttpResponse<String> doGetSlashBySite(
HttpRequest<?> request,
@Schema(required = true) @PathVariable @Nullable Double latitude,
@Schema(required = true) @PathVariable @Nullable Double longitude,
@Schema(required = true) @PathVariable @Nullable Double latitude,
@Schema(required = true) @PathVariable @Nullable NehrpSiteClass siteClass) {
var query = new Query(longitude, latitude, siteClass);
return service.handleServiceCall(request, query);
@@ -125,8 +125,8 @@ public class NetcdfController {
@Get(uri = "{?latitude,longitude,siteClass}", produces = MediaType.APPLICATION_JSON)
public HttpResponse<String> doGet(
HttpRequest<?> request,
@Schema(required = true) @QueryValue @Nullable Double latitude,
@Schema(required = true) @QueryValue @Nullable Double longitude,
@Schema(required = true) @QueryValue @Nullable Double latitude,
@QueryValue @Nullable NehrpSiteClass siteClass) {
var query = new Query(longitude, latitude, siteClass);
return service.handleServiceCall(request, query);
@@ -143,9 +143,10 @@ public class NetcdfController {
@Get(uri = "/{latitude}/{longitude}", produces = MediaType.APPLICATION_JSON)
public HttpResponse<String> doGetSlash(
HttpRequest<?> request,
@Schema(required = true) @PathVariable @Nullable Double latitude,
@Schema(required = true) @PathVariable @Nullable Double longitude) {
return doGet(request, longitude, latitude, null);
@Schema(required = true) @PathVariable @Nullable Double longitude,
@Schema(required = true) @PathVariable @Nullable Double latitude) {
var query = new Query(longitude, latitude, null);
return service.handleServiceCall(request, query);
}
// For Swagger schema
Loading