Update security samples for Javascript clients (#5289)

This commit is contained in:
Paŭlo Ebermann
2017-04-04 08:43:25 +02:00
committed by wing328
parent 0695a58f3c
commit 66bf83e911
8 changed files with 79 additions and 71 deletions

View File

@@ -3,14 +3,13 @@
* Do not edit this file by hand or your changes will be lost next time it is
* generated.
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ ' \" =end
* Version: 1.0.0 ' \" =end
* Generated at: 2016-06-29T22:04:03.401+08:00
* Generated by: class io.swagger.codegen.languages.JavascriptClosureAngularClientCodegen
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end --
* Version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r
* Generated by: io.swagger.codegen.languages.JavascriptClosureAngularClientCodegen
*/
/**
* @license Apache 2.0 ' \" =end
* http://www.apache.org/licenses/LICENSE-2.0.html ' \" =end
* @license Apache 2.0 *_/ ' \" =end -- \\r\\n \\n \\r
* http://www.apache.org/licenses/LICENSE-2.0.html *_/ ' \" =end -- \\r\\n \\n \\r
*/
goog.provide('API.Client.FakeApi');
@@ -27,7 +26,7 @@ API.Client.FakeApi = function($http, $httpParamSerializer, $injector) {
/** @private {!string} */
this.basePath_ = $injector.has('FakeApiBasePath') ?
/** @type {!string} */ ($injector.get('FakeApiBasePath')) :
'https://petstore.swagger.io ' \" =end/v2 ' \" =end';
'https://petstore.swagger.io *_/ ' \" =end -- \\r\\n \\n \\r/v2 *_/ ' \" =end -- \\r\\n \\n \\r';
/** @private {!Object<string, string>} */
this.defaultHeaders_ = $injector.has('FakeApiDefaultHeaders') ?
@@ -44,13 +43,13 @@ API.Client.FakeApi = function($http, $httpParamSerializer, $injector) {
API.Client.FakeApi.$inject = ['$http', '$httpParamSerializer', '$injector'];
/**
* To test code injection &#39; \&quot; &#x3D;end
* To test code injection *_/ &#39; \&quot; &#x3D;end -- \\r\\n \\n \\r
*
* @param {!string=} opt_testCodeInjectEnd To test code injection &#39; \&quot; &#x3D;end
* @param {!string=} opt_testCodeInjectEndRnNR To test code injection *_/ &#39; \&quot; &#x3D;end -- \\r\\n \\n \\r
* @param {!angular.$http.Config=} opt_extraHttpRequestParams Extra HTTP parameters to send.
* @return {!angular.$q.Promise}
*/
API.Client.FakeApi.prototype.testCodeInjectEnd = function(opt_testCodeInjectEnd, opt_extraHttpRequestParams) {
API.Client.FakeApi.prototype.testCodeInjectEndRnNR = function(opt_testCodeInjectEndRnNR, opt_extraHttpRequestParams) {
/** @const {string} */
var path = this.basePath_ + '/fake';
@@ -64,7 +63,7 @@ API.Client.FakeApi.prototype.testCodeInjectEnd = function(opt_testCodeInjectEnd,
headerParams['Content-Type'] = 'application/x-www-form-urlencoded';
formParams['test code inject */ &#39; &quot; &#x3D;end'] = opt_testCodeInjectEnd;
formParams['test code inject */ &#39; &quot; &#x3D;end -- \r\n \n \r'] = opt_testCodeInjectEndRnNR;
/** @type {!Object} */
var httpRequestParams = {

View File

@@ -1,13 +1,13 @@
goog.provide('API.Client.Return');
/**
* Model for testing reserved words ' \" =end
* Model for testing reserved words *_/ ' \" =end -- \\r\\n \\n \\r
* @record
*/
API.Client.ModelReturn = function() {}
/**
* property description ' \" =end
* property description *_/ ' \" =end -- \\r\\n \\n \\r
* @type {!number}
* @export
*/