AS Server - API - ReportService

Default

reportServiceGet

ReportService_Get


/ReportService/

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/ReportService/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            Object result = apiInstance.reportServiceGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#reportServiceGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.reportServiceGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->reportServiceGet: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            Object result = apiInstance.reportServiceGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#reportServiceGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

// ReportService_Get
[apiInstance reportServiceGetWithCompletionHandler: 
              ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiReportService = require('as_server_api_report_service');

// Create an instance of the API class
var api = new AsServerApiReportService.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reportServiceGet(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // ReportService_Get
                Object result = apiInstance.reportServiceGet();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.reportServiceGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    # ReportService_Get
    api_response = api_instance.report_service_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->reportServiceGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.reportServiceGet(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


reportServiceGetByID

ReportService_GetByID


/ReportService/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/ReportService/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.reportServiceGetByID(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#reportServiceGetByID");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.

try {
    final result = await api_instance.reportServiceGetByID(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->reportServiceGetByID: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.reportServiceGetByID(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#reportServiceGetByID");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)

// ReportService_GetByID
[apiInstance reportServiceGetByIDWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiReportService = require('as_server_api_report_service');

// Create an instance of the API class
var api = new AsServerApiReportService.DefaultApi()
var id = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)

            try {
                // ReportService_GetByID
                Object result = apiInstance.reportServiceGetByID(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.reportServiceGetByID: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.

try {
    $result = $api_instance->reportServiceGetByID($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportServiceGetByID: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)

try:
    # ReportService_GetByID
    api_response = api_instance.report_service_get_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->reportServiceGetByID: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.reportServiceGetByID(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required

Responses


reportServicePost

ReportService_Post


/ReportService/Post

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/ReportService/Post" \
 -d '{
  "IconUrl" : "IconUrl",
  "Type" : "Type",
  "Description" : "Description",
  "Version" : "Version",
  "IsActive" : true,
  "Instructions" : [ {
    "KeyName" : "KeyName",
    "ValueOptions" : [ "ValueOptions", "ValueOptions" ],
    "Description" : "Description",
    "FriendlyName" : "FriendlyName",
    "ValueType" : 6,
    "IsTriggerReconfigure" : true,
    "Value" : "Value",
    "IsReadOnly" : true
  }, {
    "KeyName" : "KeyName",
    "ValueOptions" : [ "ValueOptions", "ValueOptions" ],
    "Description" : "Description",
    "FriendlyName" : "FriendlyName",
    "ValueType" : 6,
    "IsTriggerReconfigure" : true,
    "Value" : "Value",
    "IsReadOnly" : true
  } ],
  "ID" : 0,
  "BaseURL" : "BaseURL",
  "Name" : "Name"
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<ReportServiceT>
  <ID>123</ID>
  <Type>aeiou</Type>
  <Version>aeiou</Version>
  <Name>aeiou</Name>
  <Description>aeiou</Description>
  <IsActive>true</IsActive>
  <null>
    <KeyName>aeiou</KeyName>
    <FriendlyName>aeiou</FriendlyName>
    <Description>aeiou</Description>
    <Value>aeiou</Value>
    <ValueType>123</ValueType>
    <ValueOptions>aeiou</ValueOptions>
    <IsReadOnly>true</IsReadOnly>
    <IsTriggerReconfigure>true</IsTriggerReconfigure>
  </null>
  <IconUrl>aeiou</IconUrl>
  <BaseURL>aeiou</BaseURL>
</ReportServiceT>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        ReportServiceT reportServiceT = {"ID":0,"Type":"string","Version":"string","Name":"string","Description":"string","IsActive":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"IconUrl":"string","BaseURL":"string"}; // ReportServiceT | 

        try {
            Object result = apiInstance.reportServicePost(reportServiceT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#reportServicePost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ReportServiceT reportServiceT = new ReportServiceT(); // ReportServiceT | 

try {
    final result = await api_instance.reportServicePost(reportServiceT);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->reportServicePost: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ReportServiceT reportServiceT = {"ID":0,"Type":"string","Version":"string","Name":"string","Description":"string","IsActive":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"IconUrl":"string","BaseURL":"string"}; // ReportServiceT | 

        try {
            Object result = apiInstance.reportServicePost(reportServiceT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#reportServicePost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ReportServiceT *reportServiceT = {"ID":0,"Type":"string","Version":"string","Name":"string","Description":"string","IsActive":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"IconUrl":"string","BaseURL":"string"}; //  (optional)

// ReportService_Post
[apiInstance reportServicePostWith:reportServiceT
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiReportService = require('as_server_api_report_service');

// Create an instance of the API class
var api = new AsServerApiReportService.DefaultApi()
var opts = {
  'reportServiceT': {"ID":0,"Type":"string","Version":"string","Name":"string","Description":"string","IsActive":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"IconUrl":"string","BaseURL":"string"} // {ReportServiceT} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var reportServiceT = new ReportServiceT(); // ReportServiceT |  (optional) 

            try {
                // ReportService_Post
                Object result = apiInstance.reportServicePost(reportServiceT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.reportServicePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$reportServiceT = {"ID":0,"Type":"string","Version":"string","Name":"string","Description":"string","IsActive":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"IconUrl":"string","BaseURL":"string"}; // ReportServiceT | 

try {
    $result = $api_instance->reportServicePost($reportServiceT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->reportServicePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $reportServiceT = WWW::OPenAPIClient::Object::ReportServiceT->new(); # ReportServiceT | 

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
reportServiceT = {"ID":0,"Type":"string","Version":"string","Name":"string","Description":"string","IsActive":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"IconUrl":"string","BaseURL":"string"} # ReportServiceT |  (optional)

try:
    # ReportService_Post
    api_response = api_instance.report_service_post(reportServiceT=reportServiceT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->reportServicePost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let reportServiceT = {"ID":0,"Type":"string","Version":"string","Name":"string","Description":"string","IsActive":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"IconUrl":"string","BaseURL":"string"}; // ReportServiceT

    let mut context = DefaultApi::Context::default();
    let result = client.reportServicePost(reportServiceT, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
reportServiceT

Responses