SolarArbiter / solarforecastarbiter-api

HTTP API and database schema for the Solar Forecast Arbiter
https://api.solarforecastarbiter.org
MIT License
10 stars 6 forks source link

report post documentation #147

Closed wholmgren closed 3 years ago

wholmgren commented 5 years ago

The report POST documentation and examples don't give me enough information to figure out how to format the request. https://api.solarforecastarbiter.org/#tag/Reports/paths/~1reports~1/post

@lboeman can you clarify this doc string?

lboeman commented 5 years ago

In the current iteration, you'll need these keys in the report_parameters property:

The apispec module doesn't have support for rendering the Marshmallow Tuple field type or the nested schema validation (e.g. the List of String Field objects in the metrics field does not display options), so the fields aren't rendering properly yet.

alorenzo175 commented 4 years ago

seems like it's taken care of now? https://dev-api.solarforecastarbiter.org/#tag/Reports/paths/~1reports~1/get

alorenzo175 commented 4 years ago

Looks like the only missing piece is that the filters keys is not well documented. This probably just requires a change in the schema from a list of dicts to a list of a FilterParameter schema

alorenzo175 commented 4 years ago

if filters need an update in the datamodel, do that first