Skip to content

Latest commit

 

History

History
244 lines (165 loc) · 8.25 KB

ObjectCorsApi.md

File metadata and controls

244 lines (165 loc) · 8.25 KB

ObjectCorsApi

All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest

Method HTTP request Description
corsCreateObjectV1 POST /1/object/cors Create a new Cors
corsDeleteObjectV1 DELETE /1/object/cors/{pkiCorsID} Delete an existing Cors
corsEditObjectV1 PUT /1/object/cors/{pkiCorsID} Edit an existing Cors
corsGetObjectV2 GET /2/object/cors/{pkiCorsID} Retrieve an existing Cors

corsCreateObjectV1

-(NSURLSessionTask*) corsCreateObjectV1WithCorsCreateObjectV1Request: (CorsCreateObjectV1Request*) corsCreateObjectV1Request
        completionHandler: (void (^)(CorsCreateObjectV1Response* output, NSError* error)) handler;

Create a new Cors

The endpoint allows to create one or many elements at once.

Example

DefaultConfiguration *apiConfig = [DefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


CorsCreateObjectV1Request* corsCreateObjectV1Request = [[CorsCreateObjectV1Request alloc] init]; // 

ObjectCorsApi*apiInstance = [[ObjectCorsApi alloc] init];

// Create a new Cors
[apiInstance corsCreateObjectV1WithCorsCreateObjectV1Request:corsCreateObjectV1Request
          completionHandler: ^(CorsCreateObjectV1Response* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling ObjectCorsApi->corsCreateObjectV1: %@", error);
                        }
                    }];

Parameters

Name Type Description Notes
corsCreateObjectV1Request CorsCreateObjectV1Request*

Return type

CorsCreateObjectV1Response*

Authorization

Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

corsDeleteObjectV1

-(NSURLSessionTask*) corsDeleteObjectV1WithPkiCorsID: (NSNumber*) pkiCorsID
        completionHandler: (void (^)(CorsDeleteObjectV1Response* output, NSError* error)) handler;

Delete an existing Cors

Example

DefaultConfiguration *apiConfig = [DefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


NSNumber* pkiCorsID = @56; // The unique ID of the Cors

ObjectCorsApi*apiInstance = [[ObjectCorsApi alloc] init];

// Delete an existing Cors
[apiInstance corsDeleteObjectV1WithPkiCorsID:pkiCorsID
          completionHandler: ^(CorsDeleteObjectV1Response* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling ObjectCorsApi->corsDeleteObjectV1: %@", error);
                        }
                    }];

Parameters

Name Type Description Notes
pkiCorsID NSNumber* The unique ID of the Cors

Return type

CorsDeleteObjectV1Response*

Authorization

Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

corsEditObjectV1

-(NSURLSessionTask*) corsEditObjectV1WithPkiCorsID: (NSNumber*) pkiCorsID
    corsEditObjectV1Request: (CorsEditObjectV1Request*) corsEditObjectV1Request
        completionHandler: (void (^)(CorsEditObjectV1Response* output, NSError* error)) handler;

Edit an existing Cors

Example

DefaultConfiguration *apiConfig = [DefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


NSNumber* pkiCorsID = @56; // The unique ID of the Cors
CorsEditObjectV1Request* corsEditObjectV1Request = [[CorsEditObjectV1Request alloc] init]; // 

ObjectCorsApi*apiInstance = [[ObjectCorsApi alloc] init];

// Edit an existing Cors
[apiInstance corsEditObjectV1WithPkiCorsID:pkiCorsID
              corsEditObjectV1Request:corsEditObjectV1Request
          completionHandler: ^(CorsEditObjectV1Response* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling ObjectCorsApi->corsEditObjectV1: %@", error);
                        }
                    }];

Parameters

Name Type Description Notes
pkiCorsID NSNumber* The unique ID of the Cors
corsEditObjectV1Request CorsEditObjectV1Request*

Return type

CorsEditObjectV1Response*

Authorization

Authorization

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

corsGetObjectV2

-(NSURLSessionTask*) corsGetObjectV2WithPkiCorsID: (NSNumber*) pkiCorsID
        completionHandler: (void (^)(CorsGetObjectV2Response* output, NSError* error)) handler;

Retrieve an existing Cors

Example

DefaultConfiguration *apiConfig = [DefaultConfiguration sharedConfig];

// Configure API key authorization: (authentication scheme: Authorization)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


NSNumber* pkiCorsID = @56; // The unique ID of the Cors

ObjectCorsApi*apiInstance = [[ObjectCorsApi alloc] init];

// Retrieve an existing Cors
[apiInstance corsGetObjectV2WithPkiCorsID:pkiCorsID
          completionHandler: ^(CorsGetObjectV2Response* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling ObjectCorsApi->corsGetObjectV2: %@", error);
                        }
                    }];

Parameters

Name Type Description Notes
pkiCorsID NSNumber* The unique ID of the Cors

Return type

CorsGetObjectV2Response*

Authorization

Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]