forked from loafle/openapi-generator-original
- Remove optional license property
- License in all header files
This commit is contained in:
parent
537ee960b6
commit
c68168fa27
@ -166,7 +166,6 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
cliOptions.add(new CliOption(AUTHOR_EMAIL, "Email to use in the podspec file.").defaultValue("apiteam@swagger.io"));
|
cliOptions.add(new CliOption(AUTHOR_EMAIL, "Email to use in the podspec file.").defaultValue("apiteam@swagger.io"));
|
||||||
cliOptions.add(new CliOption(GIT_REPO_URL, "URL for the git repo where this podspec should point to.")
|
cliOptions.add(new CliOption(GIT_REPO_URL, "URL for the git repo where this podspec should point to.")
|
||||||
.defaultValue("https://github.com/swagger-api/swagger-codegen"));
|
.defaultValue("https://github.com/swagger-api/swagger-codegen"));
|
||||||
cliOptions.add(new CliOption(LICENSE, "License to use in the podspec file.").defaultValue("MIT"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -212,10 +211,6 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
setGitRepoURL((String) additionalProperties.get(GIT_REPO_URL));
|
setGitRepoURL((String) additionalProperties.get(GIT_REPO_URL));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalProperties.containsKey(LICENSE)) {
|
|
||||||
setLicense((String) additionalProperties.get(LICENSE));
|
|
||||||
}
|
|
||||||
|
|
||||||
additionalProperties.put(POD_NAME, podName);
|
additionalProperties.put(POD_NAME, podName);
|
||||||
additionalProperties.put(CodegenConstants.POD_VERSION, podVersion);
|
additionalProperties.put(CodegenConstants.POD_VERSION, podVersion);
|
||||||
additionalProperties.put(CLASS_PREFIX, classPrefix);
|
additionalProperties.put(CLASS_PREFIX, classPrefix);
|
||||||
@ -256,9 +251,7 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
|
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
|
||||||
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
|
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
|
||||||
supportingFiles.add(new SupportingFile("gitignore.mustache", "", ".gitignore"));
|
supportingFiles.add(new SupportingFile("gitignore.mustache", "", ".gitignore"));
|
||||||
if (license == null || DEFAULT_LICENSE.equals(license)) {
|
supportingFiles.add(new SupportingFile("LICENSE.mustache", "", "LICENSE"));
|
||||||
supportingFiles.add(new SupportingFile("LICENSE.mustache", "", "LICENSE"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -8,11 +8,8 @@
|
|||||||
#import "{{classPrefix}}ResponseDeserializer.h"
|
#import "{{classPrefix}}ResponseDeserializer.h"
|
||||||
#import "{{classPrefix}}Sanitizer.h"
|
#import "{{classPrefix}}Sanitizer.h"
|
||||||
#import "{{classPrefix}}Logger.h"
|
#import "{{classPrefix}}Logger.h"
|
||||||
/**
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
{{>licenceInfo}}
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
{{#models}}{{#model}}#import "{{classname}}.h"
|
{{#models}}{{#model}}#import "{{classname}}.h"
|
||||||
{{/model}}{{/models}}
|
{{/model}}{{/models}}
|
||||||
|
@ -2,12 +2,7 @@
|
|||||||
#import "{{classPrefix}}ApiClient.h"
|
#import "{{classPrefix}}ApiClient.h"
|
||||||
#import "{{classPrefix}}Logger.h"
|
#import "{{classPrefix}}Logger.h"
|
||||||
|
|
||||||
/** The `{{classPrefix}}Configuration` class manages the configurations for the sdk.
|
{{>licenceInfo}}
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
@class {{classPrefix}}ApiClient;
|
@class {{classPrefix}}ApiClient;
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <AFNetworking/AFURLRequestSerialization.h>
|
#import <AFNetworking/AFURLRequestSerialization.h>
|
||||||
|
|
||||||
|
{{>licenceInfo}}
|
||||||
|
|
||||||
@interface {{classPrefix}}JSONRequestSerializer : AFJSONRequestSerializer
|
@interface {{classPrefix}}JSONRequestSerializer : AFJSONRequestSerializer
|
||||||
@end
|
@end
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <AFNetworking/AFURLResponseSerialization.h>
|
#import <AFNetworking/AFURLResponseSerialization.h>
|
||||||
|
|
||||||
|
{{>licenceInfo}}
|
||||||
|
|
||||||
@interface {{classPrefix}}JSONResponseSerializer : AFJSONResponseSerializer
|
@interface {{classPrefix}}JSONResponseSerializer : AFJSONResponseSerializer
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -2,5 +2,8 @@
|
|||||||
#import <ISO8601/ISO8601.h>
|
#import <ISO8601/ISO8601.h>
|
||||||
#import <JSONModel/JSONValueTransformer.h>
|
#import <JSONModel/JSONValueTransformer.h>
|
||||||
|
|
||||||
|
{{>licenceInfo}}
|
||||||
|
|
||||||
@interface JSONValueTransformer (ISO8601)
|
@interface JSONValueTransformer (ISO8601)
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
/**
|
{{>licenceInfo}}
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef {{classPrefix}}DebugLogResponse
|
#ifndef {{classPrefix}}DebugLogResponse
|
||||||
#define {{classPrefix}}DebugLogResponse(response, responseObject,request, error) [[{{classPrefix}}Logger sharedLogger] logResponse:response responseObject:responseObject request:request error:error];
|
#define {{classPrefix}}DebugLogResponse(response, responseObject,request, error) [[{{classPrefix}}Logger sharedLogger] logResponse:response responseObject:responseObject request:request error:error];
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <JSONModel/JSONModel.h>
|
#import <JSONModel/JSONModel.h>
|
||||||
|
|
||||||
|
{{>licenceInfo}}
|
||||||
|
|
||||||
@interface {{classPrefix}}Object : JSONModel
|
@interface {{classPrefix}}Object : JSONModel
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
{{>licenceInfo}}
|
||||||
|
|
||||||
@interface {{classPrefix}}QueryParamCollection : NSObject
|
@interface {{classPrefix}}QueryParamCollection : NSObject
|
||||||
|
|
||||||
@property(nonatomic, readonly) NSArray* values;
|
@property(nonatomic, readonly) NSArray* values;
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
/**
|
{{>licenceInfo}}
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key for deserialization ErrorDomain
|
* A key for deserialization ErrorDomain
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
/**
|
{{>licenceInfo}}
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
extern NSString * {{classPrefix}}PercentEscapedStringFromString(NSString *string);
|
extern NSString * {{classPrefix}}PercentEscapedStringFromString(NSString *string);
|
||||||
|
|
||||||
|
@ -2,14 +2,9 @@
|
|||||||
{{#imports}}#import "{{import}}.h"
|
{{#imports}}#import "{{import}}.h"
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
#import "{{classPrefix}}Api.h"
|
#import "{{classPrefix}}Api.h"
|
||||||
{{newline}}
|
|
||||||
/**
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
{{#operations}}
|
{{>licenceInfo}}
|
||||||
|
|
||||||
|
|
||||||
@interface {{classname}}: NSObject <{{classPrefix}}Api>
|
@interface {{classname}}: NSObject <{{classPrefix}}Api>
|
||||||
|
|
||||||
@ -18,6 +13,7 @@ extern NSInteger k{{classname}}MissingParamErrorCode;
|
|||||||
|
|
||||||
+(instancetype) sharedAPI;
|
+(instancetype) sharedAPI;
|
||||||
|
|
||||||
|
{{#operations}}
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
/// {{{summary}}}
|
/// {{{summary}}}
|
||||||
/// {{#notes}}{{{notes}}}{{/notes}}
|
/// {{#notes}}{{{notes}}}{{/notes}}
|
||||||
@ -33,6 +29,6 @@ extern NSInteger k{{classname}}MissingParamErrorCode;
|
|||||||
|
|
||||||
{{newline}}
|
{{newline}}
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
|
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -2,11 +2,7 @@
|
|||||||
#import "{{classPrefix}}Object.h"
|
#import "{{classPrefix}}Object.h"
|
||||||
#import "{{classPrefix}}ApiClient.h"
|
#import "{{classPrefix}}ApiClient.h"
|
||||||
|
|
||||||
/**
|
{{>licenceInfo}}
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
@protocol {{classPrefix}}Api <NSObject>
|
@protocol {{classPrefix}}Api <NSObject>
|
||||||
|
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
/**
|
||||||
|
* {{{appName}}}
|
||||||
|
* {{{appDescription}}}
|
||||||
|
*
|
||||||
|
* {{#version}}OpenAPI spec version: {{{version}}}{{/version}}
|
||||||
|
* {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
@ -1,11 +1,7 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import "{{classPrefix}}Object.h"
|
#import "{{classPrefix}}Object.h"
|
||||||
|
|
||||||
/**
|
{{>licenceInfo}}
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
{{#imports}}#import "{{import}}.h"
|
{{#imports}}#import "{{import}}.h"
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
|
23
samples/client/petstore/objc/.swagger-codegen-ignore
Normal file
23
samples/client/petstore/objc/.swagger-codegen-ignore
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Swagger Codegen Ignore
|
||||||
|
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
||||||
|
|
||||||
|
# Use this file to prevent files from being overwritten by the generator.
|
||||||
|
# The patterns follow closely to .gitignore or .dockerignore.
|
||||||
|
|
||||||
|
# As an example, the C# client generator defines ApiClient.cs.
|
||||||
|
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
|
||||||
|
#ApiClient.cs
|
||||||
|
|
||||||
|
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||||
|
#foo/*/qux
|
||||||
|
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||||
|
|
||||||
|
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||||
|
#foo/**/qux
|
||||||
|
# Thsi matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||||
|
|
||||||
|
# You can also negate patterns with an exclamation (!).
|
||||||
|
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||||
|
#docs/*.md
|
||||||
|
# Then explicitly reverse the ignore rule for a single file:
|
||||||
|
#!docs/README.md
|
@ -6,7 +6,7 @@ This ObjC package is automatically generated by the [Swagger Codegen](https://gi
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package version:
|
- Package version:
|
||||||
- Build date: 2016-05-18T23:48:57.670+08:00
|
- Build date: 2016-05-25T18:06:49.729+02:00
|
||||||
- Build package: class io.swagger.codegen.languages.ObjcClientCodegen
|
- Build package: class io.swagger.codegen.languages.ObjcClientCodegen
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
@ -124,12 +124,6 @@ Class | Method | HTTP request | Description
|
|||||||
## Documentation For Authorization
|
## Documentation For Authorization
|
||||||
|
|
||||||
|
|
||||||
## api_key
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: api_key
|
|
||||||
- **Location**: HTTP header
|
|
||||||
|
|
||||||
## petstore_auth
|
## petstore_auth
|
||||||
|
|
||||||
- **Type**: OAuth
|
- **Type**: OAuth
|
||||||
@ -139,6 +133,12 @@ Class | Method | HTTP request | Description
|
|||||||
- **write:pets**: modify pets in your account
|
- **write:pets**: modify pets in your account
|
||||||
- **read:pets**: read your pets
|
- **read:pets**: read your pets
|
||||||
|
|
||||||
|
## api_key
|
||||||
|
|
||||||
|
- **Type**: API key
|
||||||
|
- **API key parameter name**: api_key
|
||||||
|
- **Location**: HTTP header
|
||||||
|
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
@ -3,10 +3,28 @@
|
|||||||
#import "SWGApi.h"
|
#import "SWGApi.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
@interface SWGPetApi: NSObject <SWGApi>
|
@interface SWGPetApi: NSObject <SWGApi>
|
||||||
|
@ -376,7 +376,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
NSString *requestContentType = [self.apiClient.sanitizer selectHeaderContentType:@[]];
|
NSString *requestContentType = [self.apiClient.sanitizer selectHeaderContentType:@[]];
|
||||||
|
|
||||||
// Authentication setting
|
// Authentication setting
|
||||||
NSArray *authSettings = @[@"api_key", @"petstore_auth"];
|
NSArray *authSettings = @[@"petstore_auth", @"api_key"];
|
||||||
|
|
||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
|
@ -3,10 +3,28 @@
|
|||||||
#import "SWGApi.h"
|
#import "SWGApi.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
@interface SWGStoreApi: NSObject <SWGApi>
|
@interface SWGStoreApi: NSObject <SWGApi>
|
||||||
|
@ -3,10 +3,28 @@
|
|||||||
#import "SWGApi.h"
|
#import "SWGApi.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
@interface SWGUserApi: NSObject <SWGApi>
|
@interface SWGUserApi: NSObject <SWGApi>
|
||||||
|
@ -2,5 +2,8 @@
|
|||||||
#import <ISO8601/ISO8601.h>
|
#import <ISO8601/ISO8601.h>
|
||||||
#import <JSONModel/JSONValueTransformer.h>
|
#import <JSONModel/JSONValueTransformer.h>
|
||||||
|
|
||||||
|
{{>licenceInfo}}
|
||||||
|
|
||||||
@interface JSONValueTransformer (ISO8601)
|
@interface JSONValueTransformer (ISO8601)
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -3,10 +3,28 @@
|
|||||||
#import "SWGApiClient.h"
|
#import "SWGApiClient.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
@protocol SWGApi <NSObject>
|
@protocol SWGApi <NSObject>
|
||||||
|
|
||||||
|
@ -8,11 +8,30 @@
|
|||||||
#import "SWGResponseDeserializer.h"
|
#import "SWGResponseDeserializer.h"
|
||||||
#import "SWGSanitizer.h"
|
#import "SWGSanitizer.h"
|
||||||
#import "SWGLogger.h"
|
#import "SWGLogger.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#import "SWGCategory.h"
|
#import "SWGCategory.h"
|
||||||
#import "SWGOrder.h"
|
#import "SWGOrder.h"
|
||||||
|
@ -2,12 +2,29 @@
|
|||||||
#import "SWGApiClient.h"
|
#import "SWGApiClient.h"
|
||||||
#import "SWGLogger.h"
|
#import "SWGLogger.h"
|
||||||
|
|
||||||
/** The `SWGConfiguration` class manages the configurations for the sdk.
|
/**
|
||||||
*
|
* Swagger Petstore
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
*
|
||||||
* Do not edit the class manually.
|
* OpenAPI spec version: 1.0.0
|
||||||
*/
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
@class SWGApiClient;
|
@class SWGApiClient;
|
||||||
|
|
||||||
|
@ -109,13 +109,6 @@
|
|||||||
|
|
||||||
- (NSDictionary *) authSettings {
|
- (NSDictionary *) authSettings {
|
||||||
return @{
|
return @{
|
||||||
@"api_key":
|
|
||||||
@{
|
|
||||||
@"type": @"api_key",
|
|
||||||
@"in": @"header",
|
|
||||||
@"key": @"api_key",
|
|
||||||
@"value": [self getApiKeyWithPrefix:@"api_key"]
|
|
||||||
},
|
|
||||||
@"petstore_auth":
|
@"petstore_auth":
|
||||||
@{
|
@{
|
||||||
@"type": @"oauth",
|
@"type": @"oauth",
|
||||||
@ -123,6 +116,13 @@
|
|||||||
@"key": @"Authorization",
|
@"key": @"Authorization",
|
||||||
@"value": [self getAccessToken]
|
@"value": [self getAccessToken]
|
||||||
},
|
},
|
||||||
|
@"api_key":
|
||||||
|
@{
|
||||||
|
@"type": @"api_key",
|
||||||
|
@"in": @"header",
|
||||||
|
@"key": @"api_key",
|
||||||
|
@"value": [self getApiKeyWithPrefix:@"api_key"]
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,29 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <AFNetworking/AFURLRequestSerialization.h>
|
#import <AFNetworking/AFURLRequestSerialization.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
@interface SWGJSONRequestSerializer : AFJSONRequestSerializer
|
@interface SWGJSONRequestSerializer : AFJSONRequestSerializer
|
||||||
@end
|
@end
|
||||||
|
@ -1,6 +1,30 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <AFNetworking/AFURLResponseSerialization.h>
|
#import <AFNetworking/AFURLResponseSerialization.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
@interface SWGJSONResponseSerializer : AFJSONResponseSerializer
|
@interface SWGJSONResponseSerializer : AFJSONResponseSerializer
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -1,10 +1,28 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef SWGDebugLogResponse
|
#ifndef SWGDebugLogResponse
|
||||||
#define SWGDebugLogResponse(response, responseObject,request, error) [[SWGLogger sharedLogger] logResponse:response responseObject:responseObject request:request error:error];
|
#define SWGDebugLogResponse(response, responseObject,request, error) [[SWGLogger sharedLogger] logResponse:response responseObject:responseObject request:request error:error];
|
||||||
|
@ -1,5 +1,30 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <JSONModel/JSONModel.h>
|
#import <JSONModel/JSONModel.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
@interface SWGObject : JSONModel
|
@interface SWGObject : JSONModel
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -1,5 +1,29 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
@interface SWGQueryParamCollection : NSObject
|
@interface SWGQueryParamCollection : NSObject
|
||||||
|
|
||||||
@property(nonatomic, readonly) NSArray* values;
|
@property(nonatomic, readonly) NSArray* values;
|
||||||
|
@ -1,10 +1,28 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A key for deserialization ErrorDomain
|
* A key for deserialization ErrorDomain
|
||||||
|
@ -1,10 +1,28 @@
|
|||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
extern NSString * SWGPercentEscapedStringFromString(NSString *string);
|
extern NSString * SWGPercentEscapedStringFromString(NSString *string);
|
||||||
|
|
||||||
|
@ -2,10 +2,28 @@
|
|||||||
#import "SWGObject.h"
|
#import "SWGObject.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
// initalise property's default value, if any
|
// initialize property's default value, if any
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
@ -2,10 +2,28 @@
|
|||||||
#import "SWGObject.h"
|
#import "SWGObject.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
// initalise property's default value, if any
|
// initialize property's default value, if any
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
@ -2,10 +2,28 @@
|
|||||||
#import "SWGObject.h"
|
#import "SWGObject.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
#import "SWGCategory.h"
|
#import "SWGCategory.h"
|
||||||
#import "SWGTag.h"
|
#import "SWGTag.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
// initalise property's default value, if any
|
// initialize property's default value, if any
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
@ -2,10 +2,28 @@
|
|||||||
#import "SWGObject.h"
|
#import "SWGObject.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
// initalise property's default value, if any
|
// initialize property's default value, if any
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
@ -2,10 +2,28 @@
|
|||||||
#import "SWGObject.h"
|
#import "SWGObject.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* Swagger Petstore
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Do not edit the class manually.
|
*
|
||||||
*/
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@wordnik.com
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
// initalise property's default value, if any
|
// initialize property's default value, if any
|
||||||
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
@ -246,14 +246,14 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error cond
|
|||||||
```objc
|
```objc
|
||||||
SWGConfiguration *apiConfig = [SWGConfiguration sharedConfig];
|
SWGConfiguration *apiConfig = [SWGConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
// Configure API key authorization: (authentication scheme: api_key)
|
// Configure API key authorization: (authentication scheme: api_key)
|
||||||
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
||||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
|
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
|
||||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
|
||||||
|
|
||||||
|
|
||||||
NSNumber* petId = @789; // ID of pet that needs to be fetched
|
NSNumber* petId = @789; // ID of pet that needs to be fetched
|
||||||
|
|
||||||
@ -283,7 +283,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
[api_key](../README.md#api_key), [petstore_auth](../README.md#petstore_auth)
|
[petstore_auth](../README.md#petstore_auth), [api_key](../README.md#api_key)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user