You can also use the Swagger editor:
http://editor.swagger.io/#/
, , YAML YAML JSON.
.
EDIT:
, swagger ui, :
var swaggerUi = new SwaggerUi({
url:"http://petstore.swagger.io/v2/swagger.json",
dom_id:"swagger-ui-container"
});
swaggerUi.load();
:
https://github.com/swagger-api/swagger-ui
, .
(YAML JSON), . express nodejs, :
http://expressjs.com/starter/static-files.html
app.use('/static', express.static('public'));
, , swagger.json , :
http:
, URL- . URL- "url" , swagger-ui, . Swagger-ui , json yaml .