Dames API [VIEW OPEN API]

Default

csoCodeCodeGet

Get CSO by CODE


/cso/code/{code}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/cso/code/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass CSO CODE.
        try {
            CSO result = apiInstance.csoCodeCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#csoCodeCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass CSO CODE.
        try {
            CSO result = apiInstance.csoCodeCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#csoCodeCodeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Pass CSO CODE.

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

[apiInstance csoCodeCodeGetWith:code
              completionHandler: ^(CSO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var code = code_example; // {{String}} Pass CSO CODE.

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

namespace Example
{
    public class csoCodeCodeGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Pass CSO CODE.

            try
            {
                CSO result = apiInstance.csoCodeCodeGet(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.csoCodeCodeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Pass CSO CODE.

try {
    $result = $api_instance->csoCodeCodeGet($code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->csoCodeCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Pass CSO CODE.

eval { 
    my $result = $api_instance->csoCodeCodeGet(code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->csoCodeCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Pass CSO CODE.

try: 
    api_response = api_instance.cso_code_code_get(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->csoCodeCodeGet: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Pass CSO CODE.
Required

Responses

Status: 200 - OK


csoIdGet

Get CSO by ID


/cso/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/cso/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass CSO ID.
        try {
            CSO result = apiInstance.csoIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#csoIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass CSO ID.
        try {
            CSO result = apiInstance.csoIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#csoIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass CSO ID.

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

[apiInstance csoIdGetWith:id
              completionHandler: ^(CSO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass CSO ID.

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

namespace Example
{
    public class csoIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass CSO ID.

            try
            {
                CSO result = apiInstance.csoIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.csoIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass CSO ID.

try {
    $result = $api_instance->csoIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->csoIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass CSO ID.

eval { 
    my $result = $api_instance->csoIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->csoIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass CSO ID.

try: 
    api_response = api_instance.cso_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->csoIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass CSO ID.
Required

Responses

Status: 200 - OK


csoListGet

List all CSO


/cso/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/cso/list?code=&name=&levelId=&psnuId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | CSO identity code
        String name = name_example; // String | CSO name
        String levelId = levelId_example; // String | Supported Level ID (All CSOs supported by level)
        String psnuId = psnuId_example; // String | PSNU ID. (All CSOs in PSNU)
        try {
            CSOLists result = apiInstance.csoListGet(code, name, levelId, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#csoListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | CSO identity code
        String name = name_example; // String | CSO name
        String levelId = levelId_example; // String | Supported Level ID (All CSOs supported by level)
        String psnuId = psnuId_example; // String | PSNU ID. (All CSOs in PSNU)
        try {
            CSOLists result = apiInstance.csoListGet(code, name, levelId, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#csoListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // CSO identity code (optional)
String *name = name_example; // CSO name (optional)
String *levelId = levelId_example; // Supported Level ID (All CSOs supported by level) (optional)
String *psnuId = psnuId_example; // PSNU ID. (All CSOs in PSNU) (optional)

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

[apiInstance csoListGetWith:code
    name:name
    levelId:levelId
    psnuId:psnuId
              completionHandler: ^(CSOLists output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'code': code_example, // {{String}} CSO identity code
  'name': name_example, // {{String}} CSO name
  'levelId': levelId_example, // {{String}} Supported Level ID (All CSOs supported by level)
  'psnuId': psnuId_example // {{String}} PSNU ID. (All CSOs in PSNU)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.csoListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class csoListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | CSO identity code (optional) 
            var name = name_example;  // String | CSO name (optional) 
            var levelId = levelId_example;  // String | Supported Level ID (All CSOs supported by level) (optional) 
            var psnuId = psnuId_example;  // String | PSNU ID. (All CSOs in PSNU) (optional) 

            try
            {
                CSOLists result = apiInstance.csoListGet(code, name, levelId, psnuId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.csoListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | CSO identity code
$name = name_example; // String | CSO name
$levelId = levelId_example; // String | Supported Level ID (All CSOs supported by level)
$psnuId = psnuId_example; // String | PSNU ID. (All CSOs in PSNU)

try {
    $result = $api_instance->csoListGet($code, $name, $levelId, $psnuId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->csoListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | CSO identity code
my $name = name_example; # String | CSO name
my $levelId = levelId_example; # String | Supported Level ID (All CSOs supported by level)
my $psnuId = psnuId_example; # String | PSNU ID. (All CSOs in PSNU)

eval { 
    my $result = $api_instance->csoListGet(code => $code, name => $name, levelId => $levelId, psnuId => $psnuId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->csoListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | CSO identity code (optional)
name = name_example # String | CSO name (optional)
levelId = levelId_example # String | Supported Level ID (All CSOs supported by level) (optional)
psnuId = psnuId_example # String | PSNU ID. (All CSOs in PSNU) (optional)

try: 
    api_response = api_instance.cso_list_get(code=code, name=name, levelId=levelId, psnuId=psnuId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->csoListGet: %s\n" % e)

Parameters

Query parameters
Name Description
code
String
CSO identity code
name
String
CSO name
levelId
String
Supported Level ID (All CSOs supported by level)
psnuId
String
PSNU ID. (All CSOs in PSNU)

Responses

Status: 200 - OK


encounterBulkPost

Create Encounter in bulk


/encounter/bulk

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/encounter/bulk"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        array[EncounterPostObject] body = ; // array[EncounterPostObject] | 
        try {
            EncounterList result = apiInstance.encounterBulkPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterBulkPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        array[EncounterPostObject] body = ; // array[EncounterPostObject] | 
        try {
            EncounterList result = apiInstance.encounterBulkPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterBulkPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
array[EncounterPostObject] *body = ; //  (optional)

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

[apiInstance encounterBulkPostWith:body
              completionHandler: ^(EncounterList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'body':  // {{array[EncounterPostObject]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.encounterBulkPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class encounterBulkPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var body = new array[EncounterPostObject](); // array[EncounterPostObject] |  (optional) 

            try
            {
                EncounterList result = apiInstance.encounterBulkPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.encounterBulkPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // array[EncounterPostObject] | 

try {
    $result = $api_instance->encounterBulkPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->encounterBulkPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = [WWW::SwaggerClient::Object::array[EncounterPostObject]->new()]; # array[EncounterPostObject] | 

eval { 
    my $result = $api_instance->encounterBulkPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->encounterBulkPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # array[EncounterPostObject] |  (optional)

try: 
    api_response = api_instance.encounter_bulk_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->encounterBulkPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 - CREATED


encounterCountGet

Count submitted encounters by login user


/encounter/count

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/text"\
"http://localhost:8080/api/v1/dames/encounter/count?dateFrom=&dateTo=&enrollmentCode=&wardId=&periodId=&stageId=&serviceId=&csoId=&partnerId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Encounters of Date from
        String dateTo = dateTo_example; // String | Encounters of Date to
        String enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
        Integer wardId = 56; // Integer | Encounters of Ward
        Integer periodId = 56; // Integer | Encounters of Period
        Integer stageId = 56; // Integer | Encounters within service stage
        Integer serviceId = 56; // Integer | Encounters within service
        Integer csoId = 56; // Integer | CSO id, CSO who register it
        Integer partnerId = 56; // Integer | Partner id, All encounters under partner
        try {
            'Integer' result = apiInstance.encounterCountGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterCountGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Encounters of Date from
        String dateTo = dateTo_example; // String | Encounters of Date to
        String enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
        Integer wardId = 56; // Integer | Encounters of Ward
        Integer periodId = 56; // Integer | Encounters of Period
        Integer stageId = 56; // Integer | Encounters within service stage
        Integer serviceId = 56; // Integer | Encounters within service
        Integer csoId = 56; // Integer | CSO id, CSO who register it
        Integer partnerId = 56; // Integer | Partner id, All encounters under partner
        try {
            'Integer' result = apiInstance.encounterCountGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterCountGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Encounters of Date from (optional)
String *dateTo = dateTo_example; // Encounters of Date to (optional)
String *enrollmentCode = enrollmentCode_example; // Encounters of Enrollment code (optional)
Integer *wardId = 56; // Encounters of Ward (optional)
Integer *periodId = 56; // Encounters of Period (optional)
Integer *stageId = 56; // Encounters within service stage (optional)
Integer *serviceId = 56; // Encounters within service (optional)
Integer *csoId = 56; // CSO id, CSO who register it (optional)
Integer *partnerId = 56; // Partner id, All encounters under partner (optional)

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

[apiInstance encounterCountGetWith:dateFrom
    dateTo:dateTo
    enrollmentCode:enrollmentCode
    wardId:wardId
    periodId:periodId
    stageId:stageId
    serviceId:serviceId
    csoId:csoId
    partnerId:partnerId
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Encounters of Date from
  'dateTo': dateTo_example, // {{String}} Encounters of Date to
  'enrollmentCode': enrollmentCode_example, // {{String}} Encounters of Enrollment code
  'wardId': 56, // {{Integer}} Encounters of Ward
  'periodId': 56, // {{Integer}} Encounters of Period
  'stageId': 56, // {{Integer}} Encounters within service stage
  'serviceId': 56, // {{Integer}} Encounters within service
  'csoId': 56, // {{Integer}} CSO id, CSO who register it
  'partnerId': 56 // {{Integer}} Partner id, All encounters under partner
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.encounterCountGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class encounterCountGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Encounters of Date from (optional) 
            var dateTo = dateTo_example;  // String | Encounters of Date to (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Encounters of Enrollment code (optional) 
            var wardId = 56;  // Integer | Encounters of Ward (optional) 
            var periodId = 56;  // Integer | Encounters of Period (optional) 
            var stageId = 56;  // Integer | Encounters within service stage (optional) 
            var serviceId = 56;  // Integer | Encounters within service (optional) 
            var csoId = 56;  // Integer | CSO id, CSO who register it (optional) 
            var partnerId = 56;  // Integer | Partner id, All encounters under partner (optional) 

            try
            {
                'Integer' result = apiInstance.encounterCountGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.encounterCountGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Encounters of Date from
$dateTo = dateTo_example; // String | Encounters of Date to
$enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
$wardId = 56; // Integer | Encounters of Ward
$periodId = 56; // Integer | Encounters of Period
$stageId = 56; // Integer | Encounters within service stage
$serviceId = 56; // Integer | Encounters within service
$csoId = 56; // Integer | CSO id, CSO who register it
$partnerId = 56; // Integer | Partner id, All encounters under partner

try {
    $result = $api_instance->encounterCountGet($dateFrom, $dateTo, $enrollmentCode, $wardId, $periodId, $stageId, $serviceId, $csoId, $partnerId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->encounterCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Encounters of Date from
my $dateTo = dateTo_example; # String | Encounters of Date to
my $enrollmentCode = enrollmentCode_example; # String | Encounters of Enrollment code
my $wardId = 56; # Integer | Encounters of Ward
my $periodId = 56; # Integer | Encounters of Period
my $stageId = 56; # Integer | Encounters within service stage
my $serviceId = 56; # Integer | Encounters within service
my $csoId = 56; # Integer | CSO id, CSO who register it
my $partnerId = 56; # Integer | Partner id, All encounters under partner

eval { 
    my $result = $api_instance->encounterCountGet(dateFrom => $dateFrom, dateTo => $dateTo, enrollmentCode => $enrollmentCode, wardId => $wardId, periodId => $periodId, stageId => $stageId, serviceId => $serviceId, csoId => $csoId, partnerId => $partnerId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->encounterCountGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Encounters of Date from (optional)
dateTo = dateTo_example # String | Encounters of Date to (optional)
enrollmentCode = enrollmentCode_example # String | Encounters of Enrollment code (optional)
wardId = 56 # Integer | Encounters of Ward (optional)
periodId = 56 # Integer | Encounters of Period (optional)
stageId = 56 # Integer | Encounters within service stage (optional)
serviceId = 56 # Integer | Encounters within service (optional)
csoId = 56 # Integer | CSO id, CSO who register it (optional)
partnerId = 56 # Integer | Partner id, All encounters under partner (optional)

try: 
    api_response = api_instance.encounter_count_get(dateFrom=dateFrom, dateTo=dateTo, enrollmentCode=enrollmentCode, wardId=wardId, periodId=periodId, stageId=stageId, serviceId=serviceId, csoId=csoId, partnerId=partnerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->encounterCountGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Encounters of Date from
dateTo
String (dd-mm-yyyy)
Encounters of Date to
enrollmentCode
String
Encounters of Enrollment code
wardId
Integer
Encounters of Ward
periodId
Integer
Encounters of Period
stageId
Integer
Encounters within service stage
serviceId
Integer
Encounters within service
csoId
Integer
CSO id, CSO who register it
partnerId
Integer
Partner id, All encounters under partner

Responses

Status: 200 - OK


encounterDelete

Delete Encounters based on query passed


/encounter/

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Basic [[basicHash]]"\
"http://localhost:8080/api/v1/dames/encounter/?dateFrom=&dateTo=&enrollmentCode=&wardId=&periodId=&stageId=&serviceId=&csoId=&partnerId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Encounters of Date from
        String dateTo = dateTo_example; // String | Encounters of Date to
        String enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
        Integer wardId = 56; // Integer | Encounters of Ward
        Integer periodId = 56; // Integer | Encounters of Period
        Integer stageId = 56; // Integer | Encounters within service stage
        Integer serviceId = 56; // Integer | Encounters within service
        Integer csoId = 56; // Integer | CSO id, CSO who register it
        Integer partnerId = 56; // Integer | Partner id, All encounters under partner
        try {
            apiInstance.encounterDelete(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Encounters of Date from
        String dateTo = dateTo_example; // String | Encounters of Date to
        String enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
        Integer wardId = 56; // Integer | Encounters of Ward
        Integer periodId = 56; // Integer | Encounters of Period
        Integer stageId = 56; // Integer | Encounters within service stage
        Integer serviceId = 56; // Integer | Encounters within service
        Integer csoId = 56; // Integer | CSO id, CSO who register it
        Integer partnerId = 56; // Integer | Partner id, All encounters under partner
        try {
            apiInstance.encounterDelete(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Encounters of Date from (optional)
String *dateTo = dateTo_example; // Encounters of Date to (optional)
String *enrollmentCode = enrollmentCode_example; // Encounters of Enrollment code (optional)
Integer *wardId = 56; // Encounters of Ward (optional)
Integer *periodId = 56; // Encounters of Period (optional)
Integer *stageId = 56; // Encounters within service stage (optional)
Integer *serviceId = 56; // Encounters within service (optional)
Integer *csoId = 56; // CSO id, CSO who register it (optional)
Integer *partnerId = 56; // Partner id, All encounters under partner (optional)

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

[apiInstance encounterDeleteWith:dateFrom
    dateTo:dateTo
    enrollmentCode:enrollmentCode
    wardId:wardId
    periodId:periodId
    stageId:stageId
    serviceId:serviceId
    csoId:csoId
    partnerId:partnerId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Encounters of Date from
  'dateTo': dateTo_example, // {{String}} Encounters of Date to
  'enrollmentCode': enrollmentCode_example, // {{String}} Encounters of Enrollment code
  'wardId': 56, // {{Integer}} Encounters of Ward
  'periodId': 56, // {{Integer}} Encounters of Period
  'stageId': 56, // {{Integer}} Encounters within service stage
  'serviceId': 56, // {{Integer}} Encounters within service
  'csoId': 56, // {{Integer}} CSO id, CSO who register it
  'partnerId': 56 // {{Integer}} Partner id, All encounters under partner
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.encounterDelete(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class encounterDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Encounters of Date from (optional) 
            var dateTo = dateTo_example;  // String | Encounters of Date to (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Encounters of Enrollment code (optional) 
            var wardId = 56;  // Integer | Encounters of Ward (optional) 
            var periodId = 56;  // Integer | Encounters of Period (optional) 
            var stageId = 56;  // Integer | Encounters within service stage (optional) 
            var serviceId = 56;  // Integer | Encounters within service (optional) 
            var csoId = 56;  // Integer | CSO id, CSO who register it (optional) 
            var partnerId = 56;  // Integer | Partner id, All encounters under partner (optional) 

            try
            {
                apiInstance.encounterDelete(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.encounterDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Encounters of Date from
$dateTo = dateTo_example; // String | Encounters of Date to
$enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
$wardId = 56; // Integer | Encounters of Ward
$periodId = 56; // Integer | Encounters of Period
$stageId = 56; // Integer | Encounters within service stage
$serviceId = 56; // Integer | Encounters within service
$csoId = 56; // Integer | CSO id, CSO who register it
$partnerId = 56; // Integer | Partner id, All encounters under partner

try {
    $api_instance->encounterDelete($dateFrom, $dateTo, $enrollmentCode, $wardId, $periodId, $stageId, $serviceId, $csoId, $partnerId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->encounterDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Encounters of Date from
my $dateTo = dateTo_example; # String | Encounters of Date to
my $enrollmentCode = enrollmentCode_example; # String | Encounters of Enrollment code
my $wardId = 56; # Integer | Encounters of Ward
my $periodId = 56; # Integer | Encounters of Period
my $stageId = 56; # Integer | Encounters within service stage
my $serviceId = 56; # Integer | Encounters within service
my $csoId = 56; # Integer | CSO id, CSO who register it
my $partnerId = 56; # Integer | Partner id, All encounters under partner

eval { 
    $api_instance->encounterDelete(dateFrom => $dateFrom, dateTo => $dateTo, enrollmentCode => $enrollmentCode, wardId => $wardId, periodId => $periodId, stageId => $stageId, serviceId => $serviceId, csoId => $csoId, partnerId => $partnerId);
};
if ($@) {
    warn "Exception when calling DefaultApi->encounterDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Encounters of Date from (optional)
dateTo = dateTo_example # String | Encounters of Date to (optional)
enrollmentCode = enrollmentCode_example # String | Encounters of Enrollment code (optional)
wardId = 56 # Integer | Encounters of Ward (optional)
periodId = 56 # Integer | Encounters of Period (optional)
stageId = 56 # Integer | Encounters within service stage (optional)
serviceId = 56 # Integer | Encounters within service (optional)
csoId = 56 # Integer | CSO id, CSO who register it (optional)
partnerId = 56 # Integer | Partner id, All encounters under partner (optional)

try: 
    api_instance.encounter_delete(dateFrom=dateFrom, dateTo=dateTo, enrollmentCode=enrollmentCode, wardId=wardId, periodId=periodId, stageId=stageId, serviceId=serviceId, csoId=csoId, partnerId=partnerId)
except ApiException as e:
    print("Exception when calling DefaultApi->encounterDelete: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Encounters of Date from
dateTo
String (dd-mm-yyyy)
Encounters of Date to
enrollmentCode
String
Encounters of Enrollment code
wardId
Integer
Encounters of Ward
periodId
Integer
Encounters of Period
stageId
Integer
Encounters within service stage
serviceId
Integer
Encounters within service
csoId
Integer
CSO id, CSO who register it
partnerId
Integer
Partner id, All encounters under partner

Responses

Status: 202 - OK


encounterIdDelete

Delete Encounter


/encounter/{id}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Basic [[basicHash]]"\
"http://localhost:8080/api/v1/dames/encounter/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Encounter id
        try {
            apiInstance.encounterIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Encounter id
        try {
            apiInstance.encounterIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Encounter id

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

[apiInstance encounterIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Encounter id

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

namespace Example
{
    public class encounterIdDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Encounter id

            try
            {
                apiInstance.encounterIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.encounterIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Encounter id

try {
    $api_instance->encounterIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->encounterIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Encounter id

eval { 
    $api_instance->encounterIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->encounterIdDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Encounter id

try: 
    api_instance.encounter_id_delete(id)
except ApiException as e:
    print("Exception when calling DefaultApi->encounterIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Encounter id
Required

Responses

Status: 202 - OK


encounterListGet

Find all posted encounters by logged user


/encounter/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/encounter/list?dateFrom=&dateTo=&enrollmentCode=&wardId=&periodId=&stageId=&serviceId=&csoId=&partnerId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Encounters of Date from
        String dateTo = dateTo_example; // String | Encounters of Date to
        String enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
        Integer wardId = 56; // Integer | Encounters of Ward
        Integer periodId = 56; // Integer | Encounters of Period
        Integer stageId = 56; // Integer | Encounters within service stage
        Integer serviceId = 56; // Integer | Encounters within service
        Integer csoId = 56; // Integer | CSO id, CSO who register it
        Integer partnerId = 56; // Integer | Partner id, All encounters under partner
        try {
            EncounterList result = apiInstance.encounterListGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Encounters of Date from
        String dateTo = dateTo_example; // String | Encounters of Date to
        String enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
        Integer wardId = 56; // Integer | Encounters of Ward
        Integer periodId = 56; // Integer | Encounters of Period
        Integer stageId = 56; // Integer | Encounters within service stage
        Integer serviceId = 56; // Integer | Encounters within service
        Integer csoId = 56; // Integer | CSO id, CSO who register it
        Integer partnerId = 56; // Integer | Partner id, All encounters under partner
        try {
            EncounterList result = apiInstance.encounterListGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Encounters of Date from (optional)
String *dateTo = dateTo_example; // Encounters of Date to (optional)
String *enrollmentCode = enrollmentCode_example; // Encounters of Enrollment code (optional)
Integer *wardId = 56; // Encounters of Ward (optional)
Integer *periodId = 56; // Encounters of Period (optional)
Integer *stageId = 56; // Encounters within service stage (optional)
Integer *serviceId = 56; // Encounters within service (optional)
Integer *csoId = 56; // CSO id, CSO who register it (optional)
Integer *partnerId = 56; // Partner id, All encounters under partner (optional)

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

[apiInstance encounterListGetWith:dateFrom
    dateTo:dateTo
    enrollmentCode:enrollmentCode
    wardId:wardId
    periodId:periodId
    stageId:stageId
    serviceId:serviceId
    csoId:csoId
    partnerId:partnerId
              completionHandler: ^(EncounterList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Encounters of Date from
  'dateTo': dateTo_example, // {{String}} Encounters of Date to
  'enrollmentCode': enrollmentCode_example, // {{String}} Encounters of Enrollment code
  'wardId': 56, // {{Integer}} Encounters of Ward
  'periodId': 56, // {{Integer}} Encounters of Period
  'stageId': 56, // {{Integer}} Encounters within service stage
  'serviceId': 56, // {{Integer}} Encounters within service
  'csoId': 56, // {{Integer}} CSO id, CSO who register it
  'partnerId': 56 // {{Integer}} Partner id, All encounters under partner
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.encounterListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class encounterListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Encounters of Date from (optional) 
            var dateTo = dateTo_example;  // String | Encounters of Date to (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Encounters of Enrollment code (optional) 
            var wardId = 56;  // Integer | Encounters of Ward (optional) 
            var periodId = 56;  // Integer | Encounters of Period (optional) 
            var stageId = 56;  // Integer | Encounters within service stage (optional) 
            var serviceId = 56;  // Integer | Encounters within service (optional) 
            var csoId = 56;  // Integer | CSO id, CSO who register it (optional) 
            var partnerId = 56;  // Integer | Partner id, All encounters under partner (optional) 

            try
            {
                EncounterList result = apiInstance.encounterListGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.encounterListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Encounters of Date from
$dateTo = dateTo_example; // String | Encounters of Date to
$enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
$wardId = 56; // Integer | Encounters of Ward
$periodId = 56; // Integer | Encounters of Period
$stageId = 56; // Integer | Encounters within service stage
$serviceId = 56; // Integer | Encounters within service
$csoId = 56; // Integer | CSO id, CSO who register it
$partnerId = 56; // Integer | Partner id, All encounters under partner

try {
    $result = $api_instance->encounterListGet($dateFrom, $dateTo, $enrollmentCode, $wardId, $periodId, $stageId, $serviceId, $csoId, $partnerId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->encounterListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Encounters of Date from
my $dateTo = dateTo_example; # String | Encounters of Date to
my $enrollmentCode = enrollmentCode_example; # String | Encounters of Enrollment code
my $wardId = 56; # Integer | Encounters of Ward
my $periodId = 56; # Integer | Encounters of Period
my $stageId = 56; # Integer | Encounters within service stage
my $serviceId = 56; # Integer | Encounters within service
my $csoId = 56; # Integer | CSO id, CSO who register it
my $partnerId = 56; # Integer | Partner id, All encounters under partner

eval { 
    my $result = $api_instance->encounterListGet(dateFrom => $dateFrom, dateTo => $dateTo, enrollmentCode => $enrollmentCode, wardId => $wardId, periodId => $periodId, stageId => $stageId, serviceId => $serviceId, csoId => $csoId, partnerId => $partnerId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->encounterListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Encounters of Date from (optional)
dateTo = dateTo_example # String | Encounters of Date to (optional)
enrollmentCode = enrollmentCode_example # String | Encounters of Enrollment code (optional)
wardId = 56 # Integer | Encounters of Ward (optional)
periodId = 56 # Integer | Encounters of Period (optional)
stageId = 56 # Integer | Encounters within service stage (optional)
serviceId = 56 # Integer | Encounters within service (optional)
csoId = 56 # Integer | CSO id, CSO who register it (optional)
partnerId = 56 # Integer | Partner id, All encounters under partner (optional)

try: 
    api_response = api_instance.encounter_list_get(dateFrom=dateFrom, dateTo=dateTo, enrollmentCode=enrollmentCode, wardId=wardId, periodId=periodId, stageId=stageId, serviceId=serviceId, csoId=csoId, partnerId=partnerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->encounterListGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Encounters of Date from
dateTo
String (dd-mm-yyyy)
Encounters of Date to
enrollmentCode
String
Encounters of Enrollment code
wardId
Integer
Encounters of Ward
periodId
Integer
Encounters of Period
stageId
Integer
Encounters within service stage
serviceId
Integer
Encounters within service
csoId
Integer
CSO id, CSO who register it
partnerId
Integer
Partner id, All encounters under partner

Responses

Status: 200 - OK


encounterPageGet

List in pages Encounters


/encounter/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/encounter/page?dateFrom=&dateTo=&enrollmentCode=&wardId=&periodId=&stageId=&serviceId=&csoId=&partnerId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Encounters of Date from
        String dateTo = dateTo_example; // String | Encounters of Date to
        String enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
        Integer wardId = 56; // Integer | Encounters of Ward
        Integer periodId = 56; // Integer | Encounters of Period
        Integer stageId = 56; // Integer | Encounters within service stage
        Integer serviceId = 56; // Integer | Encounters within service
        Integer csoId = 56; // Integer | CSO id, CSO who register it
        Integer partnerId = 56; // Integer | Partner id, All encounters under partner
        try {
            EncounterListWithPagination result = apiInstance.encounterPageGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterPageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Encounters of Date from
        String dateTo = dateTo_example; // String | Encounters of Date to
        String enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
        Integer wardId = 56; // Integer | Encounters of Ward
        Integer periodId = 56; // Integer | Encounters of Period
        Integer stageId = 56; // Integer | Encounters within service stage
        Integer serviceId = 56; // Integer | Encounters within service
        Integer csoId = 56; // Integer | CSO id, CSO who register it
        Integer partnerId = 56; // Integer | Partner id, All encounters under partner
        try {
            EncounterListWithPagination result = apiInstance.encounterPageGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterPageGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Encounters of Date from (optional)
String *dateTo = dateTo_example; // Encounters of Date to (optional)
String *enrollmentCode = enrollmentCode_example; // Encounters of Enrollment code (optional)
Integer *wardId = 56; // Encounters of Ward (optional)
Integer *periodId = 56; // Encounters of Period (optional)
Integer *stageId = 56; // Encounters within service stage (optional)
Integer *serviceId = 56; // Encounters within service (optional)
Integer *csoId = 56; // CSO id, CSO who register it (optional)
Integer *partnerId = 56; // Partner id, All encounters under partner (optional)

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

[apiInstance encounterPageGetWith:dateFrom
    dateTo:dateTo
    enrollmentCode:enrollmentCode
    wardId:wardId
    periodId:periodId
    stageId:stageId
    serviceId:serviceId
    csoId:csoId
    partnerId:partnerId
              completionHandler: ^(EncounterListWithPagination output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Encounters of Date from
  'dateTo': dateTo_example, // {{String}} Encounters of Date to
  'enrollmentCode': enrollmentCode_example, // {{String}} Encounters of Enrollment code
  'wardId': 56, // {{Integer}} Encounters of Ward
  'periodId': 56, // {{Integer}} Encounters of Period
  'stageId': 56, // {{Integer}} Encounters within service stage
  'serviceId': 56, // {{Integer}} Encounters within service
  'csoId': 56, // {{Integer}} CSO id, CSO who register it
  'partnerId': 56 // {{Integer}} Partner id, All encounters under partner
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.encounterPageGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class encounterPageGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Encounters of Date from (optional) 
            var dateTo = dateTo_example;  // String | Encounters of Date to (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Encounters of Enrollment code (optional) 
            var wardId = 56;  // Integer | Encounters of Ward (optional) 
            var periodId = 56;  // Integer | Encounters of Period (optional) 
            var stageId = 56;  // Integer | Encounters within service stage (optional) 
            var serviceId = 56;  // Integer | Encounters within service (optional) 
            var csoId = 56;  // Integer | CSO id, CSO who register it (optional) 
            var partnerId = 56;  // Integer | Partner id, All encounters under partner (optional) 

            try
            {
                EncounterListWithPagination result = apiInstance.encounterPageGet(dateFrom, dateTo, enrollmentCode, wardId, periodId, stageId, serviceId, csoId, partnerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.encounterPageGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Encounters of Date from
$dateTo = dateTo_example; // String | Encounters of Date to
$enrollmentCode = enrollmentCode_example; // String | Encounters of Enrollment code
$wardId = 56; // Integer | Encounters of Ward
$periodId = 56; // Integer | Encounters of Period
$stageId = 56; // Integer | Encounters within service stage
$serviceId = 56; // Integer | Encounters within service
$csoId = 56; // Integer | CSO id, CSO who register it
$partnerId = 56; // Integer | Partner id, All encounters under partner

try {
    $result = $api_instance->encounterPageGet($dateFrom, $dateTo, $enrollmentCode, $wardId, $periodId, $stageId, $serviceId, $csoId, $partnerId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->encounterPageGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Encounters of Date from
my $dateTo = dateTo_example; # String | Encounters of Date to
my $enrollmentCode = enrollmentCode_example; # String | Encounters of Enrollment code
my $wardId = 56; # Integer | Encounters of Ward
my $periodId = 56; # Integer | Encounters of Period
my $stageId = 56; # Integer | Encounters within service stage
my $serviceId = 56; # Integer | Encounters within service
my $csoId = 56; # Integer | CSO id, CSO who register it
my $partnerId = 56; # Integer | Partner id, All encounters under partner

eval { 
    my $result = $api_instance->encounterPageGet(dateFrom => $dateFrom, dateTo => $dateTo, enrollmentCode => $enrollmentCode, wardId => $wardId, periodId => $periodId, stageId => $stageId, serviceId => $serviceId, csoId => $csoId, partnerId => $partnerId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->encounterPageGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Encounters of Date from (optional)
dateTo = dateTo_example # String | Encounters of Date to (optional)
enrollmentCode = enrollmentCode_example # String | Encounters of Enrollment code (optional)
wardId = 56 # Integer | Encounters of Ward (optional)
periodId = 56 # Integer | Encounters of Period (optional)
stageId = 56 # Integer | Encounters within service stage (optional)
serviceId = 56 # Integer | Encounters within service (optional)
csoId = 56 # Integer | CSO id, CSO who register it (optional)
partnerId = 56 # Integer | Partner id, All encounters under partner (optional)

try: 
    api_response = api_instance.encounter_page_get(dateFrom=dateFrom, dateTo=dateTo, enrollmentCode=enrollmentCode, wardId=wardId, periodId=periodId, stageId=stageId, serviceId=serviceId, csoId=csoId, partnerId=partnerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->encounterPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Encounters of Date from
dateTo
String (dd-mm-yyyy)
Encounters of Date to
enrollmentCode
String
Encounters of Enrollment code
wardId
Integer
Encounters of Ward
periodId
Integer
Encounters of Period
stageId
Integer
Encounters within service stage
serviceId
Integer
Encounters within service
csoId
Integer
CSO id, CSO who register it
partnerId
Integer
Partner id, All encounters under partner

Responses

Status: 200 - OK


encounterPost

Create Encounter


/encounter

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/encounter"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        EncounterPostObject body = ; // EncounterPostObject | 
        try {
            Encounter result = apiInstance.encounterPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        EncounterPostObject body = ; // EncounterPostObject | 
        try {
            Encounter result = apiInstance.encounterPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#encounterPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
EncounterPostObject *body = ; //  (optional)

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

[apiInstance encounterPostWith:body
              completionHandler: ^(Encounter output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

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

namespace Example
{
    public class encounterPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var body = new EncounterPostObject(); // EncounterPostObject |  (optional) 

            try
            {
                Encounter result = apiInstance.encounterPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.encounterPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // EncounterPostObject | 

try {
    $result = $api_instance->encounterPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->encounterPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

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

eval { 
    my $result = $api_instance->encounterPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->encounterPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # EncounterPostObject |  (optional)

try: 
    api_response = api_instance.encounter_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->encounterPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 - CREATED


enrollmentBulkPost

Post bulk enrollment. Posting multiple enrollment objects at once


/enrollment/bulk

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/enrollment/bulk"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        array[EnrollmentPostOject] body = ; // array[EnrollmentPostOject] | 
        try {
            EnrollmentList result = apiInstance.enrollmentBulkPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentBulkPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        array[EnrollmentPostOject] body = ; // array[EnrollmentPostOject] | 
        try {
            EnrollmentList result = apiInstance.enrollmentBulkPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentBulkPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
array[EnrollmentPostOject] *body = ; //  (optional)

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

[apiInstance enrollmentBulkPostWith:body
              completionHandler: ^(EnrollmentList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'body':  // {{array[EnrollmentPostOject]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.enrollmentBulkPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class enrollmentBulkPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var body = new array[EnrollmentPostOject](); // array[EnrollmentPostOject] |  (optional) 

            try
            {
                EnrollmentList result = apiInstance.enrollmentBulkPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentBulkPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // array[EnrollmentPostOject] | 

try {
    $result = $api_instance->enrollmentBulkPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentBulkPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = [WWW::SwaggerClient::Object::array[EnrollmentPostOject]->new()]; # array[EnrollmentPostOject] | 

eval { 
    my $result = $api_instance->enrollmentBulkPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentBulkPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # array[EnrollmentPostOject] |  (optional)

try: 
    api_response = api_instance.enrollment_bulk_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentBulkPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK


enrollmentCodeExistGet

Check if enrollment code exists


/enrollment/{code}/exist

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: text/plain"\
"http://localhost:8080/api/v1/dames/enrollment/{code}/exist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass new generated enrollment code
        try {
            'Boolean' result = apiInstance.enrollmentCodeExistGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentCodeExistGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass new generated enrollment code
        try {
            'Boolean' result = apiInstance.enrollmentCodeExistGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentCodeExistGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Pass new generated enrollment code

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

[apiInstance enrollmentCodeExistGetWith:code
              completionHandler: ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var code = code_example; // {{String}} Pass new generated enrollment code

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

namespace Example
{
    public class enrollmentCodeExistGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Pass new generated enrollment code

            try
            {
                'Boolean' result = apiInstance.enrollmentCodeExistGet(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentCodeExistGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Pass new generated enrollment code

try {
    $result = $api_instance->enrollmentCodeExistGet($code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentCodeExistGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Pass new generated enrollment code

eval { 
    my $result = $api_instance->enrollmentCodeExistGet(code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentCodeExistGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Pass new generated enrollment code

try: 
    api_response = api_instance.enrollment_code_exist_get(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentCodeExistGet: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Pass new generated enrollment code
Required

Responses

Status: 200 - OK


enrollmentCodeGet

Get enrollment by code


/enrollment/{code}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/enrollment/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass enrollment code
        try {
            Enrollment result = apiInstance.enrollmentCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass enrollment code
        try {
            Enrollment result = apiInstance.enrollmentCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentCodeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Pass enrollment code

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

[apiInstance enrollmentCodeGetWith:code
              completionHandler: ^(Enrollment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var code = code_example; // {{String}} Pass enrollment code

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

namespace Example
{
    public class enrollmentCodeGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Pass enrollment code

            try
            {
                Enrollment result = apiInstance.enrollmentCodeGet(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentCodeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Pass enrollment code

try {
    $result = $api_instance->enrollmentCodeGet($code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Pass enrollment code

eval { 
    my $result = $api_instance->enrollmentCodeGet(code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Pass enrollment code

try: 
    api_response = api_instance.enrollment_code_get(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentCodeGet: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Pass enrollment code
Required

Responses

Status: 200 - OK


enrollmentCountGet

Count enrollments by query


/enrollment/count

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/text"\
"http://localhost:8080/api/v1/dames/enrollment/count?code=&referral=&dateFrom=&dateTo=&wardIds=&csoIds=&levelIds=&graduationFrom=&graduationTo=&completedFrom=&completedTo="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Enrollment Code
        Boolean referral = true; // Boolean | Referral Enrollments
        String dateFrom = dateFrom_example; // String | Enrollment Date from
        String dateTo = dateTo_example; // String | Enrollment Date to
        array[Integer] wardIds = ; // array[Integer] | Enrollment Wards IDs
        array[Integer] csoIds = ; // array[Integer] | Enrollment CSOs IDs
        array[Integer] levelIds = ; // array[Integer] | Enrollment Levels IDs
        String graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
        String graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
        String completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
        String completedTo = completedTo_example; // String | Enrollment Service Completion Date to
        try {
            'Integer' result = apiInstance.enrollmentCountGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentCountGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Enrollment Code
        Boolean referral = true; // Boolean | Referral Enrollments
        String dateFrom = dateFrom_example; // String | Enrollment Date from
        String dateTo = dateTo_example; // String | Enrollment Date to
        array[Integer] wardIds = ; // array[Integer] | Enrollment Wards IDs
        array[Integer] csoIds = ; // array[Integer] | Enrollment CSOs IDs
        array[Integer] levelIds = ; // array[Integer] | Enrollment Levels IDs
        String graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
        String graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
        String completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
        String completedTo = completedTo_example; // String | Enrollment Service Completion Date to
        try {
            'Integer' result = apiInstance.enrollmentCountGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentCountGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Enrollment Code (optional)
Boolean *referral = true; // Referral Enrollments (optional)
String *dateFrom = dateFrom_example; // Enrollment Date from (optional)
String *dateTo = dateTo_example; // Enrollment Date to (optional)
array[Integer] *wardIds = ; // Enrollment Wards IDs (optional)
array[Integer] *csoIds = ; // Enrollment CSOs IDs (optional)
array[Integer] *levelIds = ; // Enrollment Levels IDs (optional)
String *graduationFrom = graduationFrom_example; // Enrollment Graduation Date from (optional)
String *graduationTo = graduationTo_example; // Enrollment Graduation Date to (optional)
String *completedFrom = completedFrom_example; // Enrollment Service Completion Date from (optional)
String *completedTo = completedTo_example; // Enrollment Service Completion Date to (optional)

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

[apiInstance enrollmentCountGetWith:code
    referral:referral
    dateFrom:dateFrom
    dateTo:dateTo
    wardIds:wardIds
    csoIds:csoIds
    levelIds:levelIds
    graduationFrom:graduationFrom
    graduationTo:graduationTo
    completedFrom:completedFrom
    completedTo:completedTo
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'code': code_example, // {{String}} Enrollment Code
  'referral': true, // {{Boolean}} Referral Enrollments
  'dateFrom': dateFrom_example, // {{String}} Enrollment Date from
  'dateTo': dateTo_example, // {{String}} Enrollment Date to
  'wardIds': , // {{array[Integer]}} Enrollment Wards IDs
  'csoIds': , // {{array[Integer]}} Enrollment CSOs IDs
  'levelIds': , // {{array[Integer]}} Enrollment Levels IDs
  'graduationFrom': graduationFrom_example, // {{String}} Enrollment Graduation Date from
  'graduationTo': graduationTo_example, // {{String}} Enrollment Graduation Date to
  'completedFrom': completedFrom_example, // {{String}} Enrollment Service Completion Date from
  'completedTo': completedTo_example // {{String}} Enrollment Service Completion Date to
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.enrollmentCountGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class enrollmentCountGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Enrollment Code (optional) 
            var referral = true;  // Boolean | Referral Enrollments (optional) 
            var dateFrom = dateFrom_example;  // String | Enrollment Date from (optional) 
            var dateTo = dateTo_example;  // String | Enrollment Date to (optional) 
            var wardIds = new array[Integer](); // array[Integer] | Enrollment Wards IDs (optional) 
            var csoIds = new array[Integer](); // array[Integer] | Enrollment CSOs IDs (optional) 
            var levelIds = new array[Integer](); // array[Integer] | Enrollment Levels IDs (optional) 
            var graduationFrom = graduationFrom_example;  // String | Enrollment Graduation Date from (optional) 
            var graduationTo = graduationTo_example;  // String | Enrollment Graduation Date to (optional) 
            var completedFrom = completedFrom_example;  // String | Enrollment Service Completion Date from (optional) 
            var completedTo = completedTo_example;  // String | Enrollment Service Completion Date to (optional) 

            try
            {
                'Integer' result = apiInstance.enrollmentCountGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentCountGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Enrollment Code
$referral = true; // Boolean | Referral Enrollments
$dateFrom = dateFrom_example; // String | Enrollment Date from
$dateTo = dateTo_example; // String | Enrollment Date to
$wardIds = ; // array[Integer] | Enrollment Wards IDs
$csoIds = ; // array[Integer] | Enrollment CSOs IDs
$levelIds = ; // array[Integer] | Enrollment Levels IDs
$graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
$graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
$completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
$completedTo = completedTo_example; // String | Enrollment Service Completion Date to

try {
    $result = $api_instance->enrollmentCountGet($code, $referral, $dateFrom, $dateTo, $wardIds, $csoIds, $levelIds, $graduationFrom, $graduationTo, $completedFrom, $completedTo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Enrollment Code
my $referral = true; # Boolean | Referral Enrollments
my $dateFrom = dateFrom_example; # String | Enrollment Date from
my $dateTo = dateTo_example; # String | Enrollment Date to
my $wardIds = []; # array[Integer] | Enrollment Wards IDs
my $csoIds = []; # array[Integer] | Enrollment CSOs IDs
my $levelIds = []; # array[Integer] | Enrollment Levels IDs
my $graduationFrom = graduationFrom_example; # String | Enrollment Graduation Date from
my $graduationTo = graduationTo_example; # String | Enrollment Graduation Date to
my $completedFrom = completedFrom_example; # String | Enrollment Service Completion Date from
my $completedTo = completedTo_example; # String | Enrollment Service Completion Date to

eval { 
    my $result = $api_instance->enrollmentCountGet(code => $code, referral => $referral, dateFrom => $dateFrom, dateTo => $dateTo, wardIds => $wardIds, csoIds => $csoIds, levelIds => $levelIds, graduationFrom => $graduationFrom, graduationTo => $graduationTo, completedFrom => $completedFrom, completedTo => $completedTo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentCountGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Enrollment Code (optional)
referral = true # Boolean | Referral Enrollments (optional)
dateFrom = dateFrom_example # String | Enrollment Date from (optional)
dateTo = dateTo_example # String | Enrollment Date to (optional)
wardIds =  # array[Integer] | Enrollment Wards IDs (optional)
csoIds =  # array[Integer] | Enrollment CSOs IDs (optional)
levelIds =  # array[Integer] | Enrollment Levels IDs (optional)
graduationFrom = graduationFrom_example # String | Enrollment Graduation Date from (optional)
graduationTo = graduationTo_example # String | Enrollment Graduation Date to (optional)
completedFrom = completedFrom_example # String | Enrollment Service Completion Date from (optional)
completedTo = completedTo_example # String | Enrollment Service Completion Date to (optional)

try: 
    api_response = api_instance.enrollment_count_get(code=code, referral=referral, dateFrom=dateFrom, dateTo=dateTo, wardIds=wardIds, csoIds=csoIds, levelIds=levelIds, graduationFrom=graduationFrom, graduationTo=graduationTo, completedFrom=completedFrom, completedTo=completedTo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentCountGet: %s\n" % e)

Parameters

Query parameters
Name Description
code
String
Enrollment Code
referral
Boolean
Referral Enrollments
dateFrom
String (dd-mm-yyyy)
Enrollment Date from
dateTo
String (dd-mm-yyyy)
Enrollment Date to
wardIds
array[Integer]
Enrollment Wards IDs
csoIds
array[Integer]
Enrollment CSOs IDs
levelIds
array[Integer]
Enrollment Levels IDs
graduationFrom
String (dd-mm-yyyy)
Enrollment Graduation Date from
graduationTo
String (dd-mm-yyyy)
Enrollment Graduation Date to
completedFrom
String (dd-mm-yyyy)
Enrollment Service Completion Date from
completedTo
String (dd-mm-yyyy)
Enrollment Service Completion Date to

Responses

Status: 200 - OK


enrollmentListGet

Find all posted enrollments


/enrollment/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/enrollment/list?code=&referral=&dateFrom=&dateTo=&wardIds=&csoIds=&levelIds=&graduationFrom=&graduationTo=&completedFrom=&completedTo="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Enrollment Code
        Boolean referral = true; // Boolean | Referral Enrollments
        String dateFrom = dateFrom_example; // String | Enrollment Date from
        String dateTo = dateTo_example; // String | Enrollment Date to
        array[Integer] wardIds = ; // array[Integer] | Enrollment Wards IDs
        array[Integer] csoIds = ; // array[Integer] | Enrollment CSOs IDs
        array[Integer] levelIds = ; // array[Integer] | Enrollment Levels IDs
        String graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
        String graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
        String completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
        String completedTo = completedTo_example; // String | Enrollment Service Completion Date to
        try {
            EnrollmentList result = apiInstance.enrollmentListGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Enrollment Code
        Boolean referral = true; // Boolean | Referral Enrollments
        String dateFrom = dateFrom_example; // String | Enrollment Date from
        String dateTo = dateTo_example; // String | Enrollment Date to
        array[Integer] wardIds = ; // array[Integer] | Enrollment Wards IDs
        array[Integer] csoIds = ; // array[Integer] | Enrollment CSOs IDs
        array[Integer] levelIds = ; // array[Integer] | Enrollment Levels IDs
        String graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
        String graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
        String completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
        String completedTo = completedTo_example; // String | Enrollment Service Completion Date to
        try {
            EnrollmentList result = apiInstance.enrollmentListGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Enrollment Code (optional)
Boolean *referral = true; // Referral Enrollments (optional)
String *dateFrom = dateFrom_example; // Enrollment Date from (optional)
String *dateTo = dateTo_example; // Enrollment Date to (optional)
array[Integer] *wardIds = ; // Enrollment Wards IDs (optional)
array[Integer] *csoIds = ; // Enrollment CSOs IDs (optional)
array[Integer] *levelIds = ; // Enrollment Levels IDs (optional)
String *graduationFrom = graduationFrom_example; // Enrollment Graduation Date from (optional)
String *graduationTo = graduationTo_example; // Enrollment Graduation Date to (optional)
String *completedFrom = completedFrom_example; // Enrollment Service Completion Date from (optional)
String *completedTo = completedTo_example; // Enrollment Service Completion Date to (optional)

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

[apiInstance enrollmentListGetWith:code
    referral:referral
    dateFrom:dateFrom
    dateTo:dateTo
    wardIds:wardIds
    csoIds:csoIds
    levelIds:levelIds
    graduationFrom:graduationFrom
    graduationTo:graduationTo
    completedFrom:completedFrom
    completedTo:completedTo
              completionHandler: ^(EnrollmentList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'code': code_example, // {{String}} Enrollment Code
  'referral': true, // {{Boolean}} Referral Enrollments
  'dateFrom': dateFrom_example, // {{String}} Enrollment Date from
  'dateTo': dateTo_example, // {{String}} Enrollment Date to
  'wardIds': , // {{array[Integer]}} Enrollment Wards IDs
  'csoIds': , // {{array[Integer]}} Enrollment CSOs IDs
  'levelIds': , // {{array[Integer]}} Enrollment Levels IDs
  'graduationFrom': graduationFrom_example, // {{String}} Enrollment Graduation Date from
  'graduationTo': graduationTo_example, // {{String}} Enrollment Graduation Date to
  'completedFrom': completedFrom_example, // {{String}} Enrollment Service Completion Date from
  'completedTo': completedTo_example // {{String}} Enrollment Service Completion Date to
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.enrollmentListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class enrollmentListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Enrollment Code (optional) 
            var referral = true;  // Boolean | Referral Enrollments (optional) 
            var dateFrom = dateFrom_example;  // String | Enrollment Date from (optional) 
            var dateTo = dateTo_example;  // String | Enrollment Date to (optional) 
            var wardIds = new array[Integer](); // array[Integer] | Enrollment Wards IDs (optional) 
            var csoIds = new array[Integer](); // array[Integer] | Enrollment CSOs IDs (optional) 
            var levelIds = new array[Integer](); // array[Integer] | Enrollment Levels IDs (optional) 
            var graduationFrom = graduationFrom_example;  // String | Enrollment Graduation Date from (optional) 
            var graduationTo = graduationTo_example;  // String | Enrollment Graduation Date to (optional) 
            var completedFrom = completedFrom_example;  // String | Enrollment Service Completion Date from (optional) 
            var completedTo = completedTo_example;  // String | Enrollment Service Completion Date to (optional) 

            try
            {
                EnrollmentList result = apiInstance.enrollmentListGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Enrollment Code
$referral = true; // Boolean | Referral Enrollments
$dateFrom = dateFrom_example; // String | Enrollment Date from
$dateTo = dateTo_example; // String | Enrollment Date to
$wardIds = ; // array[Integer] | Enrollment Wards IDs
$csoIds = ; // array[Integer] | Enrollment CSOs IDs
$levelIds = ; // array[Integer] | Enrollment Levels IDs
$graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
$graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
$completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
$completedTo = completedTo_example; // String | Enrollment Service Completion Date to

try {
    $result = $api_instance->enrollmentListGet($code, $referral, $dateFrom, $dateTo, $wardIds, $csoIds, $levelIds, $graduationFrom, $graduationTo, $completedFrom, $completedTo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Enrollment Code
my $referral = true; # Boolean | Referral Enrollments
my $dateFrom = dateFrom_example; # String | Enrollment Date from
my $dateTo = dateTo_example; # String | Enrollment Date to
my $wardIds = []; # array[Integer] | Enrollment Wards IDs
my $csoIds = []; # array[Integer] | Enrollment CSOs IDs
my $levelIds = []; # array[Integer] | Enrollment Levels IDs
my $graduationFrom = graduationFrom_example; # String | Enrollment Graduation Date from
my $graduationTo = graduationTo_example; # String | Enrollment Graduation Date to
my $completedFrom = completedFrom_example; # String | Enrollment Service Completion Date from
my $completedTo = completedTo_example; # String | Enrollment Service Completion Date to

eval { 
    my $result = $api_instance->enrollmentListGet(code => $code, referral => $referral, dateFrom => $dateFrom, dateTo => $dateTo, wardIds => $wardIds, csoIds => $csoIds, levelIds => $levelIds, graduationFrom => $graduationFrom, graduationTo => $graduationTo, completedFrom => $completedFrom, completedTo => $completedTo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Enrollment Code (optional)
referral = true # Boolean | Referral Enrollments (optional)
dateFrom = dateFrom_example # String | Enrollment Date from (optional)
dateTo = dateTo_example # String | Enrollment Date to (optional)
wardIds =  # array[Integer] | Enrollment Wards IDs (optional)
csoIds =  # array[Integer] | Enrollment CSOs IDs (optional)
levelIds =  # array[Integer] | Enrollment Levels IDs (optional)
graduationFrom = graduationFrom_example # String | Enrollment Graduation Date from (optional)
graduationTo = graduationTo_example # String | Enrollment Graduation Date to (optional)
completedFrom = completedFrom_example # String | Enrollment Service Completion Date from (optional)
completedTo = completedTo_example # String | Enrollment Service Completion Date to (optional)

try: 
    api_response = api_instance.enrollment_list_get(code=code, referral=referral, dateFrom=dateFrom, dateTo=dateTo, wardIds=wardIds, csoIds=csoIds, levelIds=levelIds, graduationFrom=graduationFrom, graduationTo=graduationTo, completedFrom=completedFrom, completedTo=completedTo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentListGet: %s\n" % e)

Parameters

Query parameters
Name Description
code
String
Enrollment Code
referral
Boolean
Referral Enrollments
dateFrom
String (dd-mm-yyyy)
Enrollment Date from
dateTo
String (dd-mm-yyyy)
Enrollment Date to
wardIds
array[Integer]
Enrollment Wards IDs
csoIds
array[Integer]
Enrollment CSOs IDs
levelIds
array[Integer]
Enrollment Levels IDs
graduationFrom
String (dd-mm-yyyy)
Enrollment Graduation Date from
graduationTo
String (dd-mm-yyyy)
Enrollment Graduation Date to
completedFrom
String (dd-mm-yyyy)
Enrollment Service Completion Date from
completedTo
String (dd-mm-yyyy)
Enrollment Service Completion Date to

Responses

Status: 200 - OK


enrollmentPageGet

List all enrollments in Pages


/enrollment/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/enrollment/page?code=&referral=&dateFrom=&dateTo=&wardIds=&csoIds=&levelIds=&graduationFrom=&graduationTo=&completedFrom=&completedTo="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Enrollment Code
        Boolean referral = true; // Boolean | Referral Enrollments
        String dateFrom = dateFrom_example; // String | Enrollment Date from
        String dateTo = dateTo_example; // String | Enrollment Date to
        array[Integer] wardIds = ; // array[Integer] | Enrollment Wards IDs
        array[Integer] csoIds = ; // array[Integer] | Enrollment CSOs IDs
        array[Integer] levelIds = ; // array[Integer] | Enrollment Levels IDs
        String graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
        String graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
        String completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
        String completedTo = completedTo_example; // String | Enrollment Service Completion Date to
        try {
            EnrollmentsListWithPagination result = apiInstance.enrollmentPageGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentPageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Enrollment Code
        Boolean referral = true; // Boolean | Referral Enrollments
        String dateFrom = dateFrom_example; // String | Enrollment Date from
        String dateTo = dateTo_example; // String | Enrollment Date to
        array[Integer] wardIds = ; // array[Integer] | Enrollment Wards IDs
        array[Integer] csoIds = ; // array[Integer] | Enrollment CSOs IDs
        array[Integer] levelIds = ; // array[Integer] | Enrollment Levels IDs
        String graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
        String graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
        String completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
        String completedTo = completedTo_example; // String | Enrollment Service Completion Date to
        try {
            EnrollmentsListWithPagination result = apiInstance.enrollmentPageGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentPageGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Enrollment Code (optional)
Boolean *referral = true; // Referral Enrollments (optional)
String *dateFrom = dateFrom_example; // Enrollment Date from (optional)
String *dateTo = dateTo_example; // Enrollment Date to (optional)
array[Integer] *wardIds = ; // Enrollment Wards IDs (optional)
array[Integer] *csoIds = ; // Enrollment CSOs IDs (optional)
array[Integer] *levelIds = ; // Enrollment Levels IDs (optional)
String *graduationFrom = graduationFrom_example; // Enrollment Graduation Date from (optional)
String *graduationTo = graduationTo_example; // Enrollment Graduation Date to (optional)
String *completedFrom = completedFrom_example; // Enrollment Service Completion Date from (optional)
String *completedTo = completedTo_example; // Enrollment Service Completion Date to (optional)

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

[apiInstance enrollmentPageGetWith:code
    referral:referral
    dateFrom:dateFrom
    dateTo:dateTo
    wardIds:wardIds
    csoIds:csoIds
    levelIds:levelIds
    graduationFrom:graduationFrom
    graduationTo:graduationTo
    completedFrom:completedFrom
    completedTo:completedTo
              completionHandler: ^(EnrollmentsListWithPagination output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'code': code_example, // {{String}} Enrollment Code
  'referral': true, // {{Boolean}} Referral Enrollments
  'dateFrom': dateFrom_example, // {{String}} Enrollment Date from
  'dateTo': dateTo_example, // {{String}} Enrollment Date to
  'wardIds': , // {{array[Integer]}} Enrollment Wards IDs
  'csoIds': , // {{array[Integer]}} Enrollment CSOs IDs
  'levelIds': , // {{array[Integer]}} Enrollment Levels IDs
  'graduationFrom': graduationFrom_example, // {{String}} Enrollment Graduation Date from
  'graduationTo': graduationTo_example, // {{String}} Enrollment Graduation Date to
  'completedFrom': completedFrom_example, // {{String}} Enrollment Service Completion Date from
  'completedTo': completedTo_example // {{String}} Enrollment Service Completion Date to
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.enrollmentPageGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class enrollmentPageGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Enrollment Code (optional) 
            var referral = true;  // Boolean | Referral Enrollments (optional) 
            var dateFrom = dateFrom_example;  // String | Enrollment Date from (optional) 
            var dateTo = dateTo_example;  // String | Enrollment Date to (optional) 
            var wardIds = new array[Integer](); // array[Integer] | Enrollment Wards IDs (optional) 
            var csoIds = new array[Integer](); // array[Integer] | Enrollment CSOs IDs (optional) 
            var levelIds = new array[Integer](); // array[Integer] | Enrollment Levels IDs (optional) 
            var graduationFrom = graduationFrom_example;  // String | Enrollment Graduation Date from (optional) 
            var graduationTo = graduationTo_example;  // String | Enrollment Graduation Date to (optional) 
            var completedFrom = completedFrom_example;  // String | Enrollment Service Completion Date from (optional) 
            var completedTo = completedTo_example;  // String | Enrollment Service Completion Date to (optional) 

            try
            {
                EnrollmentsListWithPagination result = apiInstance.enrollmentPageGet(code, referral, dateFrom, dateTo, wardIds, csoIds, levelIds, graduationFrom, graduationTo, completedFrom, completedTo);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentPageGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Enrollment Code
$referral = true; // Boolean | Referral Enrollments
$dateFrom = dateFrom_example; // String | Enrollment Date from
$dateTo = dateTo_example; // String | Enrollment Date to
$wardIds = ; // array[Integer] | Enrollment Wards IDs
$csoIds = ; // array[Integer] | Enrollment CSOs IDs
$levelIds = ; // array[Integer] | Enrollment Levels IDs
$graduationFrom = graduationFrom_example; // String | Enrollment Graduation Date from
$graduationTo = graduationTo_example; // String | Enrollment Graduation Date to
$completedFrom = completedFrom_example; // String | Enrollment Service Completion Date from
$completedTo = completedTo_example; // String | Enrollment Service Completion Date to

try {
    $result = $api_instance->enrollmentPageGet($code, $referral, $dateFrom, $dateTo, $wardIds, $csoIds, $levelIds, $graduationFrom, $graduationTo, $completedFrom, $completedTo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentPageGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Enrollment Code
my $referral = true; # Boolean | Referral Enrollments
my $dateFrom = dateFrom_example; # String | Enrollment Date from
my $dateTo = dateTo_example; # String | Enrollment Date to
my $wardIds = []; # array[Integer] | Enrollment Wards IDs
my $csoIds = []; # array[Integer] | Enrollment CSOs IDs
my $levelIds = []; # array[Integer] | Enrollment Levels IDs
my $graduationFrom = graduationFrom_example; # String | Enrollment Graduation Date from
my $graduationTo = graduationTo_example; # String | Enrollment Graduation Date to
my $completedFrom = completedFrom_example; # String | Enrollment Service Completion Date from
my $completedTo = completedTo_example; # String | Enrollment Service Completion Date to

eval { 
    my $result = $api_instance->enrollmentPageGet(code => $code, referral => $referral, dateFrom => $dateFrom, dateTo => $dateTo, wardIds => $wardIds, csoIds => $csoIds, levelIds => $levelIds, graduationFrom => $graduationFrom, graduationTo => $graduationTo, completedFrom => $completedFrom, completedTo => $completedTo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentPageGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Enrollment Code (optional)
referral = true # Boolean | Referral Enrollments (optional)
dateFrom = dateFrom_example # String | Enrollment Date from (optional)
dateTo = dateTo_example # String | Enrollment Date to (optional)
wardIds =  # array[Integer] | Enrollment Wards IDs (optional)
csoIds =  # array[Integer] | Enrollment CSOs IDs (optional)
levelIds =  # array[Integer] | Enrollment Levels IDs (optional)
graduationFrom = graduationFrom_example # String | Enrollment Graduation Date from (optional)
graduationTo = graduationTo_example # String | Enrollment Graduation Date to (optional)
completedFrom = completedFrom_example # String | Enrollment Service Completion Date from (optional)
completedTo = completedTo_example # String | Enrollment Service Completion Date to (optional)

try: 
    api_response = api_instance.enrollment_page_get(code=code, referral=referral, dateFrom=dateFrom, dateTo=dateTo, wardIds=wardIds, csoIds=csoIds, levelIds=levelIds, graduationFrom=graduationFrom, graduationTo=graduationTo, completedFrom=completedFrom, completedTo=completedTo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
code
String
Enrollment Code
referral
Boolean
Referral Enrollments
dateFrom
String (dd-mm-yyyy)
Enrollment Date from
dateTo
String (dd-mm-yyyy)
Enrollment Date to
wardIds
array[Integer]
Enrollment Wards IDs
csoIds
array[Integer]
Enrollment CSOs IDs
levelIds
array[Integer]
Enrollment Levels IDs
graduationFrom
String (dd-mm-yyyy)
Enrollment Graduation Date from
graduationTo
String (dd-mm-yyyy)
Enrollment Graduation Date to
completedFrom
String (dd-mm-yyyy)
Enrollment Service Completion Date from
completedTo
String (dd-mm-yyyy)
Enrollment Service Completion Date to

Responses

Status: 200 - OK


enrollmentPost

Create or Update Enrollment, For new code will create but for existing one will update. So the main identifying component is Code


/enrollment

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/enrollment"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        EnrollmentPostOject body = ; // EnrollmentPostOject | 
        try {
            Enrollment result = apiInstance.enrollmentPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        EnrollmentPostOject body = ; // EnrollmentPostOject | 
        try {
            Enrollment result = apiInstance.enrollmentPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
EnrollmentPostOject *body = ; //  (optional)

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

[apiInstance enrollmentPostWith:body
              completionHandler: ^(Enrollment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

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

namespace Example
{
    public class enrollmentPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var body = new EnrollmentPostOject(); // EnrollmentPostOject |  (optional) 

            try
            {
                Enrollment result = apiInstance.enrollmentPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // EnrollmentPostOject | 

try {
    $result = $api_instance->enrollmentPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

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

eval { 
    my $result = $api_instance->enrollmentPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # EnrollmentPostOject |  (optional)

try: 
    api_response = api_instance.enrollment_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK


interventionIdGet

Pass Intervention Id to fetch Intervention Object


/intervention/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/intervention/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Intervention id.
        try {
            Intervention result = apiInstance.interventionIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#interventionIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Intervention id.
        try {
            Intervention result = apiInstance.interventionIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#interventionIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Intervention id.

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

[apiInstance interventionIdGetWith:id
              completionHandler: ^(Intervention output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Intervention id.

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

namespace Example
{
    public class interventionIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Intervention id.

            try
            {
                Intervention result = apiInstance.interventionIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.interventionIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Intervention id.

try {
    $result = $api_instance->interventionIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->interventionIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Intervention id.

eval { 
    my $result = $api_instance->interventionIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->interventionIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Intervention id.

try: 
    api_response = api_instance.intervention_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->interventionIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Intervention id.
Required

Responses

Status: 200 - OK


interventionListGet

List services


/intervention/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/intervention/list?categoryId=&levelId=&serviceId=&mandatory="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer categoryId = 56; // Integer | All interventions under Category Id
        Integer levelId = 56; // Integer | All interventions under Level Id
        Integer serviceId = 56; // Integer | All interventions has Service Id
        Boolean mandatory = true; // Boolean | All interventions is/not mandatory
        try {
            InterventionSimpleList result = apiInstance.interventionListGet(categoryId, levelId, serviceId, mandatory);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#interventionListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer categoryId = 56; // Integer | All interventions under Category Id
        Integer levelId = 56; // Integer | All interventions under Level Id
        Integer serviceId = 56; // Integer | All interventions has Service Id
        Boolean mandatory = true; // Boolean | All interventions is/not mandatory
        try {
            InterventionSimpleList result = apiInstance.interventionListGet(categoryId, levelId, serviceId, mandatory);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#interventionListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *categoryId = 56; // All interventions under Category Id (optional)
Integer *levelId = 56; // All interventions under Level Id (optional)
Integer *serviceId = 56; // All interventions has Service Id (optional)
Boolean *mandatory = true; // All interventions is/not mandatory (optional)

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

[apiInstance interventionListGetWith:categoryId
    levelId:levelId
    serviceId:serviceId
    mandatory:mandatory
              completionHandler: ^(InterventionSimpleList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'categoryId': 56, // {{Integer}} All interventions under Category Id
  'levelId': 56, // {{Integer}} All interventions under Level Id
  'serviceId': 56, // {{Integer}} All interventions has Service Id
  'mandatory': true // {{Boolean}} All interventions is/not mandatory
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.interventionListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class interventionListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var categoryId = 56;  // Integer | All interventions under Category Id (optional) 
            var levelId = 56;  // Integer | All interventions under Level Id (optional) 
            var serviceId = 56;  // Integer | All interventions has Service Id (optional) 
            var mandatory = true;  // Boolean | All interventions is/not mandatory (optional) 

            try
            {
                InterventionSimpleList result = apiInstance.interventionListGet(categoryId, levelId, serviceId, mandatory);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.interventionListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$categoryId = 56; // Integer | All interventions under Category Id
$levelId = 56; // Integer | All interventions under Level Id
$serviceId = 56; // Integer | All interventions has Service Id
$mandatory = true; // Boolean | All interventions is/not mandatory

try {
    $result = $api_instance->interventionListGet($categoryId, $levelId, $serviceId, $mandatory);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->interventionListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $categoryId = 56; # Integer | All interventions under Category Id
my $levelId = 56; # Integer | All interventions under Level Id
my $serviceId = 56; # Integer | All interventions has Service Id
my $mandatory = true; # Boolean | All interventions is/not mandatory

eval { 
    my $result = $api_instance->interventionListGet(categoryId => $categoryId, levelId => $levelId, serviceId => $serviceId, mandatory => $mandatory);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->interventionListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
categoryId = 56 # Integer | All interventions under Category Id (optional)
levelId = 56 # Integer | All interventions under Level Id (optional)
serviceId = 56 # Integer | All interventions has Service Id (optional)
mandatory = true # Boolean | All interventions is/not mandatory (optional)

try: 
    api_response = api_instance.intervention_list_get(categoryId=categoryId, levelId=levelId, serviceId=serviceId, mandatory=mandatory)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->interventionListGet: %s\n" % e)

Parameters

Query parameters
Name Description
categoryId
Integer
All interventions under Category Id
levelId
Integer
All interventions under Level Id
serviceId
Integer
All interventions has Service Id
mandatory
Boolean
All interventions is/not mandatory

Responses

Status: 200 - OK


interventionPageGet

List Intervention in pages


/intervention/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/intervention/page?categoryId=&levelId=&serviceId=&mandatory="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer categoryId = 56; // Integer | All interventions under Category Id
        Integer levelId = 56; // Integer | All interventions under Level Id
        Integer serviceId = 56; // Integer | All interventions has Service Id
        Boolean mandatory = true; // Boolean | All interventions is/not mandatory
        try {
            InterventionList result = apiInstance.interventionPageGet(categoryId, levelId, serviceId, mandatory);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#interventionPageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer categoryId = 56; // Integer | All interventions under Category Id
        Integer levelId = 56; // Integer | All interventions under Level Id
        Integer serviceId = 56; // Integer | All interventions has Service Id
        Boolean mandatory = true; // Boolean | All interventions is/not mandatory
        try {
            InterventionList result = apiInstance.interventionPageGet(categoryId, levelId, serviceId, mandatory);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#interventionPageGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *categoryId = 56; // All interventions under Category Id (optional)
Integer *levelId = 56; // All interventions under Level Id (optional)
Integer *serviceId = 56; // All interventions has Service Id (optional)
Boolean *mandatory = true; // All interventions is/not mandatory (optional)

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

[apiInstance interventionPageGetWith:categoryId
    levelId:levelId
    serviceId:serviceId
    mandatory:mandatory
              completionHandler: ^(InterventionList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'categoryId': 56, // {{Integer}} All interventions under Category Id
  'levelId': 56, // {{Integer}} All interventions under Level Id
  'serviceId': 56, // {{Integer}} All interventions has Service Id
  'mandatory': true // {{Boolean}} All interventions is/not mandatory
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.interventionPageGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class interventionPageGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var categoryId = 56;  // Integer | All interventions under Category Id (optional) 
            var levelId = 56;  // Integer | All interventions under Level Id (optional) 
            var serviceId = 56;  // Integer | All interventions has Service Id (optional) 
            var mandatory = true;  // Boolean | All interventions is/not mandatory (optional) 

            try
            {
                InterventionList result = apiInstance.interventionPageGet(categoryId, levelId, serviceId, mandatory);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.interventionPageGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$categoryId = 56; // Integer | All interventions under Category Id
$levelId = 56; // Integer | All interventions under Level Id
$serviceId = 56; // Integer | All interventions has Service Id
$mandatory = true; // Boolean | All interventions is/not mandatory

try {
    $result = $api_instance->interventionPageGet($categoryId, $levelId, $serviceId, $mandatory);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->interventionPageGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $categoryId = 56; # Integer | All interventions under Category Id
my $levelId = 56; # Integer | All interventions under Level Id
my $serviceId = 56; # Integer | All interventions has Service Id
my $mandatory = true; # Boolean | All interventions is/not mandatory

eval { 
    my $result = $api_instance->interventionPageGet(categoryId => $categoryId, levelId => $levelId, serviceId => $serviceId, mandatory => $mandatory);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->interventionPageGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
categoryId = 56 # Integer | All interventions under Category Id (optional)
levelId = 56 # Integer | All interventions under Level Id (optional)
serviceId = 56 # Integer | All interventions has Service Id (optional)
mandatory = true # Boolean | All interventions is/not mandatory (optional)

try: 
    api_response = api_instance.intervention_page_get(categoryId=categoryId, levelId=levelId, serviceId=serviceId, mandatory=mandatory)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->interventionPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
categoryId
Integer
All interventions under Category Id
levelId
Integer
All interventions under Level Id
serviceId
Integer
All interventions has Service Id
mandatory
Boolean
All interventions is/not mandatory

Responses

Status: 200 - OK


levelIdGet

Get level by ID


/level/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/level/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Level ID.
        try {
            level result = apiInstance.levelIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#levelIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Level ID.
        try {
            level result = apiInstance.levelIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#levelIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Level ID.

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

[apiInstance levelIdGetWith:id
              completionHandler: ^(level output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Level ID.

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

namespace Example
{
    public class levelIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Level ID.

            try
            {
                level result = apiInstance.levelIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.levelIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Level ID.

try {
    $result = $api_instance->levelIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->levelIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Level ID.

eval { 
    my $result = $api_instance->levelIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->levelIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Level ID.

try: 
    api_response = api_instance.level_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->levelIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Level ID.
Required

Responses

Status: 200 - OK


levelListGet

List all levels


/level/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/level/list?startAgeFrom=&startAgeTo=&endAgeFrom=&endAgeTo=&name=&categoryId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer startAgeFrom = 56; // Integer | Age from, start point
        Integer startAgeTo = 56; // Integer | Age from, end point
        Integer endAgeFrom = 56; // Integer | End Age from, start point
        Integer endAgeTo = 56; // Integer | End Age to, end point
        String name = name_example; // String | Level name
        String categoryId = categoryId_example; // String | Supported Category ID (All levels under category)
        try {
            levelSimpleList result = apiInstance.levelListGet(startAgeFrom, startAgeTo, endAgeFrom, endAgeTo, name, categoryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#levelListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer startAgeFrom = 56; // Integer | Age from, start point
        Integer startAgeTo = 56; // Integer | Age from, end point
        Integer endAgeFrom = 56; // Integer | End Age from, start point
        Integer endAgeTo = 56; // Integer | End Age to, end point
        String name = name_example; // String | Level name
        String categoryId = categoryId_example; // String | Supported Category ID (All levels under category)
        try {
            levelSimpleList result = apiInstance.levelListGet(startAgeFrom, startAgeTo, endAgeFrom, endAgeTo, name, categoryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#levelListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *startAgeFrom = 56; // Age from, start point (optional)
Integer *startAgeTo = 56; // Age from, end point (optional)
Integer *endAgeFrom = 56; // End Age from, start point (optional)
Integer *endAgeTo = 56; // End Age to, end point (optional)
String *name = name_example; // Level name (optional)
String *categoryId = categoryId_example; // Supported Category ID (All levels under category) (optional)

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

[apiInstance levelListGetWith:startAgeFrom
    startAgeTo:startAgeTo
    endAgeFrom:endAgeFrom
    endAgeTo:endAgeTo
    name:name
    categoryId:categoryId
              completionHandler: ^(levelSimpleList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'startAgeFrom': 56, // {{Integer}} Age from, start point
  'startAgeTo': 56, // {{Integer}} Age from, end point
  'endAgeFrom': 56, // {{Integer}} End Age from, start point
  'endAgeTo': 56, // {{Integer}} End Age to, end point
  'name': name_example, // {{String}} Level name
  'categoryId': categoryId_example // {{String}} Supported Category ID (All levels under category)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.levelListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class levelListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var startAgeFrom = 56;  // Integer | Age from, start point (optional) 
            var startAgeTo = 56;  // Integer | Age from, end point (optional) 
            var endAgeFrom = 56;  // Integer | End Age from, start point (optional) 
            var endAgeTo = 56;  // Integer | End Age to, end point (optional) 
            var name = name_example;  // String | Level name (optional) 
            var categoryId = categoryId_example;  // String | Supported Category ID (All levels under category) (optional) 

            try
            {
                levelSimpleList result = apiInstance.levelListGet(startAgeFrom, startAgeTo, endAgeFrom, endAgeTo, name, categoryId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.levelListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$startAgeFrom = 56; // Integer | Age from, start point
$startAgeTo = 56; // Integer | Age from, end point
$endAgeFrom = 56; // Integer | End Age from, start point
$endAgeTo = 56; // Integer | End Age to, end point
$name = name_example; // String | Level name
$categoryId = categoryId_example; // String | Supported Category ID (All levels under category)

try {
    $result = $api_instance->levelListGet($startAgeFrom, $startAgeTo, $endAgeFrom, $endAgeTo, $name, $categoryId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->levelListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $startAgeFrom = 56; # Integer | Age from, start point
my $startAgeTo = 56; # Integer | Age from, end point
my $endAgeFrom = 56; # Integer | End Age from, start point
my $endAgeTo = 56; # Integer | End Age to, end point
my $name = name_example; # String | Level name
my $categoryId = categoryId_example; # String | Supported Category ID (All levels under category)

eval { 
    my $result = $api_instance->levelListGet(startAgeFrom => $startAgeFrom, startAgeTo => $startAgeTo, endAgeFrom => $endAgeFrom, endAgeTo => $endAgeTo, name => $name, categoryId => $categoryId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->levelListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
startAgeFrom = 56 # Integer | Age from, start point (optional)
startAgeTo = 56 # Integer | Age from, end point (optional)
endAgeFrom = 56 # Integer | End Age from, start point (optional)
endAgeTo = 56 # Integer | End Age to, end point (optional)
name = name_example # String | Level name (optional)
categoryId = categoryId_example # String | Supported Category ID (All levels under category) (optional)

try: 
    api_response = api_instance.level_list_get(startAgeFrom=startAgeFrom, startAgeTo=startAgeTo, endAgeFrom=endAgeFrom, endAgeTo=endAgeTo, name=name, categoryId=categoryId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->levelListGet: %s\n" % e)

Parameters

Query parameters
Name Description
startAgeFrom
Integer
Age from, start point
startAgeTo
Integer
Age from, end point
endAgeFrom
Integer
End Age from, start point
endAgeTo
Integer
End Age to, end point
name
String
Level name
categoryId
String
Supported Category ID (All levels under category)

Responses

Status: 200 - OK


levelNameNameGet

Get level by Name


/level/name/{name}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/level/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Pass Level Name.
        try {
            level result = apiInstance.levelNameNameGet(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#levelNameNameGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Pass Level Name.
        try {
            level result = apiInstance.levelNameNameGet(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#levelNameNameGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *name = name_example; // Pass Level Name.

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

[apiInstance levelNameNameGetWith:name
              completionHandler: ^(level output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var name = name_example; // {{String}} Pass Level Name.

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

namespace Example
{
    public class levelNameNameGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var name = name_example;  // String | Pass Level Name.

            try
            {
                level result = apiInstance.levelNameNameGet(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.levelNameNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$name = name_example; // String | Pass Level Name.

try {
    $result = $api_instance->levelNameNameGet($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->levelNameNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $name = name_example; # String | Pass Level Name.

eval { 
    my $result = $api_instance->levelNameNameGet(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->levelNameNameGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
name = name_example # String | Pass Level Name.

try: 
    api_response = api_instance.level_name_name_get(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->levelNameNameGet: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Pass Level Name.
Required

Responses

Status: 200 - OK


needBulkPost

Post Need in bulk.


/need/bulk

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/need/bulk"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        array[NeedCreate] body = ; // array[NeedCreate] | 
        try {
            NeedList result = apiInstance.needBulkPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needBulkPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        array[NeedCreate] body = ; // array[NeedCreate] | 
        try {
            NeedList result = apiInstance.needBulkPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needBulkPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
array[NeedCreate] *body = ; //  (optional)

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

[apiInstance needBulkPostWith:body
              completionHandler: ^(NeedList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'body':  // {{array[NeedCreate]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.needBulkPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class needBulkPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var body = new array[NeedCreate](); // array[NeedCreate] |  (optional) 

            try
            {
                NeedList result = apiInstance.needBulkPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.needBulkPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // array[NeedCreate] | 

try {
    $result = $api_instance->needBulkPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->needBulkPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = [WWW::SwaggerClient::Object::array[NeedCreate]->new()]; # array[NeedCreate] | 

eval { 
    my $result = $api_instance->needBulkPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->needBulkPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # array[NeedCreate] |  (optional)

try: 
    api_response = api_instance.need_bulk_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->needBulkPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK


needIdDelete

Delete Need


/need/{id}/

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Basic [[basicHash]]"\
"http://localhost:8080/api/v1/dames/need/{id}/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Need Id.
        try {
            apiInstance.needIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Need Id.
        try {
            apiInstance.needIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Need Id.

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

[apiInstance needIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Need Id.

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

namespace Example
{
    public class needIdDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Need Id.

            try
            {
                apiInstance.needIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.needIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Need Id.

try {
    $api_instance->needIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->needIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Need Id.

eval { 
    $api_instance->needIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->needIdDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Need Id.

try: 
    api_instance.need_id_delete(id)
except ApiException as e:
    print("Exception when calling DefaultApi->needIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Need Id.
Required

Responses

Status: 202 - OK


needIdGet

Get Need by ID


/need/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/need/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Need ID.
        try {
            Need result = apiInstance.needIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Need ID.
        try {
            Need result = apiInstance.needIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Need ID.

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

[apiInstance needIdGetWith:id
              completionHandler: ^(Need output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Need ID.

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

namespace Example
{
    public class needIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Need ID.

            try
            {
                Need result = apiInstance.needIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.needIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Need ID.

try {
    $result = $api_instance->needIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->needIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Need ID.

eval { 
    my $result = $api_instance->needIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->needIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Need ID.

try: 
    api_response = api_instance.need_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->needIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Need ID.
Required

Responses

Status: 200 - OK


needListGet

Fetch all needs


/need/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/need/list?dateFrom=&dateTo=&enrollmentCode=&serviceId=&resolved="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where need recognised
        String dateTo = dateTo_example; // String | Date to where need recognised
        String enrollmentCode = enrollmentCode_example; // String | Enrollment code with need
        Integer serviceId = 56; // Integer | Needs with service
        Boolean resolved = true; // Boolean | Needs which are resolved or not
        try {
            NeedList result = apiInstance.needListGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where need recognised
        String dateTo = dateTo_example; // String | Date to where need recognised
        String enrollmentCode = enrollmentCode_example; // String | Enrollment code with need
        Integer serviceId = 56; // Integer | Needs with service
        Boolean resolved = true; // Boolean | Needs which are resolved or not
        try {
            NeedList result = apiInstance.needListGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Date from where need recognised (optional)
String *dateTo = dateTo_example; // Date to where need recognised (optional)
String *enrollmentCode = enrollmentCode_example; // Enrollment code with need (optional)
Integer *serviceId = 56; // Needs with service (optional)
Boolean *resolved = true; // Needs which are resolved or not (optional)

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

[apiInstance needListGetWith:dateFrom
    dateTo:dateTo
    enrollmentCode:enrollmentCode
    serviceId:serviceId
    resolved:resolved
              completionHandler: ^(NeedList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Date from where need recognised
  'dateTo': dateTo_example, // {{String}} Date to where need recognised
  'enrollmentCode': enrollmentCode_example, // {{String}} Enrollment code with need
  'serviceId': 56, // {{Integer}} Needs with service
  'resolved': true // {{Boolean}} Needs which are resolved or not
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.needListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class needListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Date from where need recognised (optional) 
            var dateTo = dateTo_example;  // String | Date to where need recognised (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Enrollment code with need (optional) 
            var serviceId = 56;  // Integer | Needs with service (optional) 
            var resolved = true;  // Boolean | Needs which are resolved or not (optional) 

            try
            {
                NeedList result = apiInstance.needListGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.needListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Date from where need recognised
$dateTo = dateTo_example; // String | Date to where need recognised
$enrollmentCode = enrollmentCode_example; // String | Enrollment code with need
$serviceId = 56; // Integer | Needs with service
$resolved = true; // Boolean | Needs which are resolved or not

try {
    $result = $api_instance->needListGet($dateFrom, $dateTo, $enrollmentCode, $serviceId, $resolved);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->needListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Date from where need recognised
my $dateTo = dateTo_example; # String | Date to where need recognised
my $enrollmentCode = enrollmentCode_example; # String | Enrollment code with need
my $serviceId = 56; # Integer | Needs with service
my $resolved = true; # Boolean | Needs which are resolved or not

eval { 
    my $result = $api_instance->needListGet(dateFrom => $dateFrom, dateTo => $dateTo, enrollmentCode => $enrollmentCode, serviceId => $serviceId, resolved => $resolved);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->needListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Date from where need recognised (optional)
dateTo = dateTo_example # String | Date to where need recognised (optional)
enrollmentCode = enrollmentCode_example # String | Enrollment code with need (optional)
serviceId = 56 # Integer | Needs with service (optional)
resolved = true # Boolean | Needs which are resolved or not (optional)

try: 
    api_response = api_instance.need_list_get(dateFrom=dateFrom, dateTo=dateTo, enrollmentCode=enrollmentCode, serviceId=serviceId, resolved=resolved)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->needListGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Date from where need recognised
dateTo
String (dd-mm-yyyy)
Date to where need recognised
enrollmentCode
String
Enrollment code with need
serviceId
Integer
Needs with service
resolved
Boolean
Needs which are resolved or not

Responses

Status: 200 - OK


needPageGet

Fetch all needs in pages


/need/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/need/page?dateFrom=&dateTo=&enrollmentCode=&serviceId=&resolved="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where need recognised
        String dateTo = dateTo_example; // String | Date to where need recognised
        String enrollmentCode = enrollmentCode_example; // String | Enrollment code with need
        Integer serviceId = 56; // Integer | Needs with service
        Boolean resolved = true; // Boolean | Needs which are resolved or not
        try {
            NeedListWithPages result = apiInstance.needPageGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needPageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where need recognised
        String dateTo = dateTo_example; // String | Date to where need recognised
        String enrollmentCode = enrollmentCode_example; // String | Enrollment code with need
        Integer serviceId = 56; // Integer | Needs with service
        Boolean resolved = true; // Boolean | Needs which are resolved or not
        try {
            NeedListWithPages result = apiInstance.needPageGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needPageGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Date from where need recognised (optional)
String *dateTo = dateTo_example; // Date to where need recognised (optional)
String *enrollmentCode = enrollmentCode_example; // Enrollment code with need (optional)
Integer *serviceId = 56; // Needs with service (optional)
Boolean *resolved = true; // Needs which are resolved or not (optional)

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

[apiInstance needPageGetWith:dateFrom
    dateTo:dateTo
    enrollmentCode:enrollmentCode
    serviceId:serviceId
    resolved:resolved
              completionHandler: ^(NeedListWithPages output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Date from where need recognised
  'dateTo': dateTo_example, // {{String}} Date to where need recognised
  'enrollmentCode': enrollmentCode_example, // {{String}} Enrollment code with need
  'serviceId': 56, // {{Integer}} Needs with service
  'resolved': true // {{Boolean}} Needs which are resolved or not
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.needPageGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class needPageGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Date from where need recognised (optional) 
            var dateTo = dateTo_example;  // String | Date to where need recognised (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Enrollment code with need (optional) 
            var serviceId = 56;  // Integer | Needs with service (optional) 
            var resolved = true;  // Boolean | Needs which are resolved or not (optional) 

            try
            {
                NeedListWithPages result = apiInstance.needPageGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.needPageGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Date from where need recognised
$dateTo = dateTo_example; // String | Date to where need recognised
$enrollmentCode = enrollmentCode_example; // String | Enrollment code with need
$serviceId = 56; // Integer | Needs with service
$resolved = true; // Boolean | Needs which are resolved or not

try {
    $result = $api_instance->needPageGet($dateFrom, $dateTo, $enrollmentCode, $serviceId, $resolved);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->needPageGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Date from where need recognised
my $dateTo = dateTo_example; # String | Date to where need recognised
my $enrollmentCode = enrollmentCode_example; # String | Enrollment code with need
my $serviceId = 56; # Integer | Needs with service
my $resolved = true; # Boolean | Needs which are resolved or not

eval { 
    my $result = $api_instance->needPageGet(dateFrom => $dateFrom, dateTo => $dateTo, enrollmentCode => $enrollmentCode, serviceId => $serviceId, resolved => $resolved);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->needPageGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Date from where need recognised (optional)
dateTo = dateTo_example # String | Date to where need recognised (optional)
enrollmentCode = enrollmentCode_example # String | Enrollment code with need (optional)
serviceId = 56 # Integer | Needs with service (optional)
resolved = true # Boolean | Needs which are resolved or not (optional)

try: 
    api_response = api_instance.need_page_get(dateFrom=dateFrom, dateTo=dateTo, enrollmentCode=enrollmentCode, serviceId=serviceId, resolved=resolved)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->needPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Date from where need recognised
dateTo
String (dd-mm-yyyy)
Date to where need recognised
enrollmentCode
String
Enrollment code with need
serviceId
Integer
Needs with service
resolved
Boolean
Needs which are resolved or not

Responses

Status: 200 - OK


needPost

Post Need.


/need

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/need"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        NeedCreate body = ; // NeedCreate | 
        try {
            Need result = apiInstance.needPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        NeedCreate body = ; // NeedCreate | 
        try {
            Need result = apiInstance.needPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#needPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
NeedCreate *body = ; //  (optional)

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

[apiInstance needPostWith:body
              completionHandler: ^(Need output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

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

namespace Example
{
    public class needPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var body = new NeedCreate(); // NeedCreate |  (optional) 

            try
            {
                Need result = apiInstance.needPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.needPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // NeedCreate | 

try {
    $result = $api_instance->needPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->needPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

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

eval { 
    my $result = $api_instance->needPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->needPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # NeedCreate |  (optional)

try: 
    api_response = api_instance.need_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->needPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK


partnerIdDelete

Delete partner


/partner/{id}/

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Basic [[basicHash]]"\
"http://localhost:8080/api/v1/dames/partner/{id}/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass partner Id.
        try {
            apiInstance.partnerIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass partner Id.
        try {
            apiInstance.partnerIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass partner Id.

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

[apiInstance partnerIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass partner Id.

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

namespace Example
{
    public class partnerIdDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass partner Id.

            try
            {
                apiInstance.partnerIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.partnerIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass partner Id.

try {
    $api_instance->partnerIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->partnerIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass partner Id.

eval { 
    $api_instance->partnerIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->partnerIdDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass partner Id.

try: 
    api_instance.partner_id_delete(id)
except ApiException as e:
    print("Exception when calling DefaultApi->partnerIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass partner Id.
Required

Responses

Status: 202 - OK


partnerIdGet

Get Partner by ID


/partner/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/partner/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Partner ID.
        try {
            Partner result = apiInstance.partnerIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Partner ID.
        try {
            Partner result = apiInstance.partnerIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Partner ID.

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

[apiInstance partnerIdGetWith:id
              completionHandler: ^(Partner output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Partner ID.

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

namespace Example
{
    public class partnerIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Partner ID.

            try
            {
                Partner result = apiInstance.partnerIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.partnerIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Partner ID.

try {
    $result = $api_instance->partnerIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->partnerIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Partner ID.

eval { 
    my $result = $api_instance->partnerIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->partnerIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Partner ID.

try: 
    api_response = api_instance.partner_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->partnerIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Partner ID.
Required

Responses

Status: 200 - OK


partnerListGet

Fetch all partners


/partner/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/partner/list?name=&code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Partner name
        String code = code_example; // String | Partner code
        try {
            PartnerList result = apiInstance.partnerListGet(name, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Partner name
        String code = code_example; // String | Partner code
        try {
            PartnerList result = apiInstance.partnerListGet(name, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *name = name_example; // Partner name (optional)
String *code = code_example; // Partner code (optional)

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

[apiInstance partnerListGetWith:name
    code:code
              completionHandler: ^(PartnerList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'name': name_example, // {{String}} Partner name
  'code': code_example // {{String}} Partner code
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.partnerListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class partnerListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var name = name_example;  // String | Partner name (optional) 
            var code = code_example;  // String | Partner code (optional) 

            try
            {
                PartnerList result = apiInstance.partnerListGet(name, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.partnerListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$name = name_example; // String | Partner name
$code = code_example; // String | Partner code

try {
    $result = $api_instance->partnerListGet($name, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->partnerListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $name = name_example; # String | Partner name
my $code = code_example; # String | Partner code

eval { 
    my $result = $api_instance->partnerListGet(name => $name, code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->partnerListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
name = name_example # String | Partner name (optional)
code = code_example # String | Partner code (optional)

try: 
    api_response = api_instance.partner_list_get(name=name, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->partnerListGet: %s\n" % e)

Parameters

Query parameters
Name Description
name
String
Partner name
code
String
Partner code

Responses

Status: 200 - OK


partnerPageGet

Fetch all partners in pages


/partner/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/partner/page?name=&code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Partner name
        String code = code_example; // String | Partner code
        try {
            PartnerListWithPages result = apiInstance.partnerPageGet(name, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerPageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Partner name
        String code = code_example; // String | Partner code
        try {
            PartnerListWithPages result = apiInstance.partnerPageGet(name, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerPageGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *name = name_example; // Partner name (optional)
String *code = code_example; // Partner code (optional)

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

[apiInstance partnerPageGetWith:name
    code:code
              completionHandler: ^(PartnerListWithPages output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'name': name_example, // {{String}} Partner name
  'code': code_example // {{String}} Partner code
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.partnerPageGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class partnerPageGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var name = name_example;  // String | Partner name (optional) 
            var code = code_example;  // String | Partner code (optional) 

            try
            {
                PartnerListWithPages result = apiInstance.partnerPageGet(name, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.partnerPageGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$name = name_example; // String | Partner name
$code = code_example; // String | Partner code

try {
    $result = $api_instance->partnerPageGet($name, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->partnerPageGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $name = name_example; # String | Partner name
my $code = code_example; # String | Partner code

eval { 
    my $result = $api_instance->partnerPageGet(name => $name, code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->partnerPageGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
name = name_example # String | Partner name (optional)
code = code_example # String | Partner code (optional)

try: 
    api_response = api_instance.partner_page_get(name=name, code=code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->partnerPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
name
String
Partner name
code
String
Partner code

Responses

Status: 200 - OK


partnerPartnerIdCsoIdGet

Add Partner CSO


/partner/{partnerId}/{csoId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/partner/{partnerId}/{csoId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer partnerId = 56; // Integer | Pass Partner ID.
        Integer csoId = 56; // Integer | Pass CSO ID.
        try {
            Partner result = apiInstance.partnerPartnerIdCsoIdGet(partnerId, csoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerPartnerIdCsoIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer partnerId = 56; // Integer | Pass Partner ID.
        Integer csoId = 56; // Integer | Pass CSO ID.
        try {
            Partner result = apiInstance.partnerPartnerIdCsoIdGet(partnerId, csoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerPartnerIdCsoIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *partnerId = 56; // Pass Partner ID.
Integer *csoId = 56; // Pass CSO ID.

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

[apiInstance partnerPartnerIdCsoIdGetWith:partnerId
    csoId:csoId
              completionHandler: ^(Partner output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var partnerId = 56; // {{Integer}} Pass Partner ID.
var csoId = 56; // {{Integer}} Pass CSO ID.

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

namespace Example
{
    public class partnerPartnerIdCsoIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var partnerId = 56;  // Integer | Pass Partner ID.
            var csoId = 56;  // Integer | Pass CSO ID.

            try
            {
                Partner result = apiInstance.partnerPartnerIdCsoIdGet(partnerId, csoId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.partnerPartnerIdCsoIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$partnerId = 56; // Integer | Pass Partner ID.
$csoId = 56; // Integer | Pass CSO ID.

try {
    $result = $api_instance->partnerPartnerIdCsoIdGet($partnerId, $csoId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->partnerPartnerIdCsoIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $partnerId = 56; # Integer | Pass Partner ID.
my $csoId = 56; # Integer | Pass CSO ID.

eval { 
    my $result = $api_instance->partnerPartnerIdCsoIdGet(partnerId => $partnerId, csoId => $csoId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->partnerPartnerIdCsoIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
partnerId = 56 # Integer | Pass Partner ID.
csoId = 56 # Integer | Pass CSO ID.

try: 
    api_response = api_instance.partner_partner_id_cso_id_get(partnerId, csoId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->partnerPartnerIdCsoIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
partnerId*
Integer
Pass Partner ID.
Required
csoId*
Integer
Pass CSO ID.
Required

Responses

Status: 200 - OK


partnerPost

Post partner.


/partner

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/partner"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        PartnerCreate body = ; // PartnerCreate | 
        try {
            Partner result = apiInstance.partnerPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        PartnerCreate body = ; // PartnerCreate | 
        try {
            Partner result = apiInstance.partnerPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#partnerPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
PartnerCreate *body = ; //  (optional)

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

[apiInstance partnerPostWith:body
              completionHandler: ^(Partner output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

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

namespace Example
{
    public class partnerPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var body = new PartnerCreate(); // PartnerCreate |  (optional) 

            try
            {
                Partner result = apiInstance.partnerPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.partnerPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // PartnerCreate | 

try {
    $result = $api_instance->partnerPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->partnerPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

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

eval { 
    my $result = $api_instance->partnerPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->partnerPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # PartnerCreate |  (optional)

try: 
    api_response = api_instance.partner_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->partnerPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK


periodIdGet

Get period ID


/period/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/period/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass period ID.
        try {
            PeriodObject result = apiInstance.periodIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#periodIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass period ID.
        try {
            PeriodObject result = apiInstance.periodIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#periodIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass period ID.

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

[apiInstance periodIdGetWith:id
              completionHandler: ^(PeriodObject output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass period ID.

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

namespace Example
{
    public class periodIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass period ID.

            try
            {
                PeriodObject result = apiInstance.periodIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.periodIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass period ID.

try {
    $result = $api_instance->periodIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->periodIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass period ID.

eval { 
    my $result = $api_instance->periodIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->periodIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass period ID.

try: 
    api_response = api_instance.period_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->periodIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass period ID.
Required

Responses

Status: 200 - OK


periodListGet

List all periods


/period/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/period/list?startDateFrom=&startDateTo=&endDateFrom=&endDateTo=&name=&closed="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String startDateFrom = startDateFrom_example; // String | Period start date, start point
        String startDateTo = startDateTo_example; // String | Period start date, end point
        String endDateFrom = endDateFrom_example; // String | Period end date, start point
        String endDateTo = endDateTo_example; // String | Period end date, end point
        String name = name_example; // String | Period name
        Boolean closed = true; // Boolean | Is period closed/ fetch all period based on is closed flag
        try {
            ListPeriods result = apiInstance.periodListGet(startDateFrom, startDateTo, endDateFrom, endDateTo, name, closed);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#periodListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String startDateFrom = startDateFrom_example; // String | Period start date, start point
        String startDateTo = startDateTo_example; // String | Period start date, end point
        String endDateFrom = endDateFrom_example; // String | Period end date, start point
        String endDateTo = endDateTo_example; // String | Period end date, end point
        String name = name_example; // String | Period name
        Boolean closed = true; // Boolean | Is period closed/ fetch all period based on is closed flag
        try {
            ListPeriods result = apiInstance.periodListGet(startDateFrom, startDateTo, endDateFrom, endDateTo, name, closed);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#periodListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *startDateFrom = startDateFrom_example; // Period start date, start point (optional)
String *startDateTo = startDateTo_example; // Period start date, end point (optional)
String *endDateFrom = endDateFrom_example; // Period end date, start point (optional)
String *endDateTo = endDateTo_example; // Period end date, end point (optional)
String *name = name_example; // Period name (optional)
Boolean *closed = true; // Is period closed/ fetch all period based on is closed flag (optional)

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

[apiInstance periodListGetWith:startDateFrom
    startDateTo:startDateTo
    endDateFrom:endDateFrom
    endDateTo:endDateTo
    name:name
    closed:closed
              completionHandler: ^(ListPeriods output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'startDateFrom': startDateFrom_example, // {{String}} Period start date, start point
  'startDateTo': startDateTo_example, // {{String}} Period start date, end point
  'endDateFrom': endDateFrom_example, // {{String}} Period end date, start point
  'endDateTo': endDateTo_example, // {{String}} Period end date, end point
  'name': name_example, // {{String}} Period name
  'closed': true // {{Boolean}} Is period closed/ fetch all period based on is closed flag
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.periodListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class periodListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var startDateFrom = startDateFrom_example;  // String | Period start date, start point (optional) 
            var startDateTo = startDateTo_example;  // String | Period start date, end point (optional) 
            var endDateFrom = endDateFrom_example;  // String | Period end date, start point (optional) 
            var endDateTo = endDateTo_example;  // String | Period end date, end point (optional) 
            var name = name_example;  // String | Period name (optional) 
            var closed = true;  // Boolean | Is period closed/ fetch all period based on is closed flag (optional) 

            try
            {
                ListPeriods result = apiInstance.periodListGet(startDateFrom, startDateTo, endDateFrom, endDateTo, name, closed);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.periodListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$startDateFrom = startDateFrom_example; // String | Period start date, start point
$startDateTo = startDateTo_example; // String | Period start date, end point
$endDateFrom = endDateFrom_example; // String | Period end date, start point
$endDateTo = endDateTo_example; // String | Period end date, end point
$name = name_example; // String | Period name
$closed = true; // Boolean | Is period closed/ fetch all period based on is closed flag

try {
    $result = $api_instance->periodListGet($startDateFrom, $startDateTo, $endDateFrom, $endDateTo, $name, $closed);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->periodListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $startDateFrom = startDateFrom_example; # String | Period start date, start point
my $startDateTo = startDateTo_example; # String | Period start date, end point
my $endDateFrom = endDateFrom_example; # String | Period end date, start point
my $endDateTo = endDateTo_example; # String | Period end date, end point
my $name = name_example; # String | Period name
my $closed = true; # Boolean | Is period closed/ fetch all period based on is closed flag

eval { 
    my $result = $api_instance->periodListGet(startDateFrom => $startDateFrom, startDateTo => $startDateTo, endDateFrom => $endDateFrom, endDateTo => $endDateTo, name => $name, closed => $closed);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->periodListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
startDateFrom = startDateFrom_example # String | Period start date, start point (optional)
startDateTo = startDateTo_example # String | Period start date, end point (optional)
endDateFrom = endDateFrom_example # String | Period end date, start point (optional)
endDateTo = endDateTo_example # String | Period end date, end point (optional)
name = name_example # String | Period name (optional)
closed = true # Boolean | Is period closed/ fetch all period based on is closed flag (optional)

try: 
    api_response = api_instance.period_list_get(startDateFrom=startDateFrom, startDateTo=startDateTo, endDateFrom=endDateFrom, endDateTo=endDateTo, name=name, closed=closed)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->periodListGet: %s\n" % e)

Parameters

Query parameters
Name Description
startDateFrom
String (date("dd-mm-yyyy"))
Period start date, start point
startDateTo
String (date("dd-mm-yyyy"))
Period start date, end point
endDateFrom
String (date("dd-mm-yyyy"))
Period end date, start point
endDateTo
String (date("dd-mm-yyyy"))
Period end date, end point
name
String
Period name
closed
Boolean
Is period closed/ fetch all period based on is closed flag

Responses

Status: 200 - OK


psnuCodeCodeGet

Pass PSNU CODE to fetch PSNU Object


/psnu/code/{code}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/psnu/code/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass PSNU code.
        try {
            PSNU result = apiInstance.psnuCodeCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#psnuCodeCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass PSNU code.
        try {
            PSNU result = apiInstance.psnuCodeCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#psnuCodeCodeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Pass PSNU code.

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

[apiInstance psnuCodeCodeGetWith:code
              completionHandler: ^(PSNU output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var code = code_example; // {{String}} Pass PSNU code.

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

namespace Example
{
    public class psnuCodeCodeGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Pass PSNU code.

            try
            {
                PSNU result = apiInstance.psnuCodeCodeGet(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.psnuCodeCodeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Pass PSNU code.

try {
    $result = $api_instance->psnuCodeCodeGet($code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->psnuCodeCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Pass PSNU code.

eval { 
    my $result = $api_instance->psnuCodeCodeGet(code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->psnuCodeCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Pass PSNU code.

try: 
    api_response = api_instance.psnu_code_code_get(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->psnuCodeCodeGet: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Pass PSNU code.
Required

Responses

Status: 200 - OK


psnuIdGet

Pass PSNU Id to fetch PSNU Object


/psnu/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/psnu/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass PSNU id.
        try {
            PSNU result = apiInstance.psnuIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#psnuIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass PSNU id.
        try {
            PSNU result = apiInstance.psnuIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#psnuIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass PSNU id.

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

[apiInstance psnuIdGetWith:id
              completionHandler: ^(PSNU output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass PSNU id.

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

namespace Example
{
    public class psnuIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass PSNU id.

            try
            {
                PSNU result = apiInstance.psnuIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.psnuIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass PSNU id.

try {
    $result = $api_instance->psnuIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->psnuIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass PSNU id.

eval { 
    my $result = $api_instance->psnuIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->psnuIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass PSNU id.

try: 
    api_response = api_instance.psnu_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->psnuIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass PSNU id.
Required

Responses

Status: 200 - OK


psnuListGet

Find all PSNU


/psnu/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/psnu/list?name=&code=&snuId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Name of PSNU
        String code = code_example; // String | PSNU Code
        Integer snuId = 56; // Integer | SNU where PSNU belongs
        try {
            PSNUSimpleList result = apiInstance.psnuListGet(name, code, snuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#psnuListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Name of PSNU
        String code = code_example; // String | PSNU Code
        Integer snuId = 56; // Integer | SNU where PSNU belongs
        try {
            PSNUSimpleList result = apiInstance.psnuListGet(name, code, snuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#psnuListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *name = name_example; // Name of PSNU (optional)
String *code = code_example; // PSNU Code (optional)
Integer *snuId = 56; // SNU where PSNU belongs (optional)

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

[apiInstance psnuListGetWith:name
    code:code
    snuId:snuId
              completionHandler: ^(PSNUSimpleList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'name': name_example, // {{String}} Name of PSNU
  'code': code_example, // {{String}} PSNU Code
  'snuId': 56 // {{Integer}} SNU where PSNU belongs
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.psnuListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class psnuListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var name = name_example;  // String | Name of PSNU (optional) 
            var code = code_example;  // String | PSNU Code (optional) 
            var snuId = 56;  // Integer | SNU where PSNU belongs (optional) 

            try
            {
                PSNUSimpleList result = apiInstance.psnuListGet(name, code, snuId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.psnuListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$name = name_example; // String | Name of PSNU
$code = code_example; // String | PSNU Code
$snuId = 56; // Integer | SNU where PSNU belongs

try {
    $result = $api_instance->psnuListGet($name, $code, $snuId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->psnuListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $name = name_example; # String | Name of PSNU
my $code = code_example; # String | PSNU Code
my $snuId = 56; # Integer | SNU where PSNU belongs

eval { 
    my $result = $api_instance->psnuListGet(name => $name, code => $code, snuId => $snuId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->psnuListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
name = name_example # String | Name of PSNU (optional)
code = code_example # String | PSNU Code (optional)
snuId = 56 # Integer | SNU where PSNU belongs (optional)

try: 
    api_response = api_instance.psnu_list_get(name=name, code=code, snuId=snuId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->psnuListGet: %s\n" % e)

Parameters

Query parameters
Name Description
name
String
Name of PSNU
code
String
PSNU Code
snuId
Integer
SNU where PSNU belongs

Responses

Status: 200 - OK


screeningCountGet

Count screens from query


/screening/count

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/text"\
"http://localhost:8080/api/v1/dames/screening/count?dateFrom=&dateTo=&dateOfBirthFrom=&dateOfBirthTo=&eligible=&wardId=&enrollmentCode=&csoId=&psnuId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where screen done
        String dateTo = dateTo_example; // String | Date to where screen done
        String dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
        String dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
        Boolean eligible = true; // Boolean | Pull all candidates who eligible or not
        Integer wardId = 56; // Integer | Pull all candidates under ward
        String enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
        Integer csoId = 56; // Integer | Pull all candidates under cso
        Integer psnuId = 56; // Integer | Pull all candidates under psnu
        try {
            'Integer' result = apiInstance.screeningCountGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningCountGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where screen done
        String dateTo = dateTo_example; // String | Date to where screen done
        String dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
        String dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
        Boolean eligible = true; // Boolean | Pull all candidates who eligible or not
        Integer wardId = 56; // Integer | Pull all candidates under ward
        String enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
        Integer csoId = 56; // Integer | Pull all candidates under cso
        Integer psnuId = 56; // Integer | Pull all candidates under psnu
        try {
            'Integer' result = apiInstance.screeningCountGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningCountGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Date from where screen done (optional)
String *dateTo = dateTo_example; // Date to where screen done (optional)
String *dateOfBirthFrom = dateOfBirthFrom_example; // Candidate Date of birth start range (optional)
String *dateOfBirthTo = dateOfBirthTo_example; // Candidate Date of birth end range (optional)
Boolean *eligible = true; // Pull all candidates who eligible or not (optional)
Integer *wardId = 56; // Pull all candidates under ward (optional)
String *enrollmentCode = enrollmentCode_example; // Pull candidate with enrollment code (optional)
Integer *csoId = 56; // Pull all candidates under cso (optional)
Integer *psnuId = 56; // Pull all candidates under psnu (optional)

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

[apiInstance screeningCountGetWith:dateFrom
    dateTo:dateTo
    dateOfBirthFrom:dateOfBirthFrom
    dateOfBirthTo:dateOfBirthTo
    eligible:eligible
    wardId:wardId
    enrollmentCode:enrollmentCode
    csoId:csoId
    psnuId:psnuId
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Date from where screen done
  'dateTo': dateTo_example, // {{String}} Date to where screen done
  'dateOfBirthFrom': dateOfBirthFrom_example, // {{String}} Candidate Date of birth start range
  'dateOfBirthTo': dateOfBirthTo_example, // {{String}} Candidate Date of birth end range
  'eligible': true, // {{Boolean}} Pull all candidates who eligible or not
  'wardId': 56, // {{Integer}} Pull all candidates under ward
  'enrollmentCode': enrollmentCode_example, // {{String}} Pull candidate with enrollment code
  'csoId': 56, // {{Integer}} Pull all candidates under cso
  'psnuId': 56 // {{Integer}} Pull all candidates under psnu
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.screeningCountGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class screeningCountGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Date from where screen done (optional) 
            var dateTo = dateTo_example;  // String | Date to where screen done (optional) 
            var dateOfBirthFrom = dateOfBirthFrom_example;  // String | Candidate Date of birth start range (optional) 
            var dateOfBirthTo = dateOfBirthTo_example;  // String | Candidate Date of birth end range (optional) 
            var eligible = true;  // Boolean | Pull all candidates who eligible or not (optional) 
            var wardId = 56;  // Integer | Pull all candidates under ward (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Pull candidate with enrollment code (optional) 
            var csoId = 56;  // Integer | Pull all candidates under cso (optional) 
            var psnuId = 56;  // Integer | Pull all candidates under psnu (optional) 

            try
            {
                'Integer' result = apiInstance.screeningCountGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.screeningCountGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Date from where screen done
$dateTo = dateTo_example; // String | Date to where screen done
$dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
$dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
$eligible = true; // Boolean | Pull all candidates who eligible or not
$wardId = 56; // Integer | Pull all candidates under ward
$enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
$csoId = 56; // Integer | Pull all candidates under cso
$psnuId = 56; // Integer | Pull all candidates under psnu

try {
    $result = $api_instance->screeningCountGet($dateFrom, $dateTo, $dateOfBirthFrom, $dateOfBirthTo, $eligible, $wardId, $enrollmentCode, $csoId, $psnuId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->screeningCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Date from where screen done
my $dateTo = dateTo_example; # String | Date to where screen done
my $dateOfBirthFrom = dateOfBirthFrom_example; # String | Candidate Date of birth start range
my $dateOfBirthTo = dateOfBirthTo_example; # String | Candidate Date of birth end range
my $eligible = true; # Boolean | Pull all candidates who eligible or not
my $wardId = 56; # Integer | Pull all candidates under ward
my $enrollmentCode = enrollmentCode_example; # String | Pull candidate with enrollment code
my $csoId = 56; # Integer | Pull all candidates under cso
my $psnuId = 56; # Integer | Pull all candidates under psnu

eval { 
    my $result = $api_instance->screeningCountGet(dateFrom => $dateFrom, dateTo => $dateTo, dateOfBirthFrom => $dateOfBirthFrom, dateOfBirthTo => $dateOfBirthTo, eligible => $eligible, wardId => $wardId, enrollmentCode => $enrollmentCode, csoId => $csoId, psnuId => $psnuId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->screeningCountGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Date from where screen done (optional)
dateTo = dateTo_example # String | Date to where screen done (optional)
dateOfBirthFrom = dateOfBirthFrom_example # String | Candidate Date of birth start range (optional)
dateOfBirthTo = dateOfBirthTo_example # String | Candidate Date of birth end range (optional)
eligible = true # Boolean | Pull all candidates who eligible or not (optional)
wardId = 56 # Integer | Pull all candidates under ward (optional)
enrollmentCode = enrollmentCode_example # String | Pull candidate with enrollment code (optional)
csoId = 56 # Integer | Pull all candidates under cso (optional)
psnuId = 56 # Integer | Pull all candidates under psnu (optional)

try: 
    api_response = api_instance.screening_count_get(dateFrom=dateFrom, dateTo=dateTo, dateOfBirthFrom=dateOfBirthFrom, dateOfBirthTo=dateOfBirthTo, eligible=eligible, wardId=wardId, enrollmentCode=enrollmentCode, csoId=csoId, psnuId=psnuId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->screeningCountGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Date from where screen done
dateTo
String (dd-mm-yyyy)
Date to where screen done
dateOfBirthFrom
String (dd-mm-yyyy)
Candidate Date of birth start range
dateOfBirthTo
String (dd-mm-yyyy)
Candidate Date of birth end range
eligible
Boolean
Pull all candidates who eligible or not
wardId
Integer
Pull all candidates under ward
enrollmentCode
String
Pull candidate with enrollment code
csoId
Integer
Pull all candidates under cso
psnuId
Integer
Pull all candidates under psnu

Responses

Status: 200 - OK


screeningIdDelete

Delete Not Enrolled Screening


/screening/{id}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Basic [[basicHash]]"\
"http://localhost:8080/api/v1/dames/screening/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Screening Id.
        try {
            apiInstance.screeningIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Screening Id.
        try {
            apiInstance.screeningIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Screening Id.

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

[apiInstance screeningIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Screening Id.

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

namespace Example
{
    public class screeningIdDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Screening Id.

            try
            {
                apiInstance.screeningIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.screeningIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Screening Id.

try {
    $api_instance->screeningIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->screeningIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Screening Id.

eval { 
    $api_instance->screeningIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling DefaultApi->screeningIdDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Screening Id.

try: 
    api_instance.screening_id_delete(id)
except ApiException as e:
    print("Exception when calling DefaultApi->screeningIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Screening Id.
Required

Responses

Status: 202 - OK


screeningIdPut

Update Screening


/screening/{id}/

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/screening/{id}/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Screen Id.
        ScreenCreateBody body = ; // ScreenCreateBody | 
        try {
            ScreenBody result = apiInstance.screeningIdPut(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningIdPut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Screen Id.
        ScreenCreateBody body = ; // ScreenCreateBody | 
        try {
            ScreenBody result = apiInstance.screeningIdPut(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningIdPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Screen Id.
ScreenCreateBody *body = ; //  (optional)

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

[apiInstance screeningIdPutWith:id
    body:body
              completionHandler: ^(ScreenBody output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Screen Id.
var opts = { 
  'body':  // {{ScreenCreateBody}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.screeningIdPut(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class screeningIdPutExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Screen Id.
            var body = new ScreenCreateBody(); // ScreenCreateBody |  (optional) 

            try
            {
                ScreenBody result = apiInstance.screeningIdPut(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.screeningIdPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Screen Id.
$body = ; // ScreenCreateBody | 

try {
    $result = $api_instance->screeningIdPut($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->screeningIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Screen Id.
my $body = WWW::SwaggerClient::Object::ScreenCreateBody->new(); # ScreenCreateBody | 

eval { 
    my $result = $api_instance->screeningIdPut(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->screeningIdPut: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Screen Id.
body =  # ScreenCreateBody |  (optional)

try: 
    api_response = api_instance.screening_id_put(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->screeningIdPut: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Screen Id.
Required
Body parameters
Name Description
body

Responses

Status: 200 - OK


screeningListGet

Fetch all screening


/screening/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/screening/list?dateFrom=&dateTo=&dateOfBirthFrom=&dateOfBirthTo=&eligible=&wardId=&enrollmentCode=&csoId=&psnuId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where screen done
        String dateTo = dateTo_example; // String | Date to where screen done
        String dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
        String dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
        Boolean eligible = true; // Boolean | Pull all candidates who eligible or not
        Integer wardId = 56; // Integer | Pull all candidates under ward
        String enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
        Integer csoId = 56; // Integer | Pull all candidates under cso
        Integer psnuId = 56; // Integer | Pull all candidates under psnu
        try {
            ScreenList result = apiInstance.screeningListGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where screen done
        String dateTo = dateTo_example; // String | Date to where screen done
        String dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
        String dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
        Boolean eligible = true; // Boolean | Pull all candidates who eligible or not
        Integer wardId = 56; // Integer | Pull all candidates under ward
        String enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
        Integer csoId = 56; // Integer | Pull all candidates under cso
        Integer psnuId = 56; // Integer | Pull all candidates under psnu
        try {
            ScreenList result = apiInstance.screeningListGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Date from where screen done (optional)
String *dateTo = dateTo_example; // Date to where screen done (optional)
String *dateOfBirthFrom = dateOfBirthFrom_example; // Candidate Date of birth start range (optional)
String *dateOfBirthTo = dateOfBirthTo_example; // Candidate Date of birth end range (optional)
Boolean *eligible = true; // Pull all candidates who eligible or not (optional)
Integer *wardId = 56; // Pull all candidates under ward (optional)
String *enrollmentCode = enrollmentCode_example; // Pull candidate with enrollment code (optional)
Integer *csoId = 56; // Pull all candidates under cso (optional)
Integer *psnuId = 56; // Pull all candidates under psnu (optional)

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

[apiInstance screeningListGetWith:dateFrom
    dateTo:dateTo
    dateOfBirthFrom:dateOfBirthFrom
    dateOfBirthTo:dateOfBirthTo
    eligible:eligible
    wardId:wardId
    enrollmentCode:enrollmentCode
    csoId:csoId
    psnuId:psnuId
              completionHandler: ^(ScreenList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Date from where screen done
  'dateTo': dateTo_example, // {{String}} Date to where screen done
  'dateOfBirthFrom': dateOfBirthFrom_example, // {{String}} Candidate Date of birth start range
  'dateOfBirthTo': dateOfBirthTo_example, // {{String}} Candidate Date of birth end range
  'eligible': true, // {{Boolean}} Pull all candidates who eligible or not
  'wardId': 56, // {{Integer}} Pull all candidates under ward
  'enrollmentCode': enrollmentCode_example, // {{String}} Pull candidate with enrollment code
  'csoId': 56, // {{Integer}} Pull all candidates under cso
  'psnuId': 56 // {{Integer}} Pull all candidates under psnu
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.screeningListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class screeningListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Date from where screen done (optional) 
            var dateTo = dateTo_example;  // String | Date to where screen done (optional) 
            var dateOfBirthFrom = dateOfBirthFrom_example;  // String | Candidate Date of birth start range (optional) 
            var dateOfBirthTo = dateOfBirthTo_example;  // String | Candidate Date of birth end range (optional) 
            var eligible = true;  // Boolean | Pull all candidates who eligible or not (optional) 
            var wardId = 56;  // Integer | Pull all candidates under ward (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Pull candidate with enrollment code (optional) 
            var csoId = 56;  // Integer | Pull all candidates under cso (optional) 
            var psnuId = 56;  // Integer | Pull all candidates under psnu (optional) 

            try
            {
                ScreenList result = apiInstance.screeningListGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.screeningListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Date from where screen done
$dateTo = dateTo_example; // String | Date to where screen done
$dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
$dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
$eligible = true; // Boolean | Pull all candidates who eligible or not
$wardId = 56; // Integer | Pull all candidates under ward
$enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
$csoId = 56; // Integer | Pull all candidates under cso
$psnuId = 56; // Integer | Pull all candidates under psnu

try {
    $result = $api_instance->screeningListGet($dateFrom, $dateTo, $dateOfBirthFrom, $dateOfBirthTo, $eligible, $wardId, $enrollmentCode, $csoId, $psnuId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->screeningListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Date from where screen done
my $dateTo = dateTo_example; # String | Date to where screen done
my $dateOfBirthFrom = dateOfBirthFrom_example; # String | Candidate Date of birth start range
my $dateOfBirthTo = dateOfBirthTo_example; # String | Candidate Date of birth end range
my $eligible = true; # Boolean | Pull all candidates who eligible or not
my $wardId = 56; # Integer | Pull all candidates under ward
my $enrollmentCode = enrollmentCode_example; # String | Pull candidate with enrollment code
my $csoId = 56; # Integer | Pull all candidates under cso
my $psnuId = 56; # Integer | Pull all candidates under psnu

eval { 
    my $result = $api_instance->screeningListGet(dateFrom => $dateFrom, dateTo => $dateTo, dateOfBirthFrom => $dateOfBirthFrom, dateOfBirthTo => $dateOfBirthTo, eligible => $eligible, wardId => $wardId, enrollmentCode => $enrollmentCode, csoId => $csoId, psnuId => $psnuId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->screeningListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Date from where screen done (optional)
dateTo = dateTo_example # String | Date to where screen done (optional)
dateOfBirthFrom = dateOfBirthFrom_example # String | Candidate Date of birth start range (optional)
dateOfBirthTo = dateOfBirthTo_example # String | Candidate Date of birth end range (optional)
eligible = true # Boolean | Pull all candidates who eligible or not (optional)
wardId = 56 # Integer | Pull all candidates under ward (optional)
enrollmentCode = enrollmentCode_example # String | Pull candidate with enrollment code (optional)
csoId = 56 # Integer | Pull all candidates under cso (optional)
psnuId = 56 # Integer | Pull all candidates under psnu (optional)

try: 
    api_response = api_instance.screening_list_get(dateFrom=dateFrom, dateTo=dateTo, dateOfBirthFrom=dateOfBirthFrom, dateOfBirthTo=dateOfBirthTo, eligible=eligible, wardId=wardId, enrollmentCode=enrollmentCode, csoId=csoId, psnuId=psnuId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->screeningListGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Date from where screen done
dateTo
String (dd-mm-yyyy)
Date to where screen done
dateOfBirthFrom
String (dd-mm-yyyy)
Candidate Date of birth start range
dateOfBirthTo
String (dd-mm-yyyy)
Candidate Date of birth end range
eligible
Boolean
Pull all candidates who eligible or not
wardId
Integer
Pull all candidates under ward
enrollmentCode
String
Pull candidate with enrollment code
csoId
Integer
Pull all candidates under cso
psnuId
Integer
Pull all candidates under psnu

Responses

Status: 200 - OK


screeningPageGet

Fetch all screening in pages


/screening/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/screening/page?dateFrom=&dateTo=&dateOfBirthFrom=&dateOfBirthTo=&eligible=&wardId=&enrollmentCode=&csoId=&psnuId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where screen done
        String dateTo = dateTo_example; // String | Date to where screen done
        String dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
        String dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
        Boolean eligible = true; // Boolean | Pull all candidates who eligible or not
        Integer wardId = 56; // Integer | Pull all candidates under ward
        String enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
        Integer csoId = 56; // Integer | Pull all candidates under cso
        Integer psnuId = 56; // Integer | Pull all candidates under psnu
        try {
            ScreenListWithPages result = apiInstance.screeningPageGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningPageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String dateFrom = dateFrom_example; // String | Date from where screen done
        String dateTo = dateTo_example; // String | Date to where screen done
        String dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
        String dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
        Boolean eligible = true; // Boolean | Pull all candidates who eligible or not
        Integer wardId = 56; // Integer | Pull all candidates under ward
        String enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
        Integer csoId = 56; // Integer | Pull all candidates under cso
        Integer psnuId = 56; // Integer | Pull all candidates under psnu
        try {
            ScreenListWithPages result = apiInstance.screeningPageGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningPageGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *dateFrom = dateFrom_example; // Date from where screen done (optional)
String *dateTo = dateTo_example; // Date to where screen done (optional)
String *dateOfBirthFrom = dateOfBirthFrom_example; // Candidate Date of birth start range (optional)
String *dateOfBirthTo = dateOfBirthTo_example; // Candidate Date of birth end range (optional)
Boolean *eligible = true; // Pull all candidates who eligible or not (optional)
Integer *wardId = 56; // Pull all candidates under ward (optional)
String *enrollmentCode = enrollmentCode_example; // Pull candidate with enrollment code (optional)
Integer *csoId = 56; // Pull all candidates under cso (optional)
Integer *psnuId = 56; // Pull all candidates under psnu (optional)

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

[apiInstance screeningPageGetWith:dateFrom
    dateTo:dateTo
    dateOfBirthFrom:dateOfBirthFrom
    dateOfBirthTo:dateOfBirthTo
    eligible:eligible
    wardId:wardId
    enrollmentCode:enrollmentCode
    csoId:csoId
    psnuId:psnuId
              completionHandler: ^(ScreenListWithPages output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Date from where screen done
  'dateTo': dateTo_example, // {{String}} Date to where screen done
  'dateOfBirthFrom': dateOfBirthFrom_example, // {{String}} Candidate Date of birth start range
  'dateOfBirthTo': dateOfBirthTo_example, // {{String}} Candidate Date of birth end range
  'eligible': true, // {{Boolean}} Pull all candidates who eligible or not
  'wardId': 56, // {{Integer}} Pull all candidates under ward
  'enrollmentCode': enrollmentCode_example, // {{String}} Pull candidate with enrollment code
  'csoId': 56, // {{Integer}} Pull all candidates under cso
  'psnuId': 56 // {{Integer}} Pull all candidates under psnu
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.screeningPageGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class screeningPageGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var dateFrom = dateFrom_example;  // String | Date from where screen done (optional) 
            var dateTo = dateTo_example;  // String | Date to where screen done (optional) 
            var dateOfBirthFrom = dateOfBirthFrom_example;  // String | Candidate Date of birth start range (optional) 
            var dateOfBirthTo = dateOfBirthTo_example;  // String | Candidate Date of birth end range (optional) 
            var eligible = true;  // Boolean | Pull all candidates who eligible or not (optional) 
            var wardId = 56;  // Integer | Pull all candidates under ward (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Pull candidate with enrollment code (optional) 
            var csoId = 56;  // Integer | Pull all candidates under cso (optional) 
            var psnuId = 56;  // Integer | Pull all candidates under psnu (optional) 

            try
            {
                ScreenListWithPages result = apiInstance.screeningPageGet(dateFrom, dateTo, dateOfBirthFrom, dateOfBirthTo, eligible, wardId, enrollmentCode, csoId, psnuId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.screeningPageGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$dateFrom = dateFrom_example; // String | Date from where screen done
$dateTo = dateTo_example; // String | Date to where screen done
$dateOfBirthFrom = dateOfBirthFrom_example; // String | Candidate Date of birth start range
$dateOfBirthTo = dateOfBirthTo_example; // String | Candidate Date of birth end range
$eligible = true; // Boolean | Pull all candidates who eligible or not
$wardId = 56; // Integer | Pull all candidates under ward
$enrollmentCode = enrollmentCode_example; // String | Pull candidate with enrollment code
$csoId = 56; // Integer | Pull all candidates under cso
$psnuId = 56; // Integer | Pull all candidates under psnu

try {
    $result = $api_instance->screeningPageGet($dateFrom, $dateTo, $dateOfBirthFrom, $dateOfBirthTo, $eligible, $wardId, $enrollmentCode, $csoId, $psnuId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->screeningPageGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $dateFrom = dateFrom_example; # String | Date from where screen done
my $dateTo = dateTo_example; # String | Date to where screen done
my $dateOfBirthFrom = dateOfBirthFrom_example; # String | Candidate Date of birth start range
my $dateOfBirthTo = dateOfBirthTo_example; # String | Candidate Date of birth end range
my $eligible = true; # Boolean | Pull all candidates who eligible or not
my $wardId = 56; # Integer | Pull all candidates under ward
my $enrollmentCode = enrollmentCode_example; # String | Pull candidate with enrollment code
my $csoId = 56; # Integer | Pull all candidates under cso
my $psnuId = 56; # Integer | Pull all candidates under psnu

eval { 
    my $result = $api_instance->screeningPageGet(dateFrom => $dateFrom, dateTo => $dateTo, dateOfBirthFrom => $dateOfBirthFrom, dateOfBirthTo => $dateOfBirthTo, eligible => $eligible, wardId => $wardId, enrollmentCode => $enrollmentCode, csoId => $csoId, psnuId => $psnuId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->screeningPageGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
dateFrom = dateFrom_example # String | Date from where screen done (optional)
dateTo = dateTo_example # String | Date to where screen done (optional)
dateOfBirthFrom = dateOfBirthFrom_example # String | Candidate Date of birth start range (optional)
dateOfBirthTo = dateOfBirthTo_example # String | Candidate Date of birth end range (optional)
eligible = true # Boolean | Pull all candidates who eligible or not (optional)
wardId = 56 # Integer | Pull all candidates under ward (optional)
enrollmentCode = enrollmentCode_example # String | Pull candidate with enrollment code (optional)
csoId = 56 # Integer | Pull all candidates under cso (optional)
psnuId = 56 # Integer | Pull all candidates under psnu (optional)

try: 
    api_response = api_instance.screening_page_get(dateFrom=dateFrom, dateTo=dateTo, dateOfBirthFrom=dateOfBirthFrom, dateOfBirthTo=dateOfBirthTo, eligible=eligible, wardId=wardId, enrollmentCode=enrollmentCode, csoId=csoId, psnuId=psnuId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->screeningPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (dd-mm-yyyy)
Date from where screen done
dateTo
String (dd-mm-yyyy)
Date to where screen done
dateOfBirthFrom
String (dd-mm-yyyy)
Candidate Date of birth start range
dateOfBirthTo
String (dd-mm-yyyy)
Candidate Date of birth end range
eligible
Boolean
Pull all candidates who eligible or not
wardId
Integer
Pull all candidates under ward
enrollmentCode
String
Pull candidate with enrollment code
csoId
Integer
Pull all candidates under cso
psnuId
Integer
Pull all candidates under psnu

Responses

Status: 200 - OK


screeningPost

Post Screening.


/screening

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/dames/screening"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        ScreenCreateBody body = ; // ScreenCreateBody | 
        try {
            ScreenBody result = apiInstance.screeningPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ScreenCreateBody body = ; // ScreenCreateBody | 
        try {
            ScreenBody result = apiInstance.screeningPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#screeningPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
ScreenCreateBody *body = ; //  (optional)

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

[apiInstance screeningPostWith:body
              completionHandler: ^(ScreenBody output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

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

namespace Example
{
    public class screeningPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var body = new ScreenCreateBody(); // ScreenCreateBody |  (optional) 

            try
            {
                ScreenBody result = apiInstance.screeningPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.screeningPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // ScreenCreateBody | 

try {
    $result = $api_instance->screeningPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->screeningPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

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

eval { 
    my $result = $api_instance->screeningPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->screeningPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # ScreenCreateBody |  (optional)

try: 
    api_response = api_instance.screening_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->screeningPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - OK


serviceIdGet

Pass Service Id to fetch Service Object


/service/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/service/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass service id.
        try {
            Service result = apiInstance.serviceIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#serviceIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass service id.
        try {
            Service result = apiInstance.serviceIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#serviceIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass service id.

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

[apiInstance serviceIdGetWith:id
              completionHandler: ^(Service output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass service id.

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

namespace Example
{
    public class serviceIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass service id.

            try
            {
                Service result = apiInstance.serviceIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.serviceIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass service id.

try {
    $result = $api_instance->serviceIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->serviceIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass service id.

eval { 
    my $result = $api_instance->serviceIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->serviceIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass service id.

try: 
    api_response = api_instance.service_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->serviceIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass service id.
Required

Responses

Status: 200 - OK


serviceListGet

Find services


/service/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/service/list?startDateFrom=&startDateTo=&endDateFrom=&endDateTo=&name=&closed="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String startDateFrom = startDateFrom_example; // String | Period start date, start point
        String startDateTo = startDateTo_example; // String | Period start date, end point
        String endDateFrom = endDateFrom_example; // String | Period end date, start point
        String endDateTo = endDateTo_example; // String | Period end date, end point
        String name = name_example; // String | Period name
        Boolean closed = true; // Boolean | Is period closed/ fetch all period based on is closed flag
        try {
            ServiceSimpleList result = apiInstance.serviceListGet(startDateFrom, startDateTo, endDateFrom, endDateTo, name, closed);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#serviceListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String startDateFrom = startDateFrom_example; // String | Period start date, start point
        String startDateTo = startDateTo_example; // String | Period start date, end point
        String endDateFrom = endDateFrom_example; // String | Period end date, start point
        String endDateTo = endDateTo_example; // String | Period end date, end point
        String name = name_example; // String | Period name
        Boolean closed = true; // Boolean | Is period closed/ fetch all period based on is closed flag
        try {
            ServiceSimpleList result = apiInstance.serviceListGet(startDateFrom, startDateTo, endDateFrom, endDateTo, name, closed);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#serviceListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *startDateFrom = startDateFrom_example; // Period start date, start point (optional)
String *startDateTo = startDateTo_example; // Period start date, end point (optional)
String *endDateFrom = endDateFrom_example; // Period end date, start point (optional)
String *endDateTo = endDateTo_example; // Period end date, end point (optional)
String *name = name_example; // Period name (optional)
Boolean *closed = true; // Is period closed/ fetch all period based on is closed flag (optional)

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

[apiInstance serviceListGetWith:startDateFrom
    startDateTo:startDateTo
    endDateFrom:endDateFrom
    endDateTo:endDateTo
    name:name
    closed:closed
              completionHandler: ^(ServiceSimpleList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'startDateFrom': startDateFrom_example, // {{String}} Period start date, start point
  'startDateTo': startDateTo_example, // {{String}} Period start date, end point
  'endDateFrom': endDateFrom_example, // {{String}} Period end date, start point
  'endDateTo': endDateTo_example, // {{String}} Period end date, end point
  'name': name_example, // {{String}} Period name
  'closed': true // {{Boolean}} Is period closed/ fetch all period based on is closed flag
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serviceListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class serviceListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var startDateFrom = startDateFrom_example;  // String | Period start date, start point (optional) 
            var startDateTo = startDateTo_example;  // String | Period start date, end point (optional) 
            var endDateFrom = endDateFrom_example;  // String | Period end date, start point (optional) 
            var endDateTo = endDateTo_example;  // String | Period end date, end point (optional) 
            var name = name_example;  // String | Period name (optional) 
            var closed = true;  // Boolean | Is period closed/ fetch all period based on is closed flag (optional) 

            try
            {
                ServiceSimpleList result = apiInstance.serviceListGet(startDateFrom, startDateTo, endDateFrom, endDateTo, name, closed);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.serviceListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$startDateFrom = startDateFrom_example; // String | Period start date, start point
$startDateTo = startDateTo_example; // String | Period start date, end point
$endDateFrom = endDateFrom_example; // String | Period end date, start point
$endDateTo = endDateTo_example; // String | Period end date, end point
$name = name_example; // String | Period name
$closed = true; // Boolean | Is period closed/ fetch all period based on is closed flag

try {
    $result = $api_instance->serviceListGet($startDateFrom, $startDateTo, $endDateFrom, $endDateTo, $name, $closed);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->serviceListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $startDateFrom = startDateFrom_example; # String | Period start date, start point
my $startDateTo = startDateTo_example; # String | Period start date, end point
my $endDateFrom = endDateFrom_example; # String | Period end date, start point
my $endDateTo = endDateTo_example; # String | Period end date, end point
my $name = name_example; # String | Period name
my $closed = true; # Boolean | Is period closed/ fetch all period based on is closed flag

eval { 
    my $result = $api_instance->serviceListGet(startDateFrom => $startDateFrom, startDateTo => $startDateTo, endDateFrom => $endDateFrom, endDateTo => $endDateTo, name => $name, closed => $closed);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->serviceListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
startDateFrom = startDateFrom_example # String | Period start date, start point (optional)
startDateTo = startDateTo_example # String | Period start date, end point (optional)
endDateFrom = endDateFrom_example # String | Period end date, start point (optional)
endDateTo = endDateTo_example # String | Period end date, end point (optional)
name = name_example # String | Period name (optional)
closed = true # Boolean | Is period closed/ fetch all period based on is closed flag (optional)

try: 
    api_response = api_instance.service_list_get(startDateFrom=startDateFrom, startDateTo=startDateTo, endDateFrom=endDateFrom, endDateTo=endDateTo, name=name, closed=closed)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->serviceListGet: %s\n" % e)

Parameters

Query parameters
Name Description
startDateFrom
String (date("dd-mm-yyyy"))
Period start date, start point
startDateTo
String (date("dd-mm-yyyy"))
Period start date, end point
endDateFrom
String (date("dd-mm-yyyy"))
Period end date, start point
endDateTo
String (date("dd-mm-yyyy"))
Period end date, end point
name
String
Period name
closed
Boolean
Is period closed/ fetch all period based on is closed flag

Responses

Status: 200 - OK


serviceStageCodeGet

Pass Service Stage Code to fetch Stage Object


/service/stage/{code}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/service/stage/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass service stage code.
        try {
            Stage result = apiInstance.serviceStageCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#serviceStageCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass service stage code.
        try {
            Stage result = apiInstance.serviceStageCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#serviceStageCodeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Pass service stage code.

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

[apiInstance serviceStageCodeGetWith:code
              completionHandler: ^(Stage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var code = code_example; // {{String}} Pass service stage code.

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

namespace Example
{
    public class serviceStageCodeGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Pass service stage code.

            try
            {
                Stage result = apiInstance.serviceStageCodeGet(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.serviceStageCodeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Pass service stage code.

try {
    $result = $api_instance->serviceStageCodeGet($code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->serviceStageCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Pass service stage code.

eval { 
    my $result = $api_instance->serviceStageCodeGet(code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->serviceStageCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Pass service stage code.

try: 
    api_response = api_instance.service_stage_code_get(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->serviceStageCodeGet: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Pass service stage code.
Required

Responses

Status: 200 - OK


snuCodeCodeGet

Pass SNU CODE to fetch SNU Object


/snu/code/{code}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/snu/code/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass snu Code.
        try {
            SNU result = apiInstance.snuCodeCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#snuCodeCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass snu Code.
        try {
            SNU result = apiInstance.snuCodeCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#snuCodeCodeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Pass snu Code.

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

[apiInstance snuCodeCodeGetWith:code
              completionHandler: ^(SNU output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var code = code_example; // {{String}} Pass snu Code.

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

namespace Example
{
    public class snuCodeCodeGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Pass snu Code.

            try
            {
                SNU result = apiInstance.snuCodeCodeGet(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.snuCodeCodeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Pass snu Code.

try {
    $result = $api_instance->snuCodeCodeGet($code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->snuCodeCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Pass snu Code.

eval { 
    my $result = $api_instance->snuCodeCodeGet(code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->snuCodeCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Pass snu Code.

try: 
    api_response = api_instance.snu_code_code_get(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->snuCodeCodeGet: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Pass snu Code.
Required

Responses

Status: 200 - OK


snuIdGet

Pass SNU Id to fetch SNU Object


/snu/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/snu/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass snu id.
        try {
            SNU result = apiInstance.snuIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#snuIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass snu id.
        try {
            SNU result = apiInstance.snuIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#snuIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass snu id.

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

[apiInstance snuIdGetWith:id
              completionHandler: ^(SNU output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass snu id.

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

namespace Example
{
    public class snuIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass snu id.

            try
            {
                SNU result = apiInstance.snuIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.snuIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass snu id.

try {
    $result = $api_instance->snuIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->snuIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass snu id.

eval { 
    my $result = $api_instance->snuIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->snuIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass snu id.

try: 
    api_response = api_instance.snu_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->snuIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass snu id.
Required

Responses

Status: 200 - OK


snuListGet

Find all SNU


/snu/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/snu/list?query="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        SNUQuery query = ; // SNUQuery | Query format can be. ?name=Mbeya&code=S12
        try {
            SNUList result = apiInstance.snuListGet(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#snuListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        SNUQuery query = ; // SNUQuery | Query format can be. ?name=Mbeya&code=S12
        try {
            SNUList result = apiInstance.snuListGet(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#snuListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
SNUQuery *query = ; // Query format can be. ?name=Mbeya&code=S12 (optional)

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

[apiInstance snuListGetWith:query
              completionHandler: ^(SNUList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'query':  // {{SNUQuery}} Query format can be. ?name=Mbeya&code=S12
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.snuListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class snuListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var query = new SNUQuery(); // SNUQuery | Query format can be. ?name=Mbeya&code=S12 (optional) 

            try
            {
                SNUList result = apiInstance.snuListGet(query);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.snuListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$query = ; // SNUQuery | Query format can be. ?name=Mbeya&code=S12

try {
    $result = $api_instance->snuListGet($query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->snuListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $query = ; # SNUQuery | Query format can be. ?name=Mbeya&code=S12

eval { 
    my $result = $api_instance->snuListGet(query => $query);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->snuListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
query =  # SNUQuery | Query format can be. ?name=Mbeya&code=S12 (optional)

try: 
    api_response = api_instance.snu_list_get(query=query)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->snuListGet: %s\n" % e)

Parameters

Query parameters
Name Description
query
SNUQuery
Query format can be. ?name=Mbeya&code=S12

Responses

Status: 200 - OK


targetIdGet

Get Target by ID


/target/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/target/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Target ID.
        try {
            Target result = apiInstance.targetIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#targetIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass Target ID.
        try {
            Target result = apiInstance.targetIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#targetIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass Target ID.

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

[apiInstance targetIdGetWith:id
              completionHandler: ^(Target output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass Target ID.

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

namespace Example
{
    public class targetIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass Target ID.

            try
            {
                Target result = apiInstance.targetIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.targetIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass Target ID.

try {
    $result = $api_instance->targetIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->targetIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass Target ID.

eval { 
    my $result = $api_instance->targetIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->targetIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass Target ID.

try: 
    api_response = api_instance.target_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->targetIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass Target ID.
Required

Responses

Status: 200 - OK


targetListGet

Fetch all targets


/target/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/target/list?type=&periodId=&psnuId=&levelId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String type = type_example; // String | Target type if is ENROLLMENT or PRIMARY_COMPLETION
        Integer periodId = 56; // Integer | Target of period
        Integer psnuId = 56; // Integer | Targets under psnu
        Integer levelId = 56; // Integer | Targets under level
        try {
            TargetList result = apiInstance.targetListGet(type, periodId, psnuId, levelId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#targetListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String type = type_example; // String | Target type if is ENROLLMENT or PRIMARY_COMPLETION
        Integer periodId = 56; // Integer | Target of period
        Integer psnuId = 56; // Integer | Targets under psnu
        Integer levelId = 56; // Integer | Targets under level
        try {
            TargetList result = apiInstance.targetListGet(type, periodId, psnuId, levelId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#targetListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *type = type_example; // Target type if is ENROLLMENT or PRIMARY_COMPLETION (optional)
Integer *periodId = 56; // Target of period (optional)
Integer *psnuId = 56; // Targets under psnu (optional)
Integer *levelId = 56; // Targets under level (optional)

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

[apiInstance targetListGetWith:type
    periodId:periodId
    psnuId:psnuId
    levelId:levelId
              completionHandler: ^(TargetList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'type': type_example, // {{String}} Target type if is ENROLLMENT or PRIMARY_COMPLETION
  'periodId': 56, // {{Integer}} Target of period
  'psnuId': 56, // {{Integer}} Targets under psnu
  'levelId': 56 // {{Integer}} Targets under level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.targetListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class targetListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var type = type_example;  // String | Target type if is ENROLLMENT or PRIMARY_COMPLETION (optional) 
            var periodId = 56;  // Integer | Target of period (optional) 
            var psnuId = 56;  // Integer | Targets under psnu (optional) 
            var levelId = 56;  // Integer | Targets under level (optional) 

            try
            {
                TargetList result = apiInstance.targetListGet(type, periodId, psnuId, levelId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.targetListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$type = type_example; // String | Target type if is ENROLLMENT or PRIMARY_COMPLETION
$periodId = 56; // Integer | Target of period
$psnuId = 56; // Integer | Targets under psnu
$levelId = 56; // Integer | Targets under level

try {
    $result = $api_instance->targetListGet($type, $periodId, $psnuId, $levelId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->targetListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $type = type_example; # String | Target type if is ENROLLMENT or PRIMARY_COMPLETION
my $periodId = 56; # Integer | Target of period
my $psnuId = 56; # Integer | Targets under psnu
my $levelId = 56; # Integer | Targets under level

eval { 
    my $result = $api_instance->targetListGet(type => $type, periodId => $periodId, psnuId => $psnuId, levelId => $levelId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->targetListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
type = type_example # String | Target type if is ENROLLMENT or PRIMARY_COMPLETION (optional)
periodId = 56 # Integer | Target of period (optional)
psnuId = 56 # Integer | Targets under psnu (optional)
levelId = 56 # Integer | Targets under level (optional)

try: 
    api_response = api_instance.target_list_get(type=type, periodId=periodId, psnuId=psnuId, levelId=levelId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->targetListGet: %s\n" % e)

Parameters

Query parameters
Name Description
type
String
Target type if is ENROLLMENT or PRIMARY_COMPLETION
periodId
Integer
Target of period
psnuId
Integer
Targets under psnu
levelId
Integer
Targets under level

Responses

Status: 200 - OK


targetPageGet

Fetch all needs in pages


/target/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/target/page?type=&periodId=&psnuId=&levelId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String type = type_example; // String | Target type if is ENROLLMENT or PRIMARY_COMPLETION
        Integer periodId = 56; // Integer | Target of period
        Integer psnuId = 56; // Integer | Targets under psnu
        Integer levelId = 56; // Integer | Targets under level
        try {
            TargetListWithPages result = apiInstance.targetPageGet(type, periodId, psnuId, levelId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#targetPageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String type = type_example; // String | Target type if is ENROLLMENT or PRIMARY_COMPLETION
        Integer periodId = 56; // Integer | Target of period
        Integer psnuId = 56; // Integer | Targets under psnu
        Integer levelId = 56; // Integer | Targets under level
        try {
            TargetListWithPages result = apiInstance.targetPageGet(type, periodId, psnuId, levelId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#targetPageGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *type = type_example; // Target type if is ENROLLMENT or PRIMARY_COMPLETION (optional)
Integer *periodId = 56; // Target of period (optional)
Integer *psnuId = 56; // Targets under psnu (optional)
Integer *levelId = 56; // Targets under level (optional)

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

[apiInstance targetPageGetWith:type
    periodId:periodId
    psnuId:psnuId
    levelId:levelId
              completionHandler: ^(TargetListWithPages output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'type': type_example, // {{String}} Target type if is ENROLLMENT or PRIMARY_COMPLETION
  'periodId': 56, // {{Integer}} Target of period
  'psnuId': 56, // {{Integer}} Targets under psnu
  'levelId': 56 // {{Integer}} Targets under level
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.targetPageGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class targetPageGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var type = type_example;  // String | Target type if is ENROLLMENT or PRIMARY_COMPLETION (optional) 
            var periodId = 56;  // Integer | Target of period (optional) 
            var psnuId = 56;  // Integer | Targets under psnu (optional) 
            var levelId = 56;  // Integer | Targets under level (optional) 

            try
            {
                TargetListWithPages result = apiInstance.targetPageGet(type, periodId, psnuId, levelId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.targetPageGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$type = type_example; // String | Target type if is ENROLLMENT or PRIMARY_COMPLETION
$periodId = 56; // Integer | Target of period
$psnuId = 56; // Integer | Targets under psnu
$levelId = 56; // Integer | Targets under level

try {
    $result = $api_instance->targetPageGet($type, $periodId, $psnuId, $levelId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->targetPageGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $type = type_example; # String | Target type if is ENROLLMENT or PRIMARY_COMPLETION
my $periodId = 56; # Integer | Target of period
my $psnuId = 56; # Integer | Targets under psnu
my $levelId = 56; # Integer | Targets under level

eval { 
    my $result = $api_instance->targetPageGet(type => $type, periodId => $periodId, psnuId => $psnuId, levelId => $levelId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->targetPageGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
type = type_example # String | Target type if is ENROLLMENT or PRIMARY_COMPLETION (optional)
periodId = 56 # Integer | Target of period (optional)
psnuId = 56 # Integer | Targets under psnu (optional)
levelId = 56 # Integer | Targets under level (optional)

try: 
    api_response = api_instance.target_page_get(type=type, periodId=periodId, psnuId=psnuId, levelId=levelId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->targetPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
type
String
Target type if is ENROLLMENT or PRIMARY_COMPLETION
periodId
Integer
Target of period
psnuId
Integer
Targets under psnu
levelId
Integer
Targets under level

Responses

Status: 200 - OK


wardCodeCodeGet

Get ward by Code


/ward/code/{code}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/ward/code/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass ward Code.
        try {
            WardObject result = apiInstance.wardCodeCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#wardCodeCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String code = code_example; // String | Pass ward Code.
        try {
            WardObject result = apiInstance.wardCodeCodeGet(code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#wardCodeCodeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Pass ward Code.

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

[apiInstance wardCodeCodeGetWith:code
              completionHandler: ^(WardObject output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var code = code_example; // {{String}} Pass ward Code.

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

namespace Example
{
    public class wardCodeCodeGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var code = code_example;  // String | Pass ward Code.

            try
            {
                WardObject result = apiInstance.wardCodeCodeGet(code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.wardCodeCodeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Pass ward Code.

try {
    $result = $api_instance->wardCodeCodeGet($code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->wardCodeCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Pass ward Code.

eval { 
    my $result = $api_instance->wardCodeCodeGet(code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->wardCodeCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Pass ward Code.

try: 
    api_response = api_instance.ward_code_code_get(code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->wardCodeCodeGet: %s\n" % e)

Parameters

Path parameters
Name Description
code*
String
Pass ward Code.
Required

Responses

Status: 200 - OK


wardIdGet

Get ward by ID


/ward/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/ward/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass ward ID.
        try {
            WardObject result = apiInstance.wardIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#wardIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Pass ward ID.
        try {
            WardObject result = apiInstance.wardIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#wardIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Integer *id = 56; // Pass ward ID.

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

[apiInstance wardIdGetWith:id
              completionHandler: ^(WardObject output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var id = 56; // {{Integer}} Pass ward ID.

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

namespace Example
{
    public class wardIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Pass ward ID.

            try
            {
                WardObject result = apiInstance.wardIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.wardIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = 56; // Integer | Pass ward ID.

try {
    $result = $api_instance->wardIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->wardIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = 56; # Integer | Pass ward ID.

eval { 
    my $result = $api_instance->wardIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->wardIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 56 # Integer | Pass ward ID.

try: 
    api_response = api_instance.ward_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->wardIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Pass ward ID.
Required

Responses

Status: 200 - OK


wardListGet

List all wards


/ward/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/ward/list?name=&code=&psnuId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Name of ward
        String code = code_example; // String | Code of ward
        Integer psnuId = 56; // Integer | PSNU ID where wards belong
        try {
            WardList result = apiInstance.wardListGet(name, code, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#wardListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | Name of ward
        String code = code_example; // String | Code of ward
        Integer psnuId = 56; // Integer | PSNU ID where wards belong
        try {
            WardList result = apiInstance.wardListGet(name, code, psnuId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#wardListGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *name = name_example; // Name of ward (optional)
String *code = code_example; // Code of ward (optional)
Integer *psnuId = 56; // PSNU ID where wards belong (optional)

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

[apiInstance wardListGetWith:name
    code:code
    psnuId:psnuId
              completionHandler: ^(WardList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesApi.DefaultApi()
var opts = { 
  'name': name_example, // {{String}} Name of ward
  'code': code_example, // {{String}} Code of ward
  'psnuId': 56 // {{Integer}} PSNU ID where wards belong
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.wardListGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class wardListGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new DefaultApi();
            var name = name_example;  // String | Name of ward (optional) 
            var code = code_example;  // String | Code of ward (optional) 
            var psnuId = 56;  // Integer | PSNU ID where wards belong (optional) 

            try
            {
                WardList result = apiInstance.wardListGet(name, code, psnuId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.wardListGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiDefaultApi();
$name = name_example; // String | Name of ward
$code = code_example; // String | Code of ward
$psnuId = 56; // Integer | PSNU ID where wards belong

try {
    $result = $api_instance->wardListGet($name, $code, $psnuId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->wardListGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $name = name_example; # String | Name of ward
my $code = code_example; # String | Code of ward
my $psnuId = 56; # Integer | PSNU ID where wards belong

eval { 
    my $result = $api_instance->wardListGet(name => $name, code => $code, psnuId => $psnuId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->wardListGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
name = name_example # String | Name of ward (optional)
code = code_example # String | Code of ward (optional)
psnuId = 56 # Integer | PSNU ID where wards belong (optional)

try: 
    api_response = api_instance.ward_list_get(name=name, code=code, psnuId=psnuId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->wardListGet: %s\n" % e)

Parameters

Query parameters
Name Description
name
String
Name of ward
code
String
Code of ward
psnuId
Integer
PSNU ID where wards belong

Responses

Status: 200 - OK