update js code gen to handle different type, format

This commit is contained in:
wing328
2016-04-11 22:20:30 +08:00
parent 68cb030609
commit 0e1f1606cd
29 changed files with 405 additions and 45 deletions

View File

@@ -209,7 +209,7 @@ var SwaggerPetstore = require('swagger-petstore');
var apiInstance = new SwaggerPetstore.UserApi()
var username = "username_example"; // {String} The name that needs to be fetched. Use user1 for testing.
var username = "username_example"; // {String} The name that needs to be fetched. Use user1 for testing.
apiInstance.getUserByName(username).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
@@ -223,7 +223,7 @@ apiInstance.getUserByName(username).then(function(data) {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| The name that needs to be fetched. Use user1 for testing. |
**username** | **String**| The name that needs to be fetched. Use user1 for testing. |
### Return type