Skip to content

Datastream GET vs POST/PUT disconnect/clarification #178

@SomethingCreativeStudios

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions