Solved
Forum Discussion
HKosova
Alumni
8 years agoHi shoaibalam,
The produces keyword is what defines the Accept header in requests. The Accept header is not supposed to be defined explicitly as a header parameter. Remove the Accept parameter and add the following instead:
paths: /rewards: post: consumes: - application/json # <-- Content-Type header produces: - application/json; version=1.0.0 # <-- Accept header
Check out our OpenAPI 2.0 syntax guide for details: