errorErrorByCodeGet
/error/errorByCode
Usage and SDK Samples
curl -X GET \
-H "Authorization: Bearer [[accessToken]]" \
-H "Accept: application/json" \
"http://localhost/error/errorByCode?code=code_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ErrorServiceImplApi;
import java.io.File;
import java.util.*;
public class ErrorServiceImplApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure Bearer (JWT) access token for authorization: SecurityScheme
HttpBearerAuth SecurityScheme = (HttpBearerAuth) defaultClient.getAuthentication("SecurityScheme");
SecurityScheme.setBearerToken("BEARER TOKEN");
// Create an instance of the API class
ErrorServiceImplApi apiInstance = new ErrorServiceImplApi();
String code = code_example; // String |
try {
PayloadDtoErrorDto result = apiInstance.errorErrorByCodeGet(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ErrorServiceImplApi#errorErrorByCodeGet");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String code = new String(); // String |
try {
final result = await api_instance.errorErrorByCodeGet(code);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->errorErrorByCodeGet: $e\n');
}
import org.openapitools.client.api.ErrorServiceImplApi;
public class ErrorServiceImplApiExample {
public static void main(String[] args) {
ErrorServiceImplApi apiInstance = new ErrorServiceImplApi();
String code = code_example; // String |
try {
PayloadDtoErrorDto result = apiInstance.errorErrorByCodeGet(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ErrorServiceImplApi#errorErrorByCodeGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure Bearer (JWT) access token for authorization: SecurityScheme
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Create an instance of the API class
ErrorServiceImplApi *apiInstance = [[ErrorServiceImplApi alloc] init];
String *code = code_example; // (optional) (default to null)
[apiInstance errorErrorByCodeGetWith:code
completionHandler: ^(PayloadDtoErrorDto output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ArComSystemStarposapiQuarkusApi = require('ar_com_system_starposapi_quarkus_api');
var defaultClient = ArComSystemStarposapiQuarkusApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: SecurityScheme
var SecurityScheme = defaultClient.authentications['SecurityScheme'];
SecurityScheme.accessToken = "YOUR ACCESS TOKEN";
// Create an instance of the API class
var api = new ArComSystemStarposapiQuarkusApi.ErrorServiceImplApi()
var opts = {
'code': code_example // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.errorErrorByCodeGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class errorErrorByCodeGetExample
{
public void main()
{
// Configure Bearer (JWT) access token for authorization: SecurityScheme
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Create an instance of the API class
var apiInstance = new ErrorServiceImplApi();
var code = code_example; // String | (optional) (default to null)
try {
PayloadDtoErrorDto result = apiInstance.errorErrorByCodeGet(code);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ErrorServiceImplApi.errorErrorByCodeGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) access token for authorization: SecurityScheme
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ErrorServiceImplApi();
$code = code_example; // String |
try {
$result = $api_instance->errorErrorByCodeGet($code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ErrorServiceImplApi->errorErrorByCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ErrorServiceImplApi;
# Configure Bearer (JWT) access token for authorization: SecurityScheme
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ErrorServiceImplApi->new();
my $code = code_example; # String |
eval {
my $result = $api_instance->errorErrorByCodeGet(code => $code);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ErrorServiceImplApi->errorErrorByCodeGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure Bearer (JWT) access token for authorization: SecurityScheme
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Create an instance of the API class
api_instance = openapi_client.ErrorServiceImplApi()
code = code_example # String | (optional) (default to null)
try:
api_response = api_instance.error_error_by_code_get(code=code)
pprint(api_response)
except ApiException as e:
print("Exception when calling ErrorServiceImplApi->errorErrorByCodeGet: %s\n" % e)
extern crate ErrorServiceImplApi;
pub fn main() {
let code = code_example; // String
let mut context = ErrorServiceImplApi::Context::default();
let result = client.errorErrorByCodeGet(code, &context).wait();
println!("{:?}", result);
}
Scopes
| error/errorByCode | Authentication |
Parameters
| Name | Description |
|---|---|
| code |
String
|