Skip to content
Snippets Groups Projects
Commit 2c676223 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

switch lat and lon

parent 93988104
No related branches found
No related tags found
2 merge requests!109Production Release,!108Swagger Updates
......@@ -74,7 +74,7 @@ public class NetcdfController {
"### Service call pattern\n" +
"This service call is slashed delimited with pattern: " +
"`/spectra/{longitude}/{latitude}/{siteClass}`\n" +
"`/spectra/{latitude}/{longitude}/{siteClass}`\n" +
"<br><br>" +
"Example: `/spectra/-118/34/A`",
operationId = "aashto-slash")
......@@ -84,7 +84,7 @@ public class NetcdfController {
content = @Content(
mediaType = MediaType.APPLICATION_JSON,
schema = @Schema(implementation = Response.class)))
@Get(uri = "/{longitude}/{latitude}/{siteClass}", produces = MediaType.APPLICATION_JSON)
@Get(uri = "/{latitude}/{longitude}/{siteClass}", produces = MediaType.APPLICATION_JSON)
public HttpResponse<String> doGetSlashBySite(
HttpRequest<?> request,
@Schema(required = true) @PathVariable @Nullable Double latitude,
......@@ -112,9 +112,9 @@ public class NetcdfController {
"### Service call pattern\n" +
"This service call is query based with pattern: " +
"`/spectra?longitude={number}&latitude={number}&siteClass={string}`\n" +
"`/spectra?latitude={number}&longitude={number}&siteClass={string}`\n" +
"<br><br>" +
"Example: `/spectra?longitude=-118&latitude=34&siteClass=A`",
"Example: `/spectra?latitude=34&longitude=-118&siteClass=A`",
operationId = "aashto-query")
@ApiResponse(
description = "Spatially interpolates data from https://doi.org/10.5066/P9Z206HY",
......@@ -122,7 +122,7 @@ public class NetcdfController {
content = @Content(
mediaType = MediaType.APPLICATION_JSON,
schema = @Schema(implementation = Response.class)))
@Get(uri = "{?longitude,latitude,siteClass}", produces = MediaType.APPLICATION_JSON)
@Get(uri = "{?latitude,longitude,siteClass}", produces = MediaType.APPLICATION_JSON)
public HttpResponse<String> doGet(
HttpRequest<?> request,
@Schema(required = true) @QueryValue @Nullable Double latitude,
......@@ -140,7 +140,7 @@ public class NetcdfController {
* @param latitude Latitude of the site
*/
@Hidden
@Get(uri = "/{longitude}/{latitude}", produces = MediaType.APPLICATION_JSON)
@Get(uri = "/{latitude}/{longitude}", produces = MediaType.APPLICATION_JSON)
public HttpResponse<String> doGetSlash(
HttpRequest<?> request,
@Schema(required = true) @PathVariable @Nullable Double latitude,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment