Ilya Vassilevsky
Ilya Vassilevsky

Reputation: 1001

How to specify Content-Type of all responses once in API Blueprint?

In order to satisfy Dredd, I have to write this for every response in my API Blueprint document:

+ Response 201 (application/json; charset=utf-8)

Is there a way to specify the media type ((application/json; charset=utf-8)) once, globally, for every response? This would have cleaned the document a bit.

Upvotes: 1

Views: 301

Answers (1)

Vincenzo
Vincenzo

Reputation: 1559

As far as I know, this is not a supported scenario. I suggest you to file an issue on API Blueprint repository on GitHub to eventually get this feature request evaluated!

Upvotes: 1

Related Questions