From f29d53d5bcdc9530c91652f55f86cace985819fa Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Wed, 14 Aug 2013 12:18:36 -0700 Subject: [PATCH] updated readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d59c282..a934b23c 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,11 @@ You may choose to customize Swagger UI for your organization. Here is an overvie ### SwaggerUi To use swagger-ui you should take a look at the [source of swagger-ui html page](https://github.com/wordnik/swagger-ui/tree/master/src/main/html) and customize it. This basically requires you to instantiate a SwaggerUi object and call load() on it as below: + ```javascript window.swaggerUi = new SwaggerUi({ discoveryUrl:"http://petstore.swagger.wordnik.com/api/api-docs", - dom_id:"swagger-ui-container", - supportedSubmitMethods: ['get', 'post', 'put'] + dom_id:"swagger-ui-container" }); window.swaggerUi.load();