sudhir
sudhir

Reputation: 147

Get swagger model schema json

Is there any API exposed by Swagger which returns Json Model Schema of the payload?

Ex. /v1/item

It should return the 'item' model json schema

Upvotes: 0

Views: 692

Answers (1)

ArthurDM
ArthurDM

Reputation: 403

You could if you separated your Swagger definitions into different files and used references to aggregate them from the master Swagger doc, then each of them would be available in a different URL.

Upvotes: 1

Related Questions