Skip to content

CSV by Default in content negotiation #25

@spillz-dxb

Description

@spillz-dxb

Describe the bug
The Http server api , by default serves data in csv format , if the accept headers arent used . Is there a way to change it to json or zinc by default. The grafana data source fails because of this as there is no way to add http headers in the data source.

To Reproduce
Steps to reproduce the behavior:
Open browser and use get method for http://localhost:3000/haystack/ returns a CSV file instead of in browser zinc or json for other implementations .

Expected behavior
By default a zinc or json format is expected , or means to change the default to different formats in shaystack

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Docker
  • Browser :Edge

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions