DataCater / datacater

The developer-friendly ETL platform for transforming data in real-time. Based on Apache Kafka® and Kubernetes®.
https://datacater.io
Other
82 stars 4 forks source link

Support YAML in API endpoints #177

Closed flippingbits closed 1 year ago

flippingbits commented 1 year ago

At the moment, our API endpoints speak only JSON.

We should introduce the support for YAML because a lot of our users prefer YAML over JSON for defining, for instance, pipeline specifications.

We should not break the current behavior and stick to JSON as the default data format. However, users should be able to use YAML as the data format for their API calls by setting the request headers Content-Type and/or Accept to application/x-yaml.

HknLof commented 1 year ago

As of Quarkus 2.16.5.Final it should be possible to use the jackson-jaxrs-yaml-provider, which automatically uses the right SerDe format.

https://github.com/quarkusio/quarkus/issues/31818

flippingbits commented 1 year ago

Fixed by #210