Anypoint Best Practices
media-type-headers-response
general > media-type-headers-response
Guidance / Message
"Response '{{apiContract.statusCode}}', must Use: ‘Content-Type’ header"
Examples
valid
responses:
200:
description: All profiles
headers:
content-type:
description: Content Type
type: string
example:
'application/json'
invalid
responses:
200:
description: All profiles
headers:
someheader:
description: definetly not content type
type: string
example:
'nothingrelevant'
Applies to Response