Swagger: Where is .json schema URL ?

Created on 14 Dec 2017  路  3Comments  路  Source: nestjs/swagger

How i can get JSON schema by URL ?

Most helpful comment

Swagger module.createDocument call return json schema. Try serving it:

expressApp.use('/api-docs', (req, res, next) => res.send(document));

All 3 comments

Swagger module.createDocument call return json schema. Try serving it:

expressApp.use('/api-docs', (req, res, next) => res.send(document));

@mildbreakfast many thanks! it woks!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kalaivanan-muthusamy picture kalaivanan-muthusamy  路  4Comments

itslenny picture itslenny  路  3Comments

patilrevansidh picture patilrevansidh  路  4Comments

alisherks picture alisherks  路  4Comments

ph55 picture ph55  路  3Comments