JavaScript: update Petstore sample and fix tests

This commit is contained in:
xhh
2016-02-18 10:20:01 +08:00
parent c4d799a4a7
commit 33d7d7b4b1
4 changed files with 31 additions and 7 deletions

View File

@@ -23,7 +23,11 @@
this.authentications = {
'petstore_auth': {type: 'oauth2'},
'api_key': {type: 'apiKey', in: 'header', name: 'api_key'}
'test_api_client_id': {type: 'apiKey', in: 'header', name: 'x-test_api_client_id'},
'test_api_client_secret': {type: 'apiKey', in: 'header', name: 'x-test_api_client_secret'},
'api_key': {type: 'apiKey', in: 'header', name: 'api_key'},
'test_api_key_query': {type: 'apiKey', in: 'query', name: 'test_api_key_query'},
'test_api_key_header': {type: 'apiKey', in: 'header', name: 'test_api_key_header'}
};
/**