Skip to content

Datastream GET vs POST/PUT disconnect/clarification #178

Description

For datastream the redoc is showing different fields available to the datastream based on GET vs POST/PUT

For example POST

Image

Vs GETs

Image

This may be intentional however some fields are not clear on how they are mapped

  • Formats: server provided based on the various schema's the datastream supports?
  • observedProperties: Where do these come from? The schema? (assuming its not protofuff or other non json schema?)
  • Schema: This is less of question of where it comes from (via the PUT update/schema endpoint) and more of should this be an array?

Based on Req 11 it seems there could be multiple formats so in theory schema probably should be an array of each schema based on obsFormat?

Example from Req 11 of multiple formats

https://{api_root}/datastreams/{id}/schema?obsFormat=application/json
https://{api_root}/datastreams/{id}/schema?obsFormat=application/swe%2Bcsv
https://{api_root}/datastreams/{id}/schema?obsFormat=application/swe%2Bbinary

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready for pre-SWG reviewRecommendation posted and ready for asynchronous review before SWG considerationrec: focused PRWorking recommendation: a bounded change is sufficiently defined for a focused PRtarget: api-part-2 v1.0.xCandidate correction for a CSAPI Part 2 v1.0 corrigendum

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions