Sarpas API

SarpasController

analyzeSolicitation

Como usuário, eu gostaria de analisar uma solicitação


/sarpas/bypass/analyze/{solicitationProtocol}

Usage and SDK Samples

curl -X GET\
"http://brutm.xmobots.com/api/brutm/sarpas/bypass/analyze/{solicitationProtocol}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String solicitationProtocol = solicitationProtocol_example; // String | 
        try {
            apiInstance.analyzeSolicitation(solicitationProtocol);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#analyzeSolicitation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String solicitationProtocol = solicitationProtocol_example; // String | 
        try {
            apiInstance.analyzeSolicitation(solicitationProtocol);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#analyzeSolicitation");
            e.printStackTrace();
        }
    }
}
String *solicitationProtocol = solicitationProtocol_example; // 

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

// Como usuário, eu gostaria de analisar uma solicitação
[apiInstance analyzeSolicitationWith:solicitationProtocol
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var solicitationProtocol = solicitationProtocol_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.analyzeSolicitation(solicitationProtocol, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class analyzeSolicitationExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var solicitationProtocol = solicitationProtocol_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de analisar uma solicitação
                apiInstance.analyzeSolicitation(solicitationProtocol);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.analyzeSolicitation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$solicitationProtocol = solicitationProtocol_example; // String | 

try {
    $api_instance->analyzeSolicitation($solicitationProtocol);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->analyzeSolicitation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $solicitationProtocol = solicitationProtocol_example; # String | 

eval { 
    $api_instance->analyzeSolicitation(solicitationProtocol => $solicitationProtocol);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->analyzeSolicitation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
solicitationProtocol = solicitationProtocol_example # String | 

try: 
    # Como usuário, eu gostaria de analisar uma solicitação
    api_instance.analyze_solicitation(solicitationProtocol)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->analyzeSolicitation: %s\n" % e)

Parameters

Path parameters
Name Description
solicitationProtocol*
String
Required

Responses

Status: 200 - OK


approveToken

Como usuário, eu gostaria de aprovar um provedor


/sarpas/user-keys/{token}

Usage and SDK Samples

curl -X GET\
"http://brutm.xmobots.com/api/brutm/sarpas/user-keys/{token}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String token = token_example; // String | 
        try {
            apiInstance.approveToken(token);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#approveToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String token = token_example; // String | 
        try {
            apiInstance.approveToken(token);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#approveToken");
            e.printStackTrace();
        }
    }
}
String *token = token_example; // 

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

// Como usuário, eu gostaria de aprovar um provedor
[apiInstance approveTokenWith:token
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var token = token_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.approveToken(token, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class approveTokenExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var token = token_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de aprovar um provedor
                apiInstance.approveToken(token);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.approveToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$token = token_example; // String | 

try {
    $api_instance->approveToken($token);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->approveToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $token = token_example; # String | 

eval { 
    $api_instance->approveToken(token => $token);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->approveToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
token = token_example # String | 

try: 
    # Como usuário, eu gostaria de aprovar um provedor
    api_instance.approve_token(token)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->approveToken: %s\n" % e)

Parameters

Path parameters
Name Description
token*
String
Required

Responses

Status: 200 - OK


assignProvider

Como usuário, eu gostaria de assignar meu token com um provedor


/sarpas/providers/user_token/{token}/assign

Usage and SDK Samples

curl -X PUT\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://brutm.xmobots.com/api/brutm/sarpas/providers/user_token/{token}/assign"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        AssignProviderData body = ; // AssignProviderData | 
        String token = token_example; // String | 
        try {
            array[Object] result = apiInstance.assignProvider(body, token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#assignProvider");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        AssignProviderData body = ; // AssignProviderData | 
        String token = token_example; // String | 
        try {
            array[Object] result = apiInstance.assignProvider(body, token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#assignProvider");
            e.printStackTrace();
        }
    }
}
AssignProviderData *body = ; // 
String *token = token_example; // 

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

// Como usuário, eu gostaria de assignar meu token com um provedor
[apiInstance assignProviderWith:body
    token:token
              completionHandler: ^(array[Object] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var body = ; // {{AssignProviderData}} 
var token = token_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignProvider(bodytoken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class assignProviderExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var body = new AssignProviderData(); // AssignProviderData | 
            var token = token_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de assignar meu token com um provedor
                array[Object] result = apiInstance.assignProvider(body, token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.assignProvider: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$body = ; // AssignProviderData | 
$token = token_example; // String | 

try {
    $result = $api_instance->assignProvider($body, $token);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->assignProvider: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $body = WWW::SwaggerClient::Object::AssignProviderData->new(); # AssignProviderData | 
my $token = token_example; # String | 

eval { 
    my $result = $api_instance->assignProvider(body => $body, token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->assignProvider: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
body =  # AssignProviderData | 
token = token_example # String | 

try: 
    # Como usuário, eu gostaria de assignar meu token com um provedor
    api_response = api_instance.assign_provider(body, token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->assignProvider: %s\n" % e)

Parameters

Path parameters
Name Description
token*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


categoryzeSolicitation

Como usuário, eu gostaria de categorizar uma solicitação


/sarpas/bypass/categorize/{solicitationProtocol}

Usage and SDK Samples

curl -X GET\
"http://brutm.xmobots.com/api/brutm/sarpas/bypass/categorize/{solicitationProtocol}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String solicitationProtocol = solicitationProtocol_example; // String | 
        try {
            apiInstance.categoryzeSolicitation(solicitationProtocol);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#categoryzeSolicitation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String solicitationProtocol = solicitationProtocol_example; // String | 
        try {
            apiInstance.categoryzeSolicitation(solicitationProtocol);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#categoryzeSolicitation");
            e.printStackTrace();
        }
    }
}
String *solicitationProtocol = solicitationProtocol_example; // 

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

// Como usuário, eu gostaria de categorizar uma solicitação
[apiInstance categoryzeSolicitationWith:solicitationProtocol
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var solicitationProtocol = solicitationProtocol_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.categoryzeSolicitation(solicitationProtocol, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class categoryzeSolicitationExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var solicitationProtocol = solicitationProtocol_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de categorizar uma solicitação
                apiInstance.categoryzeSolicitation(solicitationProtocol);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.categoryzeSolicitation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$solicitationProtocol = solicitationProtocol_example; // String | 

try {
    $api_instance->categoryzeSolicitation($solicitationProtocol);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->categoryzeSolicitation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $solicitationProtocol = solicitationProtocol_example; # String | 

eval { 
    $api_instance->categoryzeSolicitation(solicitationProtocol => $solicitationProtocol);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->categoryzeSolicitation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
solicitationProtocol = solicitationProtocol_example # String | 

try: 
    # Como usuário, eu gostaria de categorizar uma solicitação
    api_instance.categoryze_solicitation(solicitationProtocol)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->categoryzeSolicitation: %s\n" % e)

Parameters

Path parameters
Name Description
solicitationProtocol*
String
Required

Responses

Status: 200 - OK


createAsaPolygon

Como usuário, eu gostaria de criar uma área no ASA


/sarpas/polygon/{poligonId}/{userUuid}

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://brutm.xmobots.com/api/brutm/sarpas/polygon/{poligonId}/{userUuid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        AsaIdDTO body = ; // AsaIdDTO | 
        String poligonId = poligonId_example; // String | 
        String userUuid = userUuid_example; // String | 
        try {
            AsaIdResponse result = apiInstance.createAsaPolygon(body, poligonId, userUuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#createAsaPolygon");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        AsaIdDTO body = ; // AsaIdDTO | 
        String poligonId = poligonId_example; // String | 
        String userUuid = userUuid_example; // String | 
        try {
            AsaIdResponse result = apiInstance.createAsaPolygon(body, poligonId, userUuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#createAsaPolygon");
            e.printStackTrace();
        }
    }
}
AsaIdDTO *body = ; // 
String *poligonId = poligonId_example; // 
String *userUuid = userUuid_example; // 

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

// Como usuário, eu gostaria de criar uma área no ASA
[apiInstance createAsaPolygonWith:body
    poligonId:poligonId
    userUuid:userUuid
              completionHandler: ^(AsaIdResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var body = ; // {{AsaIdDTO}} 
var poligonId = poligonId_example; // {{String}} 
var userUuid = userUuid_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createAsaPolygon(bodypoligonIduserUuid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createAsaPolygonExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var body = new AsaIdDTO(); // AsaIdDTO | 
            var poligonId = poligonId_example;  // String | 
            var userUuid = userUuid_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de criar uma área no ASA
                AsaIdResponse result = apiInstance.createAsaPolygon(body, poligonId, userUuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.createAsaPolygon: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$body = ; // AsaIdDTO | 
$poligonId = poligonId_example; // String | 
$userUuid = userUuid_example; // String | 

try {
    $result = $api_instance->createAsaPolygon($body, $poligonId, $userUuid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->createAsaPolygon: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $body = WWW::SwaggerClient::Object::AsaIdDTO->new(); # AsaIdDTO | 
my $poligonId = poligonId_example; # String | 
my $userUuid = userUuid_example; # String | 

eval { 
    my $result = $api_instance->createAsaPolygon(body => $body, poligonId => $poligonId, userUuid => $userUuid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->createAsaPolygon: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
body =  # AsaIdDTO | 
poligonId = poligonId_example # String | 
userUuid = userUuid_example # String | 

try: 
    # Como usuário, eu gostaria de criar uma área no ASA
    api_response = api_instance.create_asa_polygon(body, poligonId, userUuid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->createAsaPolygon: %s\n" % e)

Parameters

Path parameters
Name Description
poligonId*
String
Required
userUuid*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


registerToken

Como usuário, eu gostaria de registrar meu token para um provedor


/sarpas/providers/auth

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://brutm.xmobots.com/api/brutm/sarpas/providers/auth"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        AccessTokenData body = ; // AccessTokenData | 
        try {
            SarpasAccessTokenResponse result = apiInstance.registerToken(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#registerToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        AccessTokenData body = ; // AccessTokenData | 
        try {
            SarpasAccessTokenResponse result = apiInstance.registerToken(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#registerToken");
            e.printStackTrace();
        }
    }
}
AccessTokenData *body = ; // 

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

// Como usuário, eu gostaria de registrar meu token para um provedor
[apiInstance registerTokenWith:body
              completionHandler: ^(SarpasAccessTokenResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var body = ; // {{AccessTokenData}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registerToken(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class registerTokenExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var body = new AccessTokenData(); // AccessTokenData | 

            try
            {
                // Como usuário, eu gostaria de registrar meu token para um provedor
                SarpasAccessTokenResponse result = apiInstance.registerToken(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.registerToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$body = ; // AccessTokenData | 

try {
    $result = $api_instance->registerToken($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->registerToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $body = WWW::SwaggerClient::Object::AccessTokenData->new(); # AccessTokenData | 

eval { 
    my $result = $api_instance->registerToken(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->registerToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
body =  # AccessTokenData | 

try: 
    # Como usuário, eu gostaria de registrar meu token para um provedor
    api_response = api_instance.register_token(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->registerToken: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


resultSolicitation

Como usuário, eu gostaria de obter o resultado da minha análise


/sarpas/polygon/{solicitationProtocol}/result

Usage and SDK Samples

curl -X GET\
"http://brutm.xmobots.com/api/brutm/sarpas/polygon/{solicitationProtocol}/result"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String solicitationProtocol = solicitationProtocol_example; // String | 
        try {
            apiInstance.resultSolicitation(solicitationProtocol);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#resultSolicitation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String solicitationProtocol = solicitationProtocol_example; // String | 
        try {
            apiInstance.resultSolicitation(solicitationProtocol);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#resultSolicitation");
            e.printStackTrace();
        }
    }
}
String *solicitationProtocol = solicitationProtocol_example; // 

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

// Como usuário, eu gostaria de obter o resultado da minha análise
[apiInstance resultSolicitationWith:solicitationProtocol
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var solicitationProtocol = solicitationProtocol_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.resultSolicitation(solicitationProtocol, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class resultSolicitationExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var solicitationProtocol = solicitationProtocol_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de obter o resultado da minha análise
                apiInstance.resultSolicitation(solicitationProtocol);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.resultSolicitation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$solicitationProtocol = solicitationProtocol_example; // String | 

try {
    $api_instance->resultSolicitation($solicitationProtocol);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->resultSolicitation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $solicitationProtocol = solicitationProtocol_example; # String | 

eval { 
    $api_instance->resultSolicitation(solicitationProtocol => $solicitationProtocol);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->resultSolicitation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
solicitationProtocol = solicitationProtocol_example # String | 

try: 
    # Como usuário, eu gostaria de obter o resultado da minha análise
    api_instance.result_solicitation(solicitationProtocol)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->resultSolicitation: %s\n" % e)

Parameters

Path parameters
Name Description
solicitationProtocol*
String
Required

Responses

Status: 200 - OK


retrieveFlightSolicitationList

Como usuário, eu gostaria de buscar a minha lista de solicitações de voo


/sarpas/flights

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://brutm.xmobots.com/api/brutm/sarpas/flights"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String authorization = authorization_example; // String | 
        try {
            FlightDTO result = apiInstance.retrieveFlightSolicitationList(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#retrieveFlightSolicitationList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String authorization = authorization_example; // String | 
        try {
            FlightDTO result = apiInstance.retrieveFlightSolicitationList(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#retrieveFlightSolicitationList");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // 

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

// Como usuário, eu gostaria de buscar a minha lista de solicitações de voo
[apiInstance retrieveFlightSolicitationListWith:authorization
              completionHandler: ^(FlightDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var authorization = authorization_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.retrieveFlightSolicitationList(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class retrieveFlightSolicitationListExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var authorization = authorization_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de buscar a minha lista de solicitações de voo
                FlightDTO result = apiInstance.retrieveFlightSolicitationList(authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.retrieveFlightSolicitationList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$authorization = authorization_example; // String | 

try {
    $result = $api_instance->retrieveFlightSolicitationList($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->retrieveFlightSolicitationList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $authorization = authorization_example; # String | 

eval { 
    my $result = $api_instance->retrieveFlightSolicitationList(authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->retrieveFlightSolicitationList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
authorization = authorization_example # String | 

try: 
    # Como usuário, eu gostaria de buscar a minha lista de solicitações de voo
    api_response = api_instance.retrieve_flight_solicitation_list(authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->retrieveFlightSolicitationList: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Required

Responses

Status: 200 - OK


retrieveMyAircrafts

Como usuário, eu gostaria de buscar as minhas aeronaves


/sarpas/user-aircraft

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://brutm.xmobots.com/api/brutm/sarpas/user-aircraft"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String authorization = authorization_example; // String | 
        try {
            AircraftResponse result = apiInstance.retrieveMyAircrafts(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#retrieveMyAircrafts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String authorization = authorization_example; // String | 
        try {
            AircraftResponse result = apiInstance.retrieveMyAircrafts(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#retrieveMyAircrafts");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // 

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

// Como usuário, eu gostaria de buscar as minhas aeronaves
[apiInstance retrieveMyAircraftsWith:authorization
              completionHandler: ^(AircraftResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var authorization = authorization_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.retrieveMyAircrafts(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class retrieveMyAircraftsExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var authorization = authorization_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de buscar as minhas aeronaves
                AircraftResponse result = apiInstance.retrieveMyAircrafts(authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.retrieveMyAircrafts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$authorization = authorization_example; // String | 

try {
    $result = $api_instance->retrieveMyAircrafts($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->retrieveMyAircrafts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $authorization = authorization_example; # String | 

eval { 
    my $result = $api_instance->retrieveMyAircrafts(authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->retrieveMyAircrafts: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
authorization = authorization_example # String | 

try: 
    # Como usuário, eu gostaria de buscar as minhas aeronaves
    api_response = api_instance.retrieve_my_aircrafts(authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->retrieveMyAircrafts: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Required

Responses

Status: 200 - OK


retrieveMySharedAircrafts

Como usuário, eu gostaria de buscar as aeronaves compartilhadas comigo


/sarpas/shared-aircraft-user

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://brutm.xmobots.com/api/brutm/sarpas/shared-aircraft-user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String authorization = authorization_example; // String | 
        try {
            AircraftResponse result = apiInstance.retrieveMySharedAircrafts(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#retrieveMySharedAircrafts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        String authorization = authorization_example; // String | 
        try {
            AircraftResponse result = apiInstance.retrieveMySharedAircrafts(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#retrieveMySharedAircrafts");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // 

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

// Como usuário, eu gostaria de buscar as aeronaves compartilhadas comigo
[apiInstance retrieveMySharedAircraftsWith:authorization
              completionHandler: ^(AircraftResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var authorization = authorization_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.retrieveMySharedAircrafts(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class retrieveMySharedAircraftsExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var authorization = authorization_example;  // String | 

            try
            {
                // Como usuário, eu gostaria de buscar as aeronaves compartilhadas comigo
                AircraftResponse result = apiInstance.retrieveMySharedAircrafts(authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.retrieveMySharedAircrafts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$authorization = authorization_example; // String | 

try {
    $result = $api_instance->retrieveMySharedAircrafts($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->retrieveMySharedAircrafts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $authorization = authorization_example; # String | 

eval { 
    my $result = $api_instance->retrieveMySharedAircrafts(authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->retrieveMySharedAircrafts: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
authorization = authorization_example # String | 

try: 
    # Como usuário, eu gostaria de buscar as aeronaves compartilhadas comigo
    api_response = api_instance.retrieve_my_shared_aircrafts(authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->retrieveMySharedAircrafts: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Required

Responses

Status: 200 - OK


submitSolicitation

Como usuário, eu gostaria de criar uma solicitação de voo


/sarpas/solicitation

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://brutm.xmobots.com/api/brutm/sarpas/solicitation"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SarpasControllerApi;

import java.io.File;
import java.util.*;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        SolicitationDataDTO body = ; // SolicitationDataDTO | 
        try {
            SolicitationDataResponseDTO result = apiInstance.submitSolicitation(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#submitSolicitation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SarpasControllerApi;

public class SarpasControllerApiExample {

    public static void main(String[] args) {
        SarpasControllerApi apiInstance = new SarpasControllerApi();
        SolicitationDataDTO body = ; // SolicitationDataDTO | 
        try {
            SolicitationDataResponseDTO result = apiInstance.submitSolicitation(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SarpasControllerApi#submitSolicitation");
            e.printStackTrace();
        }
    }
}
SolicitationDataDTO *body = ; // 

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

// Como usuário, eu gostaria de criar uma solicitação de voo
[apiInstance submitSolicitationWith:body
              completionHandler: ^(SolicitationDataResponseDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SarpasApi = require('sarpas_api');

var api = new SarpasApi.SarpasControllerApi()
var body = ; // {{SolicitationDataDTO}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.submitSolicitation(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class submitSolicitationExample
    {
        public void main()
        {

            var apiInstance = new SarpasControllerApi();
            var body = new SolicitationDataDTO(); // SolicitationDataDTO | 

            try
            {
                // Como usuário, eu gostaria de criar uma solicitação de voo
                SolicitationDataResponseDTO result = apiInstance.submitSolicitation(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SarpasControllerApi.submitSolicitation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSarpasControllerApi();
$body = ; // SolicitationDataDTO | 

try {
    $result = $api_instance->submitSolicitation($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SarpasControllerApi->submitSolicitation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SarpasControllerApi;

my $api_instance = WWW::SwaggerClient::SarpasControllerApi->new();
my $body = WWW::SwaggerClient::Object::SolicitationDataDTO->new(); # SolicitationDataDTO | 

eval { 
    my $result = $api_instance->submitSolicitation(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SarpasControllerApi->submitSolicitation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SarpasControllerApi()
body =  # SolicitationDataDTO | 

try: 
    # Como usuário, eu gostaria de criar uma solicitação de voo
    api_response = api_instance.submit_solicitation(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SarpasControllerApi->submitSolicitation: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK