Resolves #22 . Also fixes python-ci test environment.
This PR changes the /metadata endpoint in the following ways:
make the default response, regardless of query parameters, contain min and max
add an optional query parameter include with the following valid values, specified as a comma-separated list:
units
filepath
make request an optional query parameter with the following meanings:
request=GetMinMax: default response
request=GetMinMaxWithUnits: include units in response
An example request to this revised API is /metadata.json?include=filepath,units.
This change supersedes ("deprecates" is too strong a word) the previous API definition, by effectively replacing the request parameter with the include parameter. However, the old request= style still functions as it did to ensure backward compatibility.
This PR also adds the infrastructure for building a Docker image containing an appropriate test environment for this package. It has been exercised and works as advertised. It is a minor variation of the infrastructure established for the same purpose in PyCDS.
Resolves #22 . Also fixes python-ci test environment.
This PR changes the
/metadata
endpoint in the following ways:min
andmax
include
with the following valid values, specified as a comma-separated list:units
filepath
request
an optional query parameter with the following meanings:request=GetMinMax
: default responserequest=GetMinMaxWithUnits
: includeunits
in responseAn example request to this revised API is
/metadata.json?include=filepath,units
.This change supersedes ("deprecates" is too strong a word) the previous API definition, by effectively replacing the
request
parameter with theinclude
parameter. However, the oldrequest=
style still functions as it did to ensure backward compatibility.This PR also adds the infrastructure for building a Docker image containing an appropriate test environment for this package. It has been exercised and works as advertised. It is a minor variation of the infrastructure established for the same purpose in PyCDS.