From 16a1e1bda8f3071322432a2c5ec2b5abf1bf4672 Mon Sep 17 00:00:00 2001 From: Ayush Gupta Date: Tue, 17 Jul 2012 18:36:31 -0700 Subject: [PATCH] updated readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b47200c3..351881f8 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ You may choose to customize Swagger UI for your organization. Here is an overvie - src/main/javascript: some legacy javascript referenced by CofffeeScript code ### HTTP Methods and API Invocation -swagger-ui supports invocation of all HTTP methods APIs but only GET methods APIs are enabled by default. You can choose to enable other HTTP methods like POST, PUT and DELETE. This can be enabled by setting the supportedSubmitMethods parameter when creating SwaggerUI instance. +swagger-ui supports invocation of all HTTP methods APIs but only GET methods APIs are enabled by default. You can choose to enable other HTTP methods like POST, PUT and DELETE. This can be enabled by [setting the supportedSubmitMethods parameter when creating SwaggerUI instance](https://github.com/wordnik/swagger-ui/blob/f2e63c65a759421aad590b7275371cd0c06c74ea/src/main/html/index.html#L49). For example if you wanted to enable GET, POST and PUT but not for DELETE, you'd set this as: @@ -42,7 +42,7 @@ For example if you wanted to enable GET, POST and PUT but not for DELETE, you'd _Note that for POST/PUT body, you'd need to paste in the request data in an appropriate format which your service can unmarshall_ ### Header Parameters -header parameters aere supported. However because of [Cross-Origin Resource Sharing](http://www.w3.org/TR/cors/) restrictions, swagger-ui, by default, does not send header parameters. This can be enabled by [setting the supportHeaderParams to false when creating SwaggerUI instance](https://github.com/wordnik/swagger-ui/blob/overhaul/src/main/html/index.html#L45). +header parameters aere supported. However because of [Cross-Origin Resource Sharing](http://www.w3.org/TR/cors/) restrictions, swagger-ui, by default, does not send header parameters. This can be enabled by [setting the supportHeaderParams to false when creating SwaggerUI instance](https://github.com/wordnik/swagger-ui/blob/f2e63c65a759421aad590b7275371cd0c06c74ea/src/main/html/index.html#L48).