mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-11-20 10:33:43 +00:00
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
#import <Foundation/Foundation.h>
|
|
{{#imports}}#import "{{import}}.h"
|
|
{{/imports}}
|
|
#import "SWGObject.h"
|
|
#import "SWGApiClient.h"
|
|
{{newline}}
|
|
|
|
{{#operations}}
|
|
@interface {{classname}}: NSObject
|
|
|
|
@property(nonatomic, assign)SWGApiClient *apiClient;
|
|
|
|
-(instancetype) initWithApiClient:(SWGApiClient *)apiClient;
|
|
-(void) addHeader:(NSString*)value forKey:(NSString*)key;
|
|
-(unsigned long) requestQueueSize;
|
|
+({{classname}}*) apiWithHeader:(NSString*)headerValue key:(NSString*)key;
|
|
+(void) setBasePath:(NSString*)basePath;
|
|
+(NSString*) getBasePath;
|
|
{{#operation}}
|
|
/**
|
|
|
|
{{{summary}}}
|
|
{{#notes}}{{{notes}}}{{/notes}}
|
|
|
|
{{#allParams}}@param {{paramName}} {{description}}
|
|
{{/allParams}}
|
|
|
|
return type: {{{returnType}}}
|
|
*/
|
|
-(NSNumber*) {{nickname}}WithCompletionBlock {{^allParams}}:{{/allParams}}{{#allParams}}{{#secondaryParam}} {{paramName}}{{/secondaryParam}}:({{{dataType}}}) {{paramName}} {{#hasMore}}
|
|
{{/hasMore}}{{/allParams}}
|
|
{{#returnBaseType}}{{#hasParams}}
|
|
completionHandler: {{/hasParams}}(void (^)({{{returnType}}} output, NSError* error))completionBlock;{{/returnBaseType}}
|
|
{{^returnBaseType}}{{#hasParams}}
|
|
completionHandler: {{/hasParams}}(void (^)(NSError* error))completionBlock;{{/returnBaseType}}
|
|
|
|
{{newline}}
|
|
{{/operation}}
|
|
|
|
{{/operations}}
|
|
@end
|