datacater icon indicating copy to clipboard operation
datacater copied to clipboard

Support YAML in API endpoints

Open flippingbits opened this issue 3 years ago • 2 comments

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.

flippingbits avatar Mar 02 '23 15:03 flippingbits

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

hknlof avatar Apr 03 '23 08:04 hknlof

Fixed by #210

flippingbits avatar Apr 24 '23 08:04 flippingbits