pacificclimate / pdp_util

A package supplying numerous apps for running PCIC's data server
GNU General Public License v3.0
0 stars 0 forks source link

Add filepath to /metadata response #23

Closed rod-glover closed 4 years ago

rod-glover commented 4 years ago

Resolves #22 . Also fixes python-ci test environment.

This PR changes the /metadata endpoint in the following ways:

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.