The source project of this merge request has been removed.
Hazard service updates
- Updated Hazard controller and service to only support required arguments as slash-delimited and optional arguments via query, e.g.
.../hazard/longitude/latitude/vs30?truncate=true&maxdir=true - Updated
.../hazard/usageto just be the context path for the service.../hazardand refer to it's response in docs and Swagger as service metadata. - Switched to relying on Swagger/micronaut for basic URI validation (e.g. required parameters present). This simplified and reduced annotations and code required. Parameter metadata in the controller only applies to the Swagger index page so global and/or model validation of parameter values is still needed.
- Added handling for
truncateandmaxdirquery arguments; service now adjusts the returned curves as requested.
Resolves #450 (closed) Resolves #453 (closed) Resolves #454
Edited by Powers, Peter M.