mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
update objc samples
This commit is contained in:
parent
a0f229302d
commit
e84ec710d8
@ -0,0 +1,72 @@
|
|||||||
|
.gitignore
|
||||||
|
README.md
|
||||||
|
SwaggerClient.podspec
|
||||||
|
SwaggerClient/Api/SWGPetApi.h
|
||||||
|
SwaggerClient/Api/SWGPetApi.m
|
||||||
|
SwaggerClient/Api/SWGStoreApi.h
|
||||||
|
SwaggerClient/Api/SWGStoreApi.m
|
||||||
|
SwaggerClient/Api/SWGUserApi.h
|
||||||
|
SwaggerClient/Api/SWGUserApi.m
|
||||||
|
SwaggerClient/Core/JSONValueTransformer+ISO8601.h
|
||||||
|
SwaggerClient/Core/JSONValueTransformer+ISO8601.m
|
||||||
|
SwaggerClient/Core/SWGApi.h
|
||||||
|
SwaggerClient/Core/SWGApiClient.h
|
||||||
|
SwaggerClient/Core/SWGApiClient.m
|
||||||
|
SwaggerClient/Core/SWGBasicAuthTokenProvider.h
|
||||||
|
SwaggerClient/Core/SWGBasicAuthTokenProvider.m
|
||||||
|
SwaggerClient/Core/SWGConfiguration.h
|
||||||
|
SwaggerClient/Core/SWGDefaultConfiguration.h
|
||||||
|
SwaggerClient/Core/SWGDefaultConfiguration.m
|
||||||
|
SwaggerClient/Core/SWGJSONRequestSerializer.h
|
||||||
|
SwaggerClient/Core/SWGJSONRequestSerializer.m
|
||||||
|
SwaggerClient/Core/SWGLogger.h
|
||||||
|
SwaggerClient/Core/SWGLogger.m
|
||||||
|
SwaggerClient/Core/SWGObject.h
|
||||||
|
SwaggerClient/Core/SWGObject.m
|
||||||
|
SwaggerClient/Core/SWGQueryParamCollection.h
|
||||||
|
SwaggerClient/Core/SWGQueryParamCollection.m
|
||||||
|
SwaggerClient/Core/SWGResponseDeserializer.h
|
||||||
|
SwaggerClient/Core/SWGResponseDeserializer.m
|
||||||
|
SwaggerClient/Core/SWGSanitizer.h
|
||||||
|
SwaggerClient/Core/SWGSanitizer.m
|
||||||
|
SwaggerClient/Model/SWGCategory.h
|
||||||
|
SwaggerClient/Model/SWGCategory.m
|
||||||
|
SwaggerClient/Model/SWGCategoryManagedObject.h
|
||||||
|
SwaggerClient/Model/SWGCategoryManagedObject.m
|
||||||
|
SwaggerClient/Model/SWGCategoryManagedObjectBuilder.h
|
||||||
|
SwaggerClient/Model/SWGCategoryManagedObjectBuilder.m
|
||||||
|
SwaggerClient/Model/SWGModel.xcdatamodeld/.xccurrentversion
|
||||||
|
SwaggerClient/Model/SWGModel.xcdatamodeld/SWGModel.xcdatamodel/contents
|
||||||
|
SwaggerClient/Model/SWGOrder.h
|
||||||
|
SwaggerClient/Model/SWGOrder.m
|
||||||
|
SwaggerClient/Model/SWGOrderManagedObject.h
|
||||||
|
SwaggerClient/Model/SWGOrderManagedObject.m
|
||||||
|
SwaggerClient/Model/SWGOrderManagedObjectBuilder.h
|
||||||
|
SwaggerClient/Model/SWGOrderManagedObjectBuilder.m
|
||||||
|
SwaggerClient/Model/SWGPet.h
|
||||||
|
SwaggerClient/Model/SWGPet.m
|
||||||
|
SwaggerClient/Model/SWGPetManagedObject.h
|
||||||
|
SwaggerClient/Model/SWGPetManagedObject.m
|
||||||
|
SwaggerClient/Model/SWGPetManagedObjectBuilder.h
|
||||||
|
SwaggerClient/Model/SWGPetManagedObjectBuilder.m
|
||||||
|
SwaggerClient/Model/SWGTag.h
|
||||||
|
SwaggerClient/Model/SWGTag.m
|
||||||
|
SwaggerClient/Model/SWGTagManagedObject.h
|
||||||
|
SwaggerClient/Model/SWGTagManagedObject.m
|
||||||
|
SwaggerClient/Model/SWGTagManagedObjectBuilder.h
|
||||||
|
SwaggerClient/Model/SWGTagManagedObjectBuilder.m
|
||||||
|
SwaggerClient/Model/SWGUser.h
|
||||||
|
SwaggerClient/Model/SWGUser.m
|
||||||
|
SwaggerClient/Model/SWGUserManagedObject.h
|
||||||
|
SwaggerClient/Model/SWGUserManagedObject.m
|
||||||
|
SwaggerClient/Model/SWGUserManagedObjectBuilder.h
|
||||||
|
SwaggerClient/Model/SWGUserManagedObjectBuilder.m
|
||||||
|
docs/SWGCategory.md
|
||||||
|
docs/SWGOrder.md
|
||||||
|
docs/SWGPet.md
|
||||||
|
docs/SWGPetApi.md
|
||||||
|
docs/SWGStoreApi.md
|
||||||
|
docs/SWGTag.md
|
||||||
|
docs/SWGUser.md
|
||||||
|
docs/SWGUserApi.md
|
||||||
|
git_push.sh
|
@ -1 +1 @@
|
|||||||
3.0.0-SNAPSHOT
|
5.0.0-SNAPSHOT
|
@ -69,12 +69,12 @@ SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
|||||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
SWGPet* *pet = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
SWGPet* *body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
||||||
|
|
||||||
SWGPetApi *apiInstance = [[SWGPetApi alloc] init];
|
SWGPetApi *apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
// Add a new pet to the store
|
// Add a new pet to the store
|
||||||
[apiInstance addPetWithPet:pet
|
[apiInstance addPetWithBody:body
|
||||||
completionHandler: ^(NSError* error) {
|
completionHandler: ^(NSError* error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Error: %@", error);
|
NSLog(@"Error: %@", error);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -26,12 +26,12 @@ extern NSInteger kSWGPetApiMissingParamErrorCode;
|
|||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param pet Pet object that needs to be added to the store (optional)
|
/// @param body Pet object that needs to be added to the store (optional)
|
||||||
///
|
///
|
||||||
/// code:405 message:"Invalid input"
|
/// code:405 message:"Invalid input"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) addPetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) addPetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
@ -92,14 +92,14 @@ extern NSInteger kSWGPetApiMissingParamErrorCode;
|
|||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param pet Pet object that needs to be added to the store (optional)
|
/// @param body Pet object that needs to be added to the store (optional)
|
||||||
///
|
///
|
||||||
/// code:400 message:"Invalid ID supplied",
|
/// code:400 message:"Invalid ID supplied",
|
||||||
/// code:404 message:"Pet not found",
|
/// code:404 message:"Pet not found",
|
||||||
/// code:405 message:"Validation exception"
|
/// code:405 message:"Validation exception"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) updatePetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) updatePetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,11 +52,11 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
///
|
///
|
||||||
/// @param pet Pet object that needs to be added to the store (optional)
|
/// @param body Pet object that needs to be added to the store (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) addPetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) addPetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = pet;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
@ -193,7 +193,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
if (status != nil) {
|
if (status != nil) {
|
||||||
queryParams[@"status"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: status format: @"csv"];
|
queryParams[@"status"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: status format: @"multi"];
|
||||||
}
|
}
|
||||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
||||||
[headerParams addEntriesFromDictionary:self.defaultHeaders];
|
[headerParams addEntriesFromDictionary:self.defaultHeaders];
|
||||||
@ -250,7 +250,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
if (tags != nil) {
|
if (tags != nil) {
|
||||||
queryParams[@"tags"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: tags format: @"csv"];
|
queryParams[@"tags"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: tags format: @"multi"];
|
||||||
}
|
}
|
||||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
||||||
[headerParams addEntriesFromDictionary:self.defaultHeaders];
|
[headerParams addEntriesFromDictionary:self.defaultHeaders];
|
||||||
@ -363,11 +363,11 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
///
|
///
|
||||||
/// @param pet Pet object that needs to be added to the store (optional)
|
/// @param body Pet object that needs to be added to the store (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) updatePetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) updatePetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
||||||
|
|
||||||
@ -394,7 +394,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = pet;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"PUT"
|
method: @"PUT"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -64,13 +64,13 @@ extern NSInteger kSWGStoreApiMissingParamErrorCode;
|
|||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param order order placed for purchasing the pet (optional)
|
/// @param body order placed for purchasing the pet (optional)
|
||||||
///
|
///
|
||||||
/// code:200 message:"successful operation",
|
/// code:200 message:"successful operation",
|
||||||
/// code:400 message:"Invalid Order"
|
/// code:400 message:"Invalid Order"
|
||||||
///
|
///
|
||||||
/// @return SWGOrder*
|
/// @return SWGOrder*
|
||||||
-(NSURLSessionTask*) placeOrderWithOrder: (SWGOrder*) order
|
-(NSURLSessionTask*) placeOrderWithBody: (SWGOrder*) body
|
||||||
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler;
|
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
|
@ -240,11 +240,11 @@ NSInteger kSWGStoreApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
///
|
///
|
||||||
/// @param order order placed for purchasing the pet (optional)
|
/// @param body order placed for purchasing the pet (optional)
|
||||||
///
|
///
|
||||||
/// @returns SWGOrder*
|
/// @returns SWGOrder*
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) placeOrderWithOrder: (SWGOrder*) order
|
-(NSURLSessionTask*) placeOrderWithBody: (SWGOrder*) body
|
||||||
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler {
|
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order"];
|
||||||
|
|
||||||
@ -271,7 +271,7 @@ NSInteger kSWGStoreApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = order;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -26,36 +26,36 @@ extern NSInteger kSWGUserApiMissingParamErrorCode;
|
|||||||
/// Create user
|
/// Create user
|
||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
///
|
///
|
||||||
/// @param user Created user object (optional)
|
/// @param body Created user object (optional)
|
||||||
///
|
///
|
||||||
/// code:0 message:"successful operation"
|
/// code:0 message:"successful operation"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) createUserWithUser: (SWGUser*) user
|
-(NSURLSessionTask*) createUserWithBody: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param user List of user object (optional)
|
/// @param body List of user object (optional)
|
||||||
///
|
///
|
||||||
/// code:0 message:"successful operation"
|
/// code:0 message:"successful operation"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) createUsersWithArrayInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithArrayInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param user List of user object (optional)
|
/// @param body List of user object (optional)
|
||||||
///
|
///
|
||||||
/// code:0 message:"successful operation"
|
/// code:0 message:"successful operation"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) createUsersWithListInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithListInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
@ -116,14 +116,14 @@ extern NSInteger kSWGUserApiMissingParamErrorCode;
|
|||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
///
|
///
|
||||||
/// @param username name that need to be deleted
|
/// @param username name that need to be deleted
|
||||||
/// @param user Updated user object (optional)
|
/// @param body Updated user object (optional)
|
||||||
///
|
///
|
||||||
/// code:400 message:"Invalid user supplied",
|
/// code:400 message:"Invalid user supplied",
|
||||||
/// code:404 message:"User not found"
|
/// code:404 message:"User not found"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
||||||
user: (SWGUser*) user
|
body: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,11 +52,11 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Create user
|
/// Create user
|
||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
/// @param user Created user object (optional)
|
/// @param body Created user object (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) createUserWithUser: (SWGUser*) user
|
-(NSURLSessionTask*) createUserWithBody: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user"];
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = user;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
@ -107,11 +107,11 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
///
|
///
|
||||||
/// @param user List of user object (optional)
|
/// @param body List of user object (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) createUsersWithArrayInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithArrayInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithArray"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithArray"];
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = user;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
@ -162,11 +162,11 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
///
|
///
|
||||||
/// @param user List of user object (optional)
|
/// @param body List of user object (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) createUsersWithListInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithListInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithList"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithList"];
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = user;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
@ -470,12 +470,12 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
/// @param username name that need to be deleted
|
/// @param username name that need to be deleted
|
||||||
///
|
///
|
||||||
/// @param user Updated user object (optional)
|
/// @param body Updated user object (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
||||||
user: (SWGUser*) user
|
body: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username == nil) {
|
if (username == nil) {
|
||||||
@ -516,7 +516,7 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = user;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"PUT"
|
method: @"PUT"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -93,7 +93,7 @@
|
|||||||
/**
|
/**
|
||||||
* Sets API key
|
* Sets API key
|
||||||
*
|
*
|
||||||
* To remove a apiKey for an identifier, just set the apiKey to nil.
|
* To remove an apiKey for an identifier, just set the apiKey to nil.
|
||||||
*
|
*
|
||||||
* @param apiKey API key or token.
|
* @param apiKey API key or token.
|
||||||
* @param identifier API key identifier (authentication schema).
|
* @param identifier API key identifier (authentication schema).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -49,7 +49,7 @@ extern NSInteger const SWGUnknownResponseObjectErrorCode;
|
|||||||
@interface SWGResponseDeserializer : NSObject <SWGResponseDeserializer>
|
@interface SWGResponseDeserializer : NSObject <SWGResponseDeserializer>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If an null value occurs in dictionary or array if set to YES whole response will be invalid else will be ignored
|
* If a null value occurs in dictionary or array if set to YES whole response will be invalid else will be ignored
|
||||||
* @default NO
|
* @default NO
|
||||||
*/
|
*/
|
||||||
@property (nonatomic, assign) BOOL treatNullAsError;
|
@property (nonatomic, assign) BOOL treatNullAsError;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
11
samples/client/petstore/objc/core-data/docs/SWGCategory.md
Normal file
11
samples/client/petstore/objc/core-data/docs/SWGCategory.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# SWGCategory
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_id** | **NSNumber*** | | [optional]
|
||||||
|
**name** | **NSString*** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
15
samples/client/petstore/objc/core-data/docs/SWGOrder.md
Normal file
15
samples/client/petstore/objc/core-data/docs/SWGOrder.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# SWGOrder
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_id** | **NSNumber*** | | [optional]
|
||||||
|
**petId** | **NSNumber*** | | [optional]
|
||||||
|
**quantity** | **NSNumber*** | | [optional]
|
||||||
|
**shipDate** | **NSDate*** | | [optional]
|
||||||
|
**status** | **NSString*** | Order Status | [optional]
|
||||||
|
**complete** | **NSNumber*** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
15
samples/client/petstore/objc/core-data/docs/SWGPet.md
Normal file
15
samples/client/petstore/objc/core-data/docs/SWGPet.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# SWGPet
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_id** | **NSNumber*** | | [optional]
|
||||||
|
**category** | [**SWGCategory***](SWGCategory.md) | | [optional]
|
||||||
|
**name** | **NSString*** | |
|
||||||
|
**photoUrls** | **NSArray<NSString*>*** | |
|
||||||
|
**tags** | [**NSArray<SWGTag>***](SWGTag.md) | | [optional]
|
||||||
|
**status** | **NSString*** | pet status in the store | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
456
samples/client/petstore/objc/core-data/docs/SWGPetApi.md
Normal file
456
samples/client/petstore/objc/core-data/docs/SWGPetApi.md
Normal file
@ -0,0 +1,456 @@
|
|||||||
|
# SWGPetApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io/v2*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**addPet**](SWGPetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
||||||
|
[**deletePet**](SWGPetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
||||||
|
[**findPetsByStatus**](SWGPetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
||||||
|
[**findPetsByTags**](SWGPetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
||||||
|
[**getPetById**](SWGPetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
||||||
|
[**updatePet**](SWGPetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
||||||
|
[**updatePetWithForm**](SWGPetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
||||||
|
[**uploadFile**](SWGPetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
||||||
|
|
||||||
|
|
||||||
|
# **addPet**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) addPetWithBody: (SWGPet*) body
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Add a new pet to the store
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
|
SWGPet* body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
||||||
|
|
||||||
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
|
// Add a new pet to the store
|
||||||
|
[apiInstance addPetWithBody:body
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGPetApi->addPet: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**SWGPet***](SWGPet.md)| Pet object that needs to be added to the store | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[petstore_auth](../README.md#petstore_auth)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json, application/xml
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **deletePet**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) deletePetWithPetId: (NSNumber*) petId
|
||||||
|
apiKey: (NSString*) apiKey
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Deletes a pet
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
|
NSNumber* petId = @56; // Pet id to delete
|
||||||
|
NSString* apiKey = @"apiKey_example"; // (optional)
|
||||||
|
|
||||||
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
|
// Deletes a pet
|
||||||
|
[apiInstance deletePetWithPetId:petId
|
||||||
|
apiKey:apiKey
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGPetApi->deletePet: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**petId** | **NSNumber***| Pet id to delete |
|
||||||
|
**apiKey** | **NSString***| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[petstore_auth](../README.md#petstore_auth)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **findPetsByStatus**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) findPetsByStatusWithStatus: (NSArray<NSString*>*) status
|
||||||
|
completionHandler: (void (^)(NSArray<SWGPet>* output, NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Finds Pets by status
|
||||||
|
|
||||||
|
Multiple status values can be provided with comma separated strings
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
|
NSArray<NSString*>* status = @[@"status_example"]; // Status values that need to be considered for filter (optional)
|
||||||
|
|
||||||
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
|
// Finds Pets by status
|
||||||
|
[apiInstance findPetsByStatusWithStatus:status
|
||||||
|
completionHandler: ^(NSArray<SWGPet>* output, NSError* error) {
|
||||||
|
if (output) {
|
||||||
|
NSLog(@"%@", output);
|
||||||
|
}
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGPetApi->findPetsByStatus: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**status** | [**NSArray<NSString*>***](NSString*.md)| Status values that need to be considered for filter | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**NSArray<SWGPet>***](SWGPet.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[petstore_auth](../README.md#petstore_auth)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json, application/xml
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **findPetsByTags**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) findPetsByTagsWithTags: (NSArray<NSString*>*) tags
|
||||||
|
completionHandler: (void (^)(NSArray<SWGPet>* output, NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Finds Pets by tags
|
||||||
|
|
||||||
|
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
|
NSArray<NSString*>* tags = @[@"tags_example"]; // Tags to filter by (optional)
|
||||||
|
|
||||||
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
|
// Finds Pets by tags
|
||||||
|
[apiInstance findPetsByTagsWithTags:tags
|
||||||
|
completionHandler: ^(NSArray<SWGPet>* output, NSError* error) {
|
||||||
|
if (output) {
|
||||||
|
NSLog(@"%@", output);
|
||||||
|
}
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGPetApi->findPetsByTags: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**tags** | [**NSArray<NSString*>***](NSString*.md)| Tags to filter by | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**NSArray<SWGPet>***](SWGPet.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[petstore_auth](../README.md#petstore_auth)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json, application/xml
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **getPetById**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) getPetByIdWithPetId: (NSNumber*) petId
|
||||||
|
completionHandler: (void (^)(SWGPet* output, NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Find pet by ID
|
||||||
|
|
||||||
|
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure API key authorization: (authentication scheme: api_key)
|
||||||
|
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
||||||
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
|
NSNumber* petId = @56; // ID of pet that needs to be fetched
|
||||||
|
|
||||||
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
|
// Find pet by ID
|
||||||
|
[apiInstance getPetByIdWithPetId:petId
|
||||||
|
completionHandler: ^(SWGPet* output, NSError* error) {
|
||||||
|
if (output) {
|
||||||
|
NSLog(@"%@", output);
|
||||||
|
}
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGPetApi->getPetById: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**petId** | **NSNumber***| ID of pet that needs to be fetched |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**SWGPet***](SWGPet.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[api_key](../README.md#api_key), [petstore_auth](../README.md#petstore_auth)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json, application/xml
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **updatePet**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) updatePetWithBody: (SWGPet*) body
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Update an existing pet
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
|
SWGPet* body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
||||||
|
|
||||||
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
|
// Update an existing pet
|
||||||
|
[apiInstance updatePetWithBody:body
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGPetApi->updatePet: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**SWGPet***](SWGPet.md)| Pet object that needs to be added to the store | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[petstore_auth](../README.md#petstore_auth)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json, application/xml
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **updatePetWithForm**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) updatePetWithFormWithPetId: (NSString*) petId
|
||||||
|
name: (NSString*) name
|
||||||
|
status: (NSString*) status
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Updates a pet in the store with form data
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
|
NSString* petId = @"petId_example"; // ID of pet that needs to be updated
|
||||||
|
NSString* name = @"name_example"; // Updated name of the pet (optional)
|
||||||
|
NSString* status = @"status_example"; // Updated status of the pet (optional)
|
||||||
|
|
||||||
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
|
// Updates a pet in the store with form data
|
||||||
|
[apiInstance updatePetWithFormWithPetId:petId
|
||||||
|
name:name
|
||||||
|
status:status
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGPetApi->updatePetWithForm: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**petId** | **NSString***| ID of pet that needs to be updated |
|
||||||
|
**name** | **NSString***| Updated name of the pet | [optional]
|
||||||
|
**status** | **NSString***| Updated status of the pet | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[petstore_auth](../README.md#petstore_auth)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/x-www-form-urlencoded
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **uploadFile**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) uploadFileWithPetId: (NSNumber*) petId
|
||||||
|
additionalMetadata: (NSString*) additionalMetadata
|
||||||
|
file: (NSURL*) file
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
uploads an image
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||||
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
|
NSNumber* petId = @56; // ID of pet to update
|
||||||
|
NSString* additionalMetadata = @"additionalMetadata_example"; // Additional data to pass to server (optional)
|
||||||
|
NSURL* file = [NSURL fileURLWithPath:@"/path/to/file"]; // file to upload (optional)
|
||||||
|
|
||||||
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
|
// uploads an image
|
||||||
|
[apiInstance uploadFileWithPetId:petId
|
||||||
|
additionalMetadata:additionalMetadata
|
||||||
|
file:file
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGPetApi->uploadFile: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**petId** | **NSNumber***| ID of pet to update |
|
||||||
|
**additionalMetadata** | **NSString***| Additional data to pass to server | [optional]
|
||||||
|
**file** | **NSURL*****NSURL***| file to upload | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[petstore_auth](../README.md#petstore_auth)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: multipart/form-data
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
210
samples/client/petstore/objc/core-data/docs/SWGStoreApi.md
Normal file
210
samples/client/petstore/objc/core-data/docs/SWGStoreApi.md
Normal file
@ -0,0 +1,210 @@
|
|||||||
|
# SWGStoreApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io/v2*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**deleteOrder**](SWGStoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
|
||||||
|
[**getInventory**](SWGStoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
||||||
|
[**getOrderById**](SWGStoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
|
||||||
|
[**placeOrder**](SWGStoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
||||||
|
|
||||||
|
|
||||||
|
# **deleteOrder**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) deleteOrderWithOrderId: (NSString*) orderId
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Delete purchase order by ID
|
||||||
|
|
||||||
|
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
NSString* orderId = @"orderId_example"; // ID of the order that needs to be deleted
|
||||||
|
|
||||||
|
SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
|
||||||
|
|
||||||
|
// Delete purchase order by ID
|
||||||
|
[apiInstance deleteOrderWithOrderId:orderId
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGStoreApi->deleteOrder: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**orderId** | **NSString***| ID of the order that needs to be deleted |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **getInventory**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) getInventoryWithCompletionHandler:
|
||||||
|
(void (^)(NSDictionary<NSString*, NSNumber*>* output, NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Returns pet inventories by status
|
||||||
|
|
||||||
|
Returns a map of status codes to quantities
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
||||||
|
|
||||||
|
// Configure API key authorization: (authentication scheme: api_key)
|
||||||
|
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
||||||
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
|
||||||
|
|
||||||
|
// Returns pet inventories by status
|
||||||
|
[apiInstance getInventoryWithCompletionHandler:
|
||||||
|
^(NSDictionary<NSString*, NSNumber*>* output, NSError* error) {
|
||||||
|
if (output) {
|
||||||
|
NSLog(@"%@", output);
|
||||||
|
}
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGStoreApi->getInventory: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
**NSDictionary<NSString*, NSNumber*>***
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[api_key](../README.md#api_key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json, application/xml
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **getOrderById**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) getOrderByIdWithOrderId: (NSString*) orderId
|
||||||
|
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Find purchase order by ID
|
||||||
|
|
||||||
|
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
NSString* orderId = @"orderId_example"; // ID of pet that needs to be fetched
|
||||||
|
|
||||||
|
SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
|
||||||
|
|
||||||
|
// Find purchase order by ID
|
||||||
|
[apiInstance getOrderByIdWithOrderId:orderId
|
||||||
|
completionHandler: ^(SWGOrder* output, NSError* error) {
|
||||||
|
if (output) {
|
||||||
|
NSLog(@"%@", output);
|
||||||
|
}
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGStoreApi->getOrderById: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**orderId** | **NSString***| ID of pet that needs to be fetched |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**SWGOrder***](SWGOrder.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json, application/xml
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **placeOrder**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) placeOrderWithBody: (SWGOrder*) body
|
||||||
|
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Place an order for a pet
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
SWGOrder* body = [[SWGOrder alloc] init]; // order placed for purchasing the pet (optional)
|
||||||
|
|
||||||
|
SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
|
||||||
|
|
||||||
|
// Place an order for a pet
|
||||||
|
[apiInstance placeOrderWithBody:body
|
||||||
|
completionHandler: ^(SWGOrder* output, NSError* error) {
|
||||||
|
if (output) {
|
||||||
|
NSLog(@"%@", output);
|
||||||
|
}
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGStoreApi->placeOrder: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**SWGOrder***](SWGOrder.md)| order placed for purchasing the pet | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**SWGOrder***](SWGOrder.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json, application/xml
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
11
samples/client/petstore/objc/core-data/docs/SWGTag.md
Normal file
11
samples/client/petstore/objc/core-data/docs/SWGTag.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# SWGTag
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_id** | **NSNumber*** | | [optional]
|
||||||
|
**name** | **NSString*** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
17
samples/client/petstore/objc/core-data/docs/SWGUser.md
Normal file
17
samples/client/petstore/objc/core-data/docs/SWGUser.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# SWGUser
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_id** | **NSNumber*** | | [optional]
|
||||||
|
**username** | **NSString*** | | [optional]
|
||||||
|
**firstName** | **NSString*** | | [optional]
|
||||||
|
**lastName** | **NSString*** | | [optional]
|
||||||
|
**email** | **NSString*** | | [optional]
|
||||||
|
**password** | **NSString*** | | [optional]
|
||||||
|
**phone** | **NSString*** | | [optional]
|
||||||
|
**userStatus** | **NSNumber*** | User Status | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
392
samples/client/petstore/objc/core-data/docs/SWGUserApi.md
Normal file
392
samples/client/petstore/objc/core-data/docs/SWGUserApi.md
Normal file
@ -0,0 +1,392 @@
|
|||||||
|
# SWGUserApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io/v2*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**createUser**](SWGUserApi.md#createuser) | **POST** /user | Create user
|
||||||
|
[**createUsersWithArrayInput**](SWGUserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
||||||
|
[**createUsersWithListInput**](SWGUserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
||||||
|
[**deleteUser**](SWGUserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
||||||
|
[**getUserByName**](SWGUserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
||||||
|
[**loginUser**](SWGUserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
||||||
|
[**logoutUser**](SWGUserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
||||||
|
[**updateUser**](SWGUserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
||||||
|
|
||||||
|
|
||||||
|
# **createUser**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) createUserWithBody: (SWGUser*) body
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Create user
|
||||||
|
|
||||||
|
This can only be done by the logged in user.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
SWGUser* body = [[SWGUser alloc] init]; // Created user object (optional)
|
||||||
|
|
||||||
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
|
// Create user
|
||||||
|
[apiInstance createUserWithBody:body
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGUserApi->createUser: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**SWGUser***](SWGUser.md)| Created user object | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **createUsersWithArrayInput**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) createUsersWithArrayInputWithBody: (NSArray<SWGUser>*) body
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
NSArray<SWGUser>* body = @[[[SWGUser alloc] init]]; // List of user object (optional)
|
||||||
|
|
||||||
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
|
// Creates list of users with given input array
|
||||||
|
[apiInstance createUsersWithArrayInputWithBody:body
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGUserApi->createUsersWithArrayInput: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**NSArray<SWGUser>***](SWGUser.md)| List of user object | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **createUsersWithListInput**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) createUsersWithListInputWithBody: (NSArray<SWGUser>*) body
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
NSArray<SWGUser>* body = @[[[SWGUser alloc] init]]; // List of user object (optional)
|
||||||
|
|
||||||
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
|
// Creates list of users with given input array
|
||||||
|
[apiInstance createUsersWithListInputWithBody:body
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGUserApi->createUsersWithListInput: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**NSArray<SWGUser>***](SWGUser.md)| List of user object | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **deleteUser**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) deleteUserWithUsername: (NSString*) username
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Delete user
|
||||||
|
|
||||||
|
This can only be done by the logged in user.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
NSString* username = @"username_example"; // The name that needs to be deleted
|
||||||
|
|
||||||
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
|
// Delete user
|
||||||
|
[apiInstance deleteUserWithUsername:username
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGUserApi->deleteUser: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**username** | **NSString***| The name that needs to be deleted |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **getUserByName**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) getUserByNameWithUsername: (NSString*) username
|
||||||
|
completionHandler: (void (^)(SWGUser* output, NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Get user by user name
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
NSString* username = @"username_example"; // The name that needs to be fetched. Use user1 for testing.
|
||||||
|
|
||||||
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
|
// Get user by user name
|
||||||
|
[apiInstance getUserByNameWithUsername:username
|
||||||
|
completionHandler: ^(SWGUser* output, NSError* error) {
|
||||||
|
if (output) {
|
||||||
|
NSLog(@"%@", output);
|
||||||
|
}
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGUserApi->getUserByName: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**username** | **NSString***| The name that needs to be fetched. Use user1 for testing. |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**SWGUser***](SWGUser.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json, application/xml
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **loginUser**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) loginUserWithUsername: (NSString*) username
|
||||||
|
password: (NSString*) password
|
||||||
|
completionHandler: (void (^)(NSString* output, NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Logs user into the system
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
NSString* username = @"username_example"; // The user name for login (optional)
|
||||||
|
NSString* password = @"password_example"; // The password for login in clear text (optional)
|
||||||
|
|
||||||
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
|
// Logs user into the system
|
||||||
|
[apiInstance loginUserWithUsername:username
|
||||||
|
password:password
|
||||||
|
completionHandler: ^(NSString* output, NSError* error) {
|
||||||
|
if (output) {
|
||||||
|
NSLog(@"%@", output);
|
||||||
|
}
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGUserApi->loginUser: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**username** | **NSString***| The user name for login | [optional]
|
||||||
|
**password** | **NSString***| The password for login in clear text | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
**NSString***
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json, application/xml
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **logoutUser**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) logoutUserWithCompletionHandler:
|
||||||
|
(void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Logs out current logged in user session
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
|
||||||
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
|
// Logs out current logged in user session
|
||||||
|
[apiInstance logoutUserWithCompletionHandler:
|
||||||
|
^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGUserApi->logoutUser: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **updateUser**
|
||||||
|
```objc
|
||||||
|
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
||||||
|
body: (SWGUser*) body
|
||||||
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
```
|
||||||
|
|
||||||
|
Updated user
|
||||||
|
|
||||||
|
This can only be done by the logged in user.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```objc
|
||||||
|
|
||||||
|
NSString* username = @"username_example"; // name that need to be deleted
|
||||||
|
SWGUser* body = [[SWGUser alloc] init]; // Updated user object (optional)
|
||||||
|
|
||||||
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
|
// Updated user
|
||||||
|
[apiInstance updateUserWithUsername:username
|
||||||
|
body:body
|
||||||
|
completionHandler: ^(NSError* error) {
|
||||||
|
if (error) {
|
||||||
|
NSLog(@"Error calling SWGUserApi->updateUser: %@", error);
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**username** | **NSString***| name that need to be deleted |
|
||||||
|
**body** | [**SWGUser***](SWGUser.md)| Updated user object | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
@ -1,11 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||||
#
|
#
|
||||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
||||||
|
|
||||||
git_user_id=$1
|
git_user_id=$1
|
||||||
git_repo_id=$2
|
git_repo_id=$2
|
||||||
release_note=$3
|
release_note=$3
|
||||||
|
git_host=$4
|
||||||
|
|
||||||
|
if [ "$git_host" = "" ]; then
|
||||||
|
git_host="github.com"
|
||||||
|
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="GIT_USER_ID"
|
git_user_id="GIT_USER_ID"
|
||||||
@ -37,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
|
|||||||
|
|
||||||
if [ "$GIT_TOKEN" = "" ]; then
|
if [ "$GIT_TOKEN" = "" ]; then
|
||||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||||
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||||
else
|
else
|
||||||
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@ -47,6 +53,6 @@ fi
|
|||||||
git pull origin master
|
git pull origin master
|
||||||
|
|
||||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||||
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||||
git push origin master 2>&1 | grep -v 'To https'
|
git push origin master 2>&1 | grep -v 'To https'
|
||||||
|
|
||||||
|
@ -0,0 +1,50 @@
|
|||||||
|
.gitignore
|
||||||
|
README.md
|
||||||
|
SwaggerClient.podspec
|
||||||
|
SwaggerClient/Api/SWGPetApi.h
|
||||||
|
SwaggerClient/Api/SWGPetApi.m
|
||||||
|
SwaggerClient/Api/SWGStoreApi.h
|
||||||
|
SwaggerClient/Api/SWGStoreApi.m
|
||||||
|
SwaggerClient/Api/SWGUserApi.h
|
||||||
|
SwaggerClient/Api/SWGUserApi.m
|
||||||
|
SwaggerClient/Core/JSONValueTransformer+ISO8601.h
|
||||||
|
SwaggerClient/Core/JSONValueTransformer+ISO8601.m
|
||||||
|
SwaggerClient/Core/SWGApi.h
|
||||||
|
SwaggerClient/Core/SWGApiClient.h
|
||||||
|
SwaggerClient/Core/SWGApiClient.m
|
||||||
|
SwaggerClient/Core/SWGBasicAuthTokenProvider.h
|
||||||
|
SwaggerClient/Core/SWGBasicAuthTokenProvider.m
|
||||||
|
SwaggerClient/Core/SWGConfiguration.h
|
||||||
|
SwaggerClient/Core/SWGDefaultConfiguration.h
|
||||||
|
SwaggerClient/Core/SWGDefaultConfiguration.m
|
||||||
|
SwaggerClient/Core/SWGJSONRequestSerializer.h
|
||||||
|
SwaggerClient/Core/SWGJSONRequestSerializer.m
|
||||||
|
SwaggerClient/Core/SWGLogger.h
|
||||||
|
SwaggerClient/Core/SWGLogger.m
|
||||||
|
SwaggerClient/Core/SWGObject.h
|
||||||
|
SwaggerClient/Core/SWGObject.m
|
||||||
|
SwaggerClient/Core/SWGQueryParamCollection.h
|
||||||
|
SwaggerClient/Core/SWGQueryParamCollection.m
|
||||||
|
SwaggerClient/Core/SWGResponseDeserializer.h
|
||||||
|
SwaggerClient/Core/SWGResponseDeserializer.m
|
||||||
|
SwaggerClient/Core/SWGSanitizer.h
|
||||||
|
SwaggerClient/Core/SWGSanitizer.m
|
||||||
|
SwaggerClient/Model/SWGCategory.h
|
||||||
|
SwaggerClient/Model/SWGCategory.m
|
||||||
|
SwaggerClient/Model/SWGOrder.h
|
||||||
|
SwaggerClient/Model/SWGOrder.m
|
||||||
|
SwaggerClient/Model/SWGPet.h
|
||||||
|
SwaggerClient/Model/SWGPet.m
|
||||||
|
SwaggerClient/Model/SWGTag.h
|
||||||
|
SwaggerClient/Model/SWGTag.m
|
||||||
|
SwaggerClient/Model/SWGUser.h
|
||||||
|
SwaggerClient/Model/SWGUser.m
|
||||||
|
docs/SWGCategory.md
|
||||||
|
docs/SWGOrder.md
|
||||||
|
docs/SWGPet.md
|
||||||
|
docs/SWGPetApi.md
|
||||||
|
docs/SWGStoreApi.md
|
||||||
|
docs/SWGTag.md
|
||||||
|
docs/SWGUser.md
|
||||||
|
docs/SWGUserApi.md
|
||||||
|
git_push.sh
|
@ -1 +1 @@
|
|||||||
3.0.0-SNAPSHOT
|
5.0.0-SNAPSHOT
|
@ -69,12 +69,12 @@ SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
|||||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
SWGPet* *pet = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
SWGPet* *body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
||||||
|
|
||||||
SWGPetApi *apiInstance = [[SWGPetApi alloc] init];
|
SWGPetApi *apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
// Add a new pet to the store
|
// Add a new pet to the store
|
||||||
[apiInstance addPetWithPet:pet
|
[apiInstance addPetWithBody:body
|
||||||
completionHandler: ^(NSError* error) {
|
completionHandler: ^(NSError* error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Error: %@", error);
|
NSLog(@"Error: %@", error);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -26,12 +26,12 @@ extern NSInteger kSWGPetApiMissingParamErrorCode;
|
|||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param pet Pet object that needs to be added to the store (optional)
|
/// @param body Pet object that needs to be added to the store (optional)
|
||||||
///
|
///
|
||||||
/// code:405 message:"Invalid input"
|
/// code:405 message:"Invalid input"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) addPetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) addPetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
@ -92,14 +92,14 @@ extern NSInteger kSWGPetApiMissingParamErrorCode;
|
|||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param pet Pet object that needs to be added to the store (optional)
|
/// @param body Pet object that needs to be added to the store (optional)
|
||||||
///
|
///
|
||||||
/// code:400 message:"Invalid ID supplied",
|
/// code:400 message:"Invalid ID supplied",
|
||||||
/// code:404 message:"Pet not found",
|
/// code:404 message:"Pet not found",
|
||||||
/// code:405 message:"Validation exception"
|
/// code:405 message:"Validation exception"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) updatePetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) updatePetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,11 +52,11 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Add a new pet to the store
|
/// Add a new pet to the store
|
||||||
///
|
///
|
||||||
/// @param pet Pet object that needs to be added to the store (optional)
|
/// @param body Pet object that needs to be added to the store (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) addPetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) addPetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = pet;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
@ -193,7 +193,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
if (status != nil) {
|
if (status != nil) {
|
||||||
queryParams[@"status"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: status format: @"csv"];
|
queryParams[@"status"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: status format: @"multi"];
|
||||||
}
|
}
|
||||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
||||||
[headerParams addEntriesFromDictionary:self.defaultHeaders];
|
[headerParams addEntriesFromDictionary:self.defaultHeaders];
|
||||||
@ -250,7 +250,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
|
|
||||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||||
if (tags != nil) {
|
if (tags != nil) {
|
||||||
queryParams[@"tags"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: tags format: @"csv"];
|
queryParams[@"tags"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: tags format: @"multi"];
|
||||||
}
|
}
|
||||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
||||||
[headerParams addEntriesFromDictionary:self.defaultHeaders];
|
[headerParams addEntriesFromDictionary:self.defaultHeaders];
|
||||||
@ -363,11 +363,11 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Update an existing pet
|
/// Update an existing pet
|
||||||
///
|
///
|
||||||
/// @param pet Pet object that needs to be added to the store (optional)
|
/// @param body Pet object that needs to be added to the store (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) updatePetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) updatePetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/pet"];
|
||||||
|
|
||||||
@ -394,7 +394,7 @@ NSInteger kSWGPetApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = pet;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"PUT"
|
method: @"PUT"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -64,13 +64,13 @@ extern NSInteger kSWGStoreApiMissingParamErrorCode;
|
|||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param order order placed for purchasing the pet (optional)
|
/// @param body order placed for purchasing the pet (optional)
|
||||||
///
|
///
|
||||||
/// code:200 message:"successful operation",
|
/// code:200 message:"successful operation",
|
||||||
/// code:400 message:"Invalid Order"
|
/// code:400 message:"Invalid Order"
|
||||||
///
|
///
|
||||||
/// @return SWGOrder*
|
/// @return SWGOrder*
|
||||||
-(NSURLSessionTask*) placeOrderWithOrder: (SWGOrder*) order
|
-(NSURLSessionTask*) placeOrderWithBody: (SWGOrder*) body
|
||||||
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler;
|
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
|
@ -240,11 +240,11 @@ NSInteger kSWGStoreApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Place an order for a pet
|
/// Place an order for a pet
|
||||||
///
|
///
|
||||||
/// @param order order placed for purchasing the pet (optional)
|
/// @param body order placed for purchasing the pet (optional)
|
||||||
///
|
///
|
||||||
/// @returns SWGOrder*
|
/// @returns SWGOrder*
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) placeOrderWithOrder: (SWGOrder*) order
|
-(NSURLSessionTask*) placeOrderWithBody: (SWGOrder*) body
|
||||||
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler {
|
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/store/order"];
|
||||||
|
|
||||||
@ -271,7 +271,7 @@ NSInteger kSWGStoreApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = order;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -26,36 +26,36 @@ extern NSInteger kSWGUserApiMissingParamErrorCode;
|
|||||||
/// Create user
|
/// Create user
|
||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
///
|
///
|
||||||
/// @param user Created user object (optional)
|
/// @param body Created user object (optional)
|
||||||
///
|
///
|
||||||
/// code:0 message:"successful operation"
|
/// code:0 message:"successful operation"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) createUserWithUser: (SWGUser*) user
|
-(NSURLSessionTask*) createUserWithBody: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param user List of user object (optional)
|
/// @param body List of user object (optional)
|
||||||
///
|
///
|
||||||
/// code:0 message:"successful operation"
|
/// code:0 message:"successful operation"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) createUsersWithArrayInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithArrayInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// @param user List of user object (optional)
|
/// @param body List of user object (optional)
|
||||||
///
|
///
|
||||||
/// code:0 message:"successful operation"
|
/// code:0 message:"successful operation"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) createUsersWithListInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithListInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
@ -116,14 +116,14 @@ extern NSInteger kSWGUserApiMissingParamErrorCode;
|
|||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
///
|
///
|
||||||
/// @param username name that need to be deleted
|
/// @param username name that need to be deleted
|
||||||
/// @param user Updated user object (optional)
|
/// @param body Updated user object (optional)
|
||||||
///
|
///
|
||||||
/// code:400 message:"Invalid user supplied",
|
/// code:400 message:"Invalid user supplied",
|
||||||
/// code:404 message:"User not found"
|
/// code:404 message:"User not found"
|
||||||
///
|
///
|
||||||
/// @return void
|
/// @return void
|
||||||
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
||||||
user: (SWGUser*) user
|
body: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,11 +52,11 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Create user
|
/// Create user
|
||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
/// @param user Created user object (optional)
|
/// @param body Created user object (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) createUserWithUser: (SWGUser*) user
|
-(NSURLSessionTask*) createUserWithBody: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user"];
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = user;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
@ -107,11 +107,11 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
///
|
///
|
||||||
/// @param user List of user object (optional)
|
/// @param body List of user object (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) createUsersWithArrayInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithArrayInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithArray"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithArray"];
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = user;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
@ -162,11 +162,11 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
///
|
///
|
||||||
/// Creates list of users with given input array
|
/// Creates list of users with given input array
|
||||||
///
|
///
|
||||||
/// @param user List of user object (optional)
|
/// @param body List of user object (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) createUsersWithListInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithListInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithList"];
|
NSMutableString* resourcePath = [NSMutableString stringWithFormat:@"/user/createWithList"];
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = user;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
@ -470,12 +470,12 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
/// This can only be done by the logged in user.
|
/// This can only be done by the logged in user.
|
||||||
/// @param username name that need to be deleted
|
/// @param username name that need to be deleted
|
||||||
///
|
///
|
||||||
/// @param user Updated user object (optional)
|
/// @param body Updated user object (optional)
|
||||||
///
|
///
|
||||||
/// @returns void
|
/// @returns void
|
||||||
///
|
///
|
||||||
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
||||||
user: (SWGUser*) user
|
body: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler {
|
completionHandler: (void (^)(NSError* error)) handler {
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username == nil) {
|
if (username == nil) {
|
||||||
@ -516,7 +516,7 @@ NSInteger kSWGUserApiMissingParamErrorCode = 234513;
|
|||||||
id bodyParam = nil;
|
id bodyParam = nil;
|
||||||
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];
|
||||||
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary *localVarFiles = [[NSMutableDictionary alloc] init];
|
||||||
bodyParam = user;
|
bodyParam = body;
|
||||||
|
|
||||||
return [self.apiClient requestWithPath: resourcePath
|
return [self.apiClient requestWithPath: resourcePath
|
||||||
method: @"PUT"
|
method: @"PUT"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -93,7 +93,7 @@
|
|||||||
/**
|
/**
|
||||||
* Sets API key
|
* Sets API key
|
||||||
*
|
*
|
||||||
* To remove a apiKey for an identifier, just set the apiKey to nil.
|
* To remove an apiKey for an identifier, just set the apiKey to nil.
|
||||||
*
|
*
|
||||||
* @param apiKey API key or token.
|
* @param apiKey API key or token.
|
||||||
* @param identifier API key identifier (authentication schema).
|
* @param identifier API key identifier (authentication schema).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
@ -49,7 +49,7 @@ extern NSInteger const SWGUnknownResponseObjectErrorCode;
|
|||||||
@interface SWGResponseDeserializer : NSObject <SWGResponseDeserializer>
|
@interface SWGResponseDeserializer : NSObject <SWGResponseDeserializer>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If an null value occurs in dictionary or array if set to YES whole response will be invalid else will be ignored
|
* If a null value occurs in dictionary or array if set to YES whole response will be invalid else will be ignored
|
||||||
* @default NO
|
* @default NO
|
||||||
*/
|
*/
|
||||||
@property (nonatomic, assign) BOOL treatNullAsError;
|
@property (nonatomic, assign) BOOL treatNullAsError;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* OpenAPI Petstore
|
* OpenAPI Petstore
|
||||||
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
# **addPet**
|
# **addPet**
|
||||||
```objc
|
```objc
|
||||||
-(NSURLSessionTask*) addPetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) addPetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -30,12 +30,12 @@ SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
|||||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
SWGPet* pet = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
SWGPet* body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
||||||
|
|
||||||
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
// Add a new pet to the store
|
// Add a new pet to the store
|
||||||
[apiInstance addPetWithPet:pet
|
[apiInstance addPetWithBody:body
|
||||||
completionHandler: ^(NSError* error) {
|
completionHandler: ^(NSError* error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Error calling SWGPetApi->addPet: %@", error);
|
NSLog(@"Error calling SWGPetApi->addPet: %@", error);
|
||||||
@ -47,7 +47,7 @@ SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**pet** | [**SWGPet***](SWGPet.md)| Pet object that needs to be added to the store | [optional]
|
**body** | [**SWGPet***](SWGPet.md)| Pet object that needs to be added to the store | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
# **updatePet**
|
# **updatePet**
|
||||||
```objc
|
```objc
|
||||||
-(NSURLSessionTask*) updatePetWithPet: (SWGPet*) pet
|
-(NSURLSessionTask*) updatePetWithBody: (SWGPet*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -304,12 +304,12 @@ SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
|
|||||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||||
|
|
||||||
|
|
||||||
SWGPet* pet = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
SWGPet* body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
|
||||||
|
|
||||||
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
||||||
|
|
||||||
// Update an existing pet
|
// Update an existing pet
|
||||||
[apiInstance updatePetWithPet:pet
|
[apiInstance updatePetWithBody:body
|
||||||
completionHandler: ^(NSError* error) {
|
completionHandler: ^(NSError* error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Error calling SWGPetApi->updatePet: %@", error);
|
NSLog(@"Error calling SWGPetApi->updatePet: %@", error);
|
||||||
@ -321,7 +321,7 @@ SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**pet** | [**SWGPet***](SWGPet.md)| Pet object that needs to be added to the store | [optional]
|
**body** | [**SWGPet***](SWGPet.md)| Pet object that needs to be added to the store | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ No authorization required
|
|||||||
|
|
||||||
# **placeOrder**
|
# **placeOrder**
|
||||||
```objc
|
```objc
|
||||||
-(NSURLSessionTask*) placeOrderWithOrder: (SWGOrder*) order
|
-(NSURLSessionTask*) placeOrderWithBody: (SWGOrder*) body
|
||||||
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler;
|
completionHandler: (void (^)(SWGOrder* output, NSError* error)) handler;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -171,12 +171,12 @@ Place an order for a pet
|
|||||||
### Example
|
### Example
|
||||||
```objc
|
```objc
|
||||||
|
|
||||||
SWGOrder* order = [[SWGOrder alloc] init]; // order placed for purchasing the pet (optional)
|
SWGOrder* body = [[SWGOrder alloc] init]; // order placed for purchasing the pet (optional)
|
||||||
|
|
||||||
SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
|
SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
|
||||||
|
|
||||||
// Place an order for a pet
|
// Place an order for a pet
|
||||||
[apiInstance placeOrderWithOrder:order
|
[apiInstance placeOrderWithBody:body
|
||||||
completionHandler: ^(SWGOrder* output, NSError* error) {
|
completionHandler: ^(SWGOrder* output, NSError* error) {
|
||||||
if (output) {
|
if (output) {
|
||||||
NSLog(@"%@", output);
|
NSLog(@"%@", output);
|
||||||
@ -191,7 +191,7 @@ SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**order** | [**SWGOrder***](SWGOrder.md)| order placed for purchasing the pet | [optional]
|
**body** | [**SWGOrder***](SWGOrder.md)| order placed for purchasing the pet | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
# **createUser**
|
# **createUser**
|
||||||
```objc
|
```objc
|
||||||
-(NSURLSessionTask*) createUserWithUser: (SWGUser*) user
|
-(NSURLSessionTask*) createUserWithBody: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -27,12 +27,12 @@ This can only be done by the logged in user.
|
|||||||
### Example
|
### Example
|
||||||
```objc
|
```objc
|
||||||
|
|
||||||
SWGUser* user = [[SWGUser alloc] init]; // Created user object (optional)
|
SWGUser* body = [[SWGUser alloc] init]; // Created user object (optional)
|
||||||
|
|
||||||
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
// Create user
|
// Create user
|
||||||
[apiInstance createUserWithUser:user
|
[apiInstance createUserWithBody:body
|
||||||
completionHandler: ^(NSError* error) {
|
completionHandler: ^(NSError* error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Error calling SWGUserApi->createUser: %@", error);
|
NSLog(@"Error calling SWGUserApi->createUser: %@", error);
|
||||||
@ -44,7 +44,7 @@ SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**user** | [**SWGUser***](SWGUser.md)| Created user object | [optional]
|
**body** | [**SWGUser***](SWGUser.md)| Created user object | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ No authorization required
|
|||||||
|
|
||||||
# **createUsersWithArrayInput**
|
# **createUsersWithArrayInput**
|
||||||
```objc
|
```objc
|
||||||
-(NSURLSessionTask*) createUsersWithArrayInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithArrayInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -72,12 +72,12 @@ Creates list of users with given input array
|
|||||||
### Example
|
### Example
|
||||||
```objc
|
```objc
|
||||||
|
|
||||||
NSArray<SWGUser>* user = @[[[NSArray alloc] init]]; // List of user object (optional)
|
NSArray<SWGUser>* body = @[[[SWGUser alloc] init]]; // List of user object (optional)
|
||||||
|
|
||||||
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
// Creates list of users with given input array
|
// Creates list of users with given input array
|
||||||
[apiInstance createUsersWithArrayInputWithUser:user
|
[apiInstance createUsersWithArrayInputWithBody:body
|
||||||
completionHandler: ^(NSError* error) {
|
completionHandler: ^(NSError* error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Error calling SWGUserApi->createUsersWithArrayInput: %@", error);
|
NSLog(@"Error calling SWGUserApi->createUsersWithArrayInput: %@", error);
|
||||||
@ -89,7 +89,7 @@ SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**user** | [**NSArray<SWGUser>***](NSArray.md)| List of user object | [optional]
|
**body** | [**NSArray<SWGUser>***](SWGUser.md)| List of user object | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ No authorization required
|
|||||||
|
|
||||||
# **createUsersWithListInput**
|
# **createUsersWithListInput**
|
||||||
```objc
|
```objc
|
||||||
-(NSURLSessionTask*) createUsersWithListInputWithUser: (NSArray<SWGUser>*) user
|
-(NSURLSessionTask*) createUsersWithListInputWithBody: (NSArray<SWGUser>*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -117,12 +117,12 @@ Creates list of users with given input array
|
|||||||
### Example
|
### Example
|
||||||
```objc
|
```objc
|
||||||
|
|
||||||
NSArray<SWGUser>* user = @[[[NSArray alloc] init]]; // List of user object (optional)
|
NSArray<SWGUser>* body = @[[[SWGUser alloc] init]]; // List of user object (optional)
|
||||||
|
|
||||||
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
// Creates list of users with given input array
|
// Creates list of users with given input array
|
||||||
[apiInstance createUsersWithListInputWithUser:user
|
[apiInstance createUsersWithListInputWithBody:body
|
||||||
completionHandler: ^(NSError* error) {
|
completionHandler: ^(NSError* error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Error calling SWGUserApi->createUsersWithListInput: %@", error);
|
NSLog(@"Error calling SWGUserApi->createUsersWithListInput: %@", error);
|
||||||
@ -134,7 +134,7 @@ SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**user** | [**NSArray<SWGUser>***](NSArray.md)| List of user object | [optional]
|
**body** | [**NSArray<SWGUser>***](SWGUser.md)| List of user object | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -342,7 +342,7 @@ No authorization required
|
|||||||
# **updateUser**
|
# **updateUser**
|
||||||
```objc
|
```objc
|
||||||
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
-(NSURLSessionTask*) updateUserWithUsername: (NSString*) username
|
||||||
user: (SWGUser*) user
|
body: (SWGUser*) body
|
||||||
completionHandler: (void (^)(NSError* error)) handler;
|
completionHandler: (void (^)(NSError* error)) handler;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -354,13 +354,13 @@ This can only be done by the logged in user.
|
|||||||
```objc
|
```objc
|
||||||
|
|
||||||
NSString* username = @"username_example"; // name that need to be deleted
|
NSString* username = @"username_example"; // name that need to be deleted
|
||||||
SWGUser* user = [[SWGUser alloc] init]; // Updated user object (optional)
|
SWGUser* body = [[SWGUser alloc] init]; // Updated user object (optional)
|
||||||
|
|
||||||
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
||||||
|
|
||||||
// Updated user
|
// Updated user
|
||||||
[apiInstance updateUserWithUsername:username
|
[apiInstance updateUserWithUsername:username
|
||||||
user:user
|
body:body
|
||||||
completionHandler: ^(NSError* error) {
|
completionHandler: ^(NSError* error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Error calling SWGUserApi->updateUser: %@", error);
|
NSLog(@"Error calling SWGUserApi->updateUser: %@", error);
|
||||||
@ -373,7 +373,7 @@ SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**username** | **NSString***| name that need to be deleted |
|
**username** | **NSString***| name that need to be deleted |
|
||||||
**user** | [**SWGUser***](SWGUser.md)| Updated user object | [optional]
|
**body** | [**SWGUser***](SWGUser.md)| Updated user object | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -1,11 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||||
#
|
#
|
||||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
||||||
|
|
||||||
git_user_id=$1
|
git_user_id=$1
|
||||||
git_repo_id=$2
|
git_repo_id=$2
|
||||||
release_note=$3
|
release_note=$3
|
||||||
|
git_host=$4
|
||||||
|
|
||||||
|
if [ "$git_host" = "" ]; then
|
||||||
|
git_host="github.com"
|
||||||
|
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="GIT_USER_ID"
|
git_user_id="GIT_USER_ID"
|
||||||
@ -37,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
|
|||||||
|
|
||||||
if [ "$GIT_TOKEN" = "" ]; then
|
if [ "$GIT_TOKEN" = "" ]; then
|
||||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
||||||
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
||||||
else
|
else
|
||||||
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@ -47,6 +53,6 @@ fi
|
|||||||
git pull origin master
|
git pull origin master
|
||||||
|
|
||||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||||
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||||
git push origin master 2>&1 | grep -v 'To https'
|
git push origin master 2>&1 | grep -v 'To https'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user