From f942e82691f0d6638aa8ef75344ed225455a31bd Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Sun, 15 Feb 2015 18:06:50 -0800 Subject: [PATCH] updated templates --- .../src/main/resources/python/api.mustache | 8 ++++---- .../src/main/resources/python/model.mustache | 2 +- .../src/main/resources/python/swagger.mustache | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/python/api.mustache b/modules/swagger-codegen/src/main/resources/python/api.mustache index 4a5b7fba4100..32c10a00fa56 100644 --- a/modules/swagger-codegen/src/main/resources/python/api.mustache +++ b/modules/swagger-codegen/src/main/resources/python/api.mustache @@ -1,7 +1,7 @@ #!/usr/bin/env python """ -WordAPI.py -Copyright 2014 Wordnik, Inc. +{{classname}}.py +Copyright 2015 Reverb Technologies, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -62,8 +62,8 @@ class {{classname}}(object): files = {} bodyParam = None - $headerParams['Accept'] = '{{#produces}}{{mediaType}}{{#hasMore}},{{/hasMore}}{{/produces}}'; - $headerParams['Content-Type'] = '{{#consumes}}{{mediaType}}{{#hasMore}},{{/hasMore}}{{/consumes}}'; + headerParams['Accept'] = '{{#produces}}{{mediaType}}{{#hasMore}},{{/hasMore}}{{/produces}}'; + headerParams['Content-Type'] = '{{#consumes}}{{mediaType}}{{#hasMore}},{{/hasMore}}{{/consumes}}'; {{#queryParams}} if ('{{paramName}}' in params): diff --git a/modules/swagger-codegen/src/main/resources/python/model.mustache b/modules/swagger-codegen/src/main/resources/python/model.mustache index 39547c900505..f6e95c72dc6f 100644 --- a/modules/swagger-codegen/src/main/resources/python/model.mustache +++ b/modules/swagger-codegen/src/main/resources/python/model.mustache @@ -1,6 +1,6 @@ #!/usr/bin/env python """ -Copyright 2014 Wordnik, Inc. +Copyright 2015 Reverb Technologies, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/modules/swagger-codegen/src/main/resources/python/swagger.mustache b/modules/swagger-codegen/src/main/resources/python/swagger.mustache index 59b6d38fbd60..24dbd5441bec 100644 --- a/modules/swagger-codegen/src/main/resources/python/swagger.mustache +++ b/modules/swagger-codegen/src/main/resources/python/swagger.mustache @@ -1,5 +1,5 @@ #!/usr/bin/env python -"""Wordnik.com's Swagger generic API client. This client handles the client- +"""Swagger generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of the methods and models for each application are generated from the Swagger templates."""