Skip to content

Vendor Extensions

wing328 edited this page Jun 6, 2016 · 6 revisions

Here is a list of vendor extensions used by different generators.

(All examples are in YAML format)

Java (Feign)

x-accepts

A single Accepts value as the Feign API client needs a single value for Accepts header, e.g.:

consumes:
  - application/json
  - application/xml
x-accepts: application/json

x-content-type

A single "Content-Type" value as the Feign API client needs a single vlaue for Content-Type header, e.g.:

produces:
  - application/xml
  - application/json
x-content-type: application/json