Dames Collect 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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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=&street=&wardId=&serviceId=&levelId=&creatorId=&enrollmentCode="
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 | Interventions of Date From
        String dateTo = dateTo_example; // String | Interventions of Date To
        String street = street_example; // String | Intervention took place street
        Integer wardId = 56; // Integer | Intervention took place ward ID
        Integer serviceId = 56; // Integer | Service ID provided
        Integer levelId = 56; // Integer | Level ID of AGYW
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        try {
            'Integer' result = apiInstance.encounterCountGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
            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 | Interventions of Date From
        String dateTo = dateTo_example; // String | Interventions of Date To
        String street = street_example; // String | Intervention took place street
        Integer wardId = 56; // Integer | Intervention took place ward ID
        Integer serviceId = 56; // Integer | Service ID provided
        Integer levelId = 56; // Integer | Level ID of AGYW
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        try {
            'Integer' result = apiInstance.encounterCountGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
            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; // Interventions of Date From (optional)
String *dateTo = dateTo_example; // Interventions of Date To (optional)
String *street = street_example; // Intervention took place street (optional)
Integer *wardId = 56; // Intervention took place ward ID (optional)
Integer *serviceId = 56; // Service ID provided (optional)
Integer *levelId = 56; // Level ID of AGYW (optional)
Integer *creatorId = 56; // Who submited the data. CSO User ID (optional)
String *enrollmentCode = enrollmentCode_example; // Enrollment UIC (optional)

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

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

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Interventions of Date From
  'dateTo': dateTo_example, // {{String}} Interventions of Date To
  'street': street_example, // {{String}} Intervention took place street
  'wardId': 56, // {{Integer}} Intervention took place ward ID
  'serviceId': 56, // {{Integer}} Service ID provided
  'levelId': 56, // {{Integer}} Level ID of AGYW
  'creatorId': 56, // {{Integer}} Who submited the data. CSO User ID
  'enrollmentCode': enrollmentCode_example // {{String}} Enrollment UIC
};
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 | Interventions of Date From (optional) 
            var dateTo = dateTo_example;  // String | Interventions of Date To (optional) 
            var street = street_example;  // String | Intervention took place street (optional) 
            var wardId = 56;  // Integer | Intervention took place ward ID (optional) 
            var serviceId = 56;  // Integer | Service ID provided (optional) 
            var levelId = 56;  // Integer | Level ID of AGYW (optional) 
            var creatorId = 56;  // Integer | Who submited the data. CSO User ID (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Enrollment UIC (optional) 

            try
            {
                'Integer' result = apiInstance.encounterCountGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
                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 | Interventions of Date From
$dateTo = dateTo_example; // String | Interventions of Date To
$street = street_example; // String | Intervention took place street
$wardId = 56; // Integer | Intervention took place ward ID
$serviceId = 56; // Integer | Service ID provided
$levelId = 56; // Integer | Level ID of AGYW
$creatorId = 56; // Integer | Who submited the data. CSO User ID
$enrollmentCode = enrollmentCode_example; // String | Enrollment UIC

try {
    $result = $api_instance->encounterCountGet($dateFrom, $dateTo, $street, $wardId, $serviceId, $levelId, $creatorId, $enrollmentCode);
    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 | Interventions of Date From
my $dateTo = dateTo_example; # String | Interventions of Date To
my $street = street_example; # String | Intervention took place street
my $wardId = 56; # Integer | Intervention took place ward ID
my $serviceId = 56; # Integer | Service ID provided
my $levelId = 56; # Integer | Level ID of AGYW
my $creatorId = 56; # Integer | Who submited the data. CSO User ID
my $enrollmentCode = enrollmentCode_example; # String | Enrollment UIC

eval { 
    my $result = $api_instance->encounterCountGet(dateFrom => $dateFrom, dateTo => $dateTo, street => $street, wardId => $wardId, serviceId => $serviceId, levelId => $levelId, creatorId => $creatorId, enrollmentCode => $enrollmentCode);
    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 | Interventions of Date From (optional)
dateTo = dateTo_example # String | Interventions of Date To (optional)
street = street_example # String | Intervention took place street (optional)
wardId = 56 # Integer | Intervention took place ward ID (optional)
serviceId = 56 # Integer | Service ID provided (optional)
levelId = 56 # Integer | Level ID of AGYW (optional)
creatorId = 56 # Integer | Who submited the data. CSO User ID (optional)
enrollmentCode = enrollmentCode_example # String | Enrollment UIC (optional)

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

Parameters

Query parameters
Name Description
dateFrom
String (date("dd-mm-yyyy"))
Interventions of Date From
dateTo
String (date("dd-mm-yyyy"))
Interventions of Date To
street
String
Intervention took place street
wardId
Integer
Intervention took place ward ID
serviceId
Integer
Service ID provided
levelId
Integer
Level ID of AGYW
creatorId
Integer
Who submited the data. CSO User ID
enrollmentCode
String
Enrollment UIC

Responses

Status: 200 - 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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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=&street=&wardId=&serviceId=&levelId=&creatorId=&enrollmentCode="
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 | Interventions of Date From
        String dateTo = dateTo_example; // String | Interventions of Date To
        String street = street_example; // String | Intervention took place street
        Integer wardId = 56; // Integer | Intervention took place ward ID
        Integer serviceId = 56; // Integer | Service ID provided
        Integer levelId = 56; // Integer | Level ID of AGYW
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        try {
            EncounterList result = apiInstance.encounterListGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
            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 | Interventions of Date From
        String dateTo = dateTo_example; // String | Interventions of Date To
        String street = street_example; // String | Intervention took place street
        Integer wardId = 56; // Integer | Intervention took place ward ID
        Integer serviceId = 56; // Integer | Service ID provided
        Integer levelId = 56; // Integer | Level ID of AGYW
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        try {
            EncounterList result = apiInstance.encounterListGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
            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; // Interventions of Date From (optional)
String *dateTo = dateTo_example; // Interventions of Date To (optional)
String *street = street_example; // Intervention took place street (optional)
Integer *wardId = 56; // Intervention took place ward ID (optional)
Integer *serviceId = 56; // Service ID provided (optional)
Integer *levelId = 56; // Level ID of AGYW (optional)
Integer *creatorId = 56; // Who submited the data. CSO User ID (optional)
String *enrollmentCode = enrollmentCode_example; // Enrollment UIC (optional)

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

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

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Interventions of Date From
  'dateTo': dateTo_example, // {{String}} Interventions of Date To
  'street': street_example, // {{String}} Intervention took place street
  'wardId': 56, // {{Integer}} Intervention took place ward ID
  'serviceId': 56, // {{Integer}} Service ID provided
  'levelId': 56, // {{Integer}} Level ID of AGYW
  'creatorId': 56, // {{Integer}} Who submited the data. CSO User ID
  'enrollmentCode': enrollmentCode_example // {{String}} Enrollment UIC
};
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 | Interventions of Date From (optional) 
            var dateTo = dateTo_example;  // String | Interventions of Date To (optional) 
            var street = street_example;  // String | Intervention took place street (optional) 
            var wardId = 56;  // Integer | Intervention took place ward ID (optional) 
            var serviceId = 56;  // Integer | Service ID provided (optional) 
            var levelId = 56;  // Integer | Level ID of AGYW (optional) 
            var creatorId = 56;  // Integer | Who submited the data. CSO User ID (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Enrollment UIC (optional) 

            try
            {
                EncounterList result = apiInstance.encounterListGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
                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 | Interventions of Date From
$dateTo = dateTo_example; // String | Interventions of Date To
$street = street_example; // String | Intervention took place street
$wardId = 56; // Integer | Intervention took place ward ID
$serviceId = 56; // Integer | Service ID provided
$levelId = 56; // Integer | Level ID of AGYW
$creatorId = 56; // Integer | Who submited the data. CSO User ID
$enrollmentCode = enrollmentCode_example; // String | Enrollment UIC

try {
    $result = $api_instance->encounterListGet($dateFrom, $dateTo, $street, $wardId, $serviceId, $levelId, $creatorId, $enrollmentCode);
    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 | Interventions of Date From
my $dateTo = dateTo_example; # String | Interventions of Date To
my $street = street_example; # String | Intervention took place street
my $wardId = 56; # Integer | Intervention took place ward ID
my $serviceId = 56; # Integer | Service ID provided
my $levelId = 56; # Integer | Level ID of AGYW
my $creatorId = 56; # Integer | Who submited the data. CSO User ID
my $enrollmentCode = enrollmentCode_example; # String | Enrollment UIC

eval { 
    my $result = $api_instance->encounterListGet(dateFrom => $dateFrom, dateTo => $dateTo, street => $street, wardId => $wardId, serviceId => $serviceId, levelId => $levelId, creatorId => $creatorId, enrollmentCode => $enrollmentCode);
    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 | Interventions of Date From (optional)
dateTo = dateTo_example # String | Interventions of Date To (optional)
street = street_example # String | Intervention took place street (optional)
wardId = 56 # Integer | Intervention took place ward ID (optional)
serviceId = 56 # Integer | Service ID provided (optional)
levelId = 56 # Integer | Level ID of AGYW (optional)
creatorId = 56 # Integer | Who submited the data. CSO User ID (optional)
enrollmentCode = enrollmentCode_example # String | Enrollment UIC (optional)

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

Parameters

Query parameters
Name Description
dateFrom
String (date("dd-mm-yyyy"))
Interventions of Date From
dateTo
String (date("dd-mm-yyyy"))
Interventions of Date To
street
String
Intervention took place street
wardId
Integer
Intervention took place ward ID
serviceId
Integer
Service ID provided
levelId
Integer
Level ID of AGYW
creatorId
Integer
Who submited the data. CSO User ID
enrollmentCode
String
Enrollment UIC

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=&street=&wardId=&serviceId=&levelId=&creatorId=&enrollmentCode="
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 | Interventions of Date From
        String dateTo = dateTo_example; // String | Interventions of Date To
        String street = street_example; // String | Intervention took place street
        Integer wardId = 56; // Integer | Intervention took place ward ID
        Integer serviceId = 56; // Integer | Service ID provided
        Integer levelId = 56; // Integer | Level ID of AGYW
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        try {
            EncounterListWithPagination result = apiInstance.encounterPageGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
            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 | Interventions of Date From
        String dateTo = dateTo_example; // String | Interventions of Date To
        String street = street_example; // String | Intervention took place street
        Integer wardId = 56; // Integer | Intervention took place ward ID
        Integer serviceId = 56; // Integer | Service ID provided
        Integer levelId = 56; // Integer | Level ID of AGYW
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        try {
            EncounterListWithPagination result = apiInstance.encounterPageGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
            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; // Interventions of Date From (optional)
String *dateTo = dateTo_example; // Interventions of Date To (optional)
String *street = street_example; // Intervention took place street (optional)
Integer *wardId = 56; // Intervention took place ward ID (optional)
Integer *serviceId = 56; // Service ID provided (optional)
Integer *levelId = 56; // Level ID of AGYW (optional)
Integer *creatorId = 56; // Who submited the data. CSO User ID (optional)
String *enrollmentCode = enrollmentCode_example; // Enrollment UIC (optional)

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

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

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Interventions of Date From
  'dateTo': dateTo_example, // {{String}} Interventions of Date To
  'street': street_example, // {{String}} Intervention took place street
  'wardId': 56, // {{Integer}} Intervention took place ward ID
  'serviceId': 56, // {{Integer}} Service ID provided
  'levelId': 56, // {{Integer}} Level ID of AGYW
  'creatorId': 56, // {{Integer}} Who submited the data. CSO User ID
  'enrollmentCode': enrollmentCode_example // {{String}} Enrollment UIC
};
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 | Interventions of Date From (optional) 
            var dateTo = dateTo_example;  // String | Interventions of Date To (optional) 
            var street = street_example;  // String | Intervention took place street (optional) 
            var wardId = 56;  // Integer | Intervention took place ward ID (optional) 
            var serviceId = 56;  // Integer | Service ID provided (optional) 
            var levelId = 56;  // Integer | Level ID of AGYW (optional) 
            var creatorId = 56;  // Integer | Who submited the data. CSO User ID (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Enrollment UIC (optional) 

            try
            {
                EncounterListWithPagination result = apiInstance.encounterPageGet(dateFrom, dateTo, street, wardId, serviceId, levelId, creatorId, enrollmentCode);
                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 | Interventions of Date From
$dateTo = dateTo_example; // String | Interventions of Date To
$street = street_example; // String | Intervention took place street
$wardId = 56; // Integer | Intervention took place ward ID
$serviceId = 56; // Integer | Service ID provided
$levelId = 56; // Integer | Level ID of AGYW
$creatorId = 56; // Integer | Who submited the data. CSO User ID
$enrollmentCode = enrollmentCode_example; // String | Enrollment UIC

try {
    $result = $api_instance->encounterPageGet($dateFrom, $dateTo, $street, $wardId, $serviceId, $levelId, $creatorId, $enrollmentCode);
    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 | Interventions of Date From
my $dateTo = dateTo_example; # String | Interventions of Date To
my $street = street_example; # String | Intervention took place street
my $wardId = 56; # Integer | Intervention took place ward ID
my $serviceId = 56; # Integer | Service ID provided
my $levelId = 56; # Integer | Level ID of AGYW
my $creatorId = 56; # Integer | Who submited the data. CSO User ID
my $enrollmentCode = enrollmentCode_example; # String | Enrollment UIC

eval { 
    my $result = $api_instance->encounterPageGet(dateFrom => $dateFrom, dateTo => $dateTo, street => $street, wardId => $wardId, serviceId => $serviceId, levelId => $levelId, creatorId => $creatorId, enrollmentCode => $enrollmentCode);
    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 | Interventions of Date From (optional)
dateTo = dateTo_example # String | Interventions of Date To (optional)
street = street_example # String | Intervention took place street (optional)
wardId = 56 # Integer | Intervention took place ward ID (optional)
serviceId = 56 # Integer | Service ID provided (optional)
levelId = 56 # Integer | Level ID of AGYW (optional)
creatorId = 56 # Integer | Who submited the data. CSO User ID (optional)
enrollmentCode = enrollmentCode_example # String | Enrollment UIC (optional)

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

Parameters

Query parameters
Name Description
dateFrom
String (date("dd-mm-yyyy"))
Interventions of Date From
dateTo
String (date("dd-mm-yyyy"))
Interventions of Date To
street
String
Intervention took place street
wardId
Integer
Intervention took place ward ID
serviceId
Integer
Service ID provided
levelId
Integer
Level ID of AGYW
creatorId
Integer
Who submited the data. CSO User ID
enrollmentCode
String
Enrollment UIC

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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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


enrollmentCodePatternGet

Fetch enrollment code pattern. Can help to verify UIC entries pattern from users


/enrollment/codePattern

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: text/plain"\
"http://localhost:8080/api/v1/dames/enrollment/codePattern"
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();
        try {
            'String' result = apiInstance.enrollmentCodePatternGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentCodePatternGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

            var apiInstance = new DefaultApi();

            try
            {
                'String' result = apiInstance.enrollmentCodePatternGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentCodePatternGet: " + 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();

try {
    $result = $api_instance->enrollmentCodePatternGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentCodePatternGet: ', $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();

eval { 
    my $result = $api_instance->enrollmentCodePatternGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentCodePatternGet: $@\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()

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

Parameters

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?dateFrom=&dateTo=&street=&wardId=&firstName=&lastName=&creatorId="
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 | Enrolled Date From
        String dateTo = dateTo_example; // String | Enrolled Date To
        String street = street_example; // String | Enrolled from street
        Integer wardId = 56; // Integer | Enrolled from ward ID
        String firstName = firstName_example; // String | AGYW firstName
        String lastName = lastName_example; // String | AGYW lastName
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        try {
            'Integer' result = apiInstance.enrollmentCountGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
            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 dateFrom = dateFrom_example; // String | Enrolled Date From
        String dateTo = dateTo_example; // String | Enrolled Date To
        String street = street_example; // String | Enrolled from street
        Integer wardId = 56; // Integer | Enrolled from ward ID
        String firstName = firstName_example; // String | AGYW firstName
        String lastName = lastName_example; // String | AGYW lastName
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        try {
            'Integer' result = apiInstance.enrollmentCountGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
            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 *dateFrom = dateFrom_example; // Enrolled Date From (optional)
String *dateTo = dateTo_example; // Enrolled Date To (optional)
String *street = street_example; // Enrolled from street (optional)
Integer *wardId = 56; // Enrolled from ward ID (optional)
String *firstName = firstName_example; // AGYW firstName (optional)
String *lastName = lastName_example; // AGYW lastName (optional)
Integer *creatorId = 56; // Who submited the data. CSO User ID (optional)

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

[apiInstance enrollmentCountGetWith:dateFrom
    dateTo:dateTo
    street:street
    wardId:wardId
    firstName:firstName
    lastName:lastName
    creatorId:creatorId
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Enrolled Date From
  'dateTo': dateTo_example, // {{String}} Enrolled Date To
  'street': street_example, // {{String}} Enrolled from street
  'wardId': 56, // {{Integer}} Enrolled from ward ID
  'firstName': firstName_example, // {{String}} AGYW firstName
  'lastName': lastName_example, // {{String}} AGYW lastName
  'creatorId': 56 // {{Integer}} Who submited the data. CSO User ID
};
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 dateFrom = dateFrom_example;  // String | Enrolled Date From (optional) 
            var dateTo = dateTo_example;  // String | Enrolled Date To (optional) 
            var street = street_example;  // String | Enrolled from street (optional) 
            var wardId = 56;  // Integer | Enrolled from ward ID (optional) 
            var firstName = firstName_example;  // String | AGYW firstName (optional) 
            var lastName = lastName_example;  // String | AGYW lastName (optional) 
            var creatorId = 56;  // Integer | Who submited the data. CSO User ID (optional) 

            try
            {
                'Integer' result = apiInstance.enrollmentCountGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
                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();
$dateFrom = dateFrom_example; // String | Enrolled Date From
$dateTo = dateTo_example; // String | Enrolled Date To
$street = street_example; // String | Enrolled from street
$wardId = 56; // Integer | Enrolled from ward ID
$firstName = firstName_example; // String | AGYW firstName
$lastName = lastName_example; // String | AGYW lastName
$creatorId = 56; // Integer | Who submited the data. CSO User ID

try {
    $result = $api_instance->enrollmentCountGet($dateFrom, $dateTo, $street, $wardId, $firstName, $lastName, $creatorId);
    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 $dateFrom = dateFrom_example; # String | Enrolled Date From
my $dateTo = dateTo_example; # String | Enrolled Date To
my $street = street_example; # String | Enrolled from street
my $wardId = 56; # Integer | Enrolled from ward ID
my $firstName = firstName_example; # String | AGYW firstName
my $lastName = lastName_example; # String | AGYW lastName
my $creatorId = 56; # Integer | Who submited the data. CSO User ID

eval { 
    my $result = $api_instance->enrollmentCountGet(dateFrom => $dateFrom, dateTo => $dateTo, street => $street, wardId => $wardId, firstName => $firstName, lastName => $lastName, creatorId => $creatorId);
    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()
dateFrom = dateFrom_example # String | Enrolled Date From (optional)
dateTo = dateTo_example # String | Enrolled Date To (optional)
street = street_example # String | Enrolled from street (optional)
wardId = 56 # Integer | Enrolled from ward ID (optional)
firstName = firstName_example # String | AGYW firstName (optional)
lastName = lastName_example # String | AGYW lastName (optional)
creatorId = 56 # Integer | Who submited the data. CSO User ID (optional)

try: 
    api_response = api_instance.enrollment_count_get(dateFrom=dateFrom, dateTo=dateTo, street=street, wardId=wardId, firstName=firstName, lastName=lastName, creatorId=creatorId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentCountGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (date("dd-mm-yyyy"))
Enrolled Date From
dateTo
String (date("dd-mm-yyyy"))
Enrolled Date To
street
String
Enrolled from street
wardId
Integer
Enrolled from ward ID
firstName
String
AGYW firstName
lastName
String
AGYW lastName
creatorId
Integer
Who submited the data. CSO User ID

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?dateFrom=&dateTo=&street=&wardId=&firstName=&lastName=&creatorId="
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 | Enrolled Date From
        String dateTo = dateTo_example; // String | Enrolled Date To
        String street = street_example; // String | Enrolled from street
        Integer wardId = 56; // Integer | Enrolled from ward ID
        String firstName = firstName_example; // String | AGYW firstName
        String lastName = lastName_example; // String | AGYW lastName
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        try {
            EnrollmentList result = apiInstance.enrollmentListGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
            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 dateFrom = dateFrom_example; // String | Enrolled Date From
        String dateTo = dateTo_example; // String | Enrolled Date To
        String street = street_example; // String | Enrolled from street
        Integer wardId = 56; // Integer | Enrolled from ward ID
        String firstName = firstName_example; // String | AGYW firstName
        String lastName = lastName_example; // String | AGYW lastName
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        try {
            EnrollmentList result = apiInstance.enrollmentListGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
            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 *dateFrom = dateFrom_example; // Enrolled Date From (optional)
String *dateTo = dateTo_example; // Enrolled Date To (optional)
String *street = street_example; // Enrolled from street (optional)
Integer *wardId = 56; // Enrolled from ward ID (optional)
String *firstName = firstName_example; // AGYW firstName (optional)
String *lastName = lastName_example; // AGYW lastName (optional)
Integer *creatorId = 56; // Who submited the data. CSO User ID (optional)

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

[apiInstance enrollmentListGetWith:dateFrom
    dateTo:dateTo
    street:street
    wardId:wardId
    firstName:firstName
    lastName:lastName
    creatorId:creatorId
              completionHandler: ^(EnrollmentList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Enrolled Date From
  'dateTo': dateTo_example, // {{String}} Enrolled Date To
  'street': street_example, // {{String}} Enrolled from street
  'wardId': 56, // {{Integer}} Enrolled from ward ID
  'firstName': firstName_example, // {{String}} AGYW firstName
  'lastName': lastName_example, // {{String}} AGYW lastName
  'creatorId': 56 // {{Integer}} Who submited the data. CSO User ID
};
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 dateFrom = dateFrom_example;  // String | Enrolled Date From (optional) 
            var dateTo = dateTo_example;  // String | Enrolled Date To (optional) 
            var street = street_example;  // String | Enrolled from street (optional) 
            var wardId = 56;  // Integer | Enrolled from ward ID (optional) 
            var firstName = firstName_example;  // String | AGYW firstName (optional) 
            var lastName = lastName_example;  // String | AGYW lastName (optional) 
            var creatorId = 56;  // Integer | Who submited the data. CSO User ID (optional) 

            try
            {
                EnrollmentList result = apiInstance.enrollmentListGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
                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();
$dateFrom = dateFrom_example; // String | Enrolled Date From
$dateTo = dateTo_example; // String | Enrolled Date To
$street = street_example; // String | Enrolled from street
$wardId = 56; // Integer | Enrolled from ward ID
$firstName = firstName_example; // String | AGYW firstName
$lastName = lastName_example; // String | AGYW lastName
$creatorId = 56; // Integer | Who submited the data. CSO User ID

try {
    $result = $api_instance->enrollmentListGet($dateFrom, $dateTo, $street, $wardId, $firstName, $lastName, $creatorId);
    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 $dateFrom = dateFrom_example; # String | Enrolled Date From
my $dateTo = dateTo_example; # String | Enrolled Date To
my $street = street_example; # String | Enrolled from street
my $wardId = 56; # Integer | Enrolled from ward ID
my $firstName = firstName_example; # String | AGYW firstName
my $lastName = lastName_example; # String | AGYW lastName
my $creatorId = 56; # Integer | Who submited the data. CSO User ID

eval { 
    my $result = $api_instance->enrollmentListGet(dateFrom => $dateFrom, dateTo => $dateTo, street => $street, wardId => $wardId, firstName => $firstName, lastName => $lastName, creatorId => $creatorId);
    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()
dateFrom = dateFrom_example # String | Enrolled Date From (optional)
dateTo = dateTo_example # String | Enrolled Date To (optional)
street = street_example # String | Enrolled from street (optional)
wardId = 56 # Integer | Enrolled from ward ID (optional)
firstName = firstName_example # String | AGYW firstName (optional)
lastName = lastName_example # String | AGYW lastName (optional)
creatorId = 56 # Integer | Who submited the data. CSO User ID (optional)

try: 
    api_response = api_instance.enrollment_list_get(dateFrom=dateFrom, dateTo=dateTo, street=street, wardId=wardId, firstName=firstName, lastName=lastName, creatorId=creatorId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentListGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (date("dd-mm-yyyy"))
Enrolled Date From
dateTo
String (date("dd-mm-yyyy"))
Enrolled Date To
street
String
Enrolled from street
wardId
Integer
Enrolled from ward ID
firstName
String
AGYW firstName
lastName
String
AGYW lastName
creatorId
Integer
Who submited the data. CSO User ID

Responses

Status: 200 - OK


enrollmentMaximumAgeGet

get maximum age system supports


/enrollment/maximumAge

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/text"\
"http://localhost:8080/api/v1/dames/enrollment/maximumAge"
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();
        try {
            'Integer' result = apiInstance.enrollmentMaximumAgeGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentMaximumAgeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

            var apiInstance = new DefaultApi();

            try
            {
                'Integer' result = apiInstance.enrollmentMaximumAgeGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentMaximumAgeGet: " + 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();

try {
    $result = $api_instance->enrollmentMaximumAgeGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentMaximumAgeGet: ', $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();

eval { 
    my $result = $api_instance->enrollmentMaximumAgeGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentMaximumAgeGet: $@\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()

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

Parameters

Responses

Status: 200 - OK


enrollmentMinimumAgeGet

get minimum age system supports


/enrollment/minimumAge

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/text"\
"http://localhost:8080/api/v1/dames/enrollment/minimumAge"
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();
        try {
            'Integer' result = apiInstance.enrollmentMinimumAgeGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentMinimumAgeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

            var apiInstance = new DefaultApi();

            try
            {
                'Integer' result = apiInstance.enrollmentMinimumAgeGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentMinimumAgeGet: " + 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();

try {
    $result = $api_instance->enrollmentMinimumAgeGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentMinimumAgeGet: ', $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();

eval { 
    my $result = $api_instance->enrollmentMinimumAgeGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentMinimumAgeGet: $@\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()

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

Parameters

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?dateFrom=&dateTo=&street=&wardId=&firstName=&lastName=&creatorId="
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 | Enrolled Date From
        String dateTo = dateTo_example; // String | Enrolled Date To
        String street = street_example; // String | Enrolled from street
        Integer wardId = 56; // Integer | Enrolled from ward ID
        String firstName = firstName_example; // String | AGYW firstName
        String lastName = lastName_example; // String | AGYW lastName
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        try {
            EnrollmentsListWithPagination result = apiInstance.enrollmentPageGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
            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 dateFrom = dateFrom_example; // String | Enrolled Date From
        String dateTo = dateTo_example; // String | Enrolled Date To
        String street = street_example; // String | Enrolled from street
        Integer wardId = 56; // Integer | Enrolled from ward ID
        String firstName = firstName_example; // String | AGYW firstName
        String lastName = lastName_example; // String | AGYW lastName
        Integer creatorId = 56; // Integer | Who submited the data. CSO User ID
        try {
            EnrollmentsListWithPagination result = apiInstance.enrollmentPageGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
            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 *dateFrom = dateFrom_example; // Enrolled Date From (optional)
String *dateTo = dateTo_example; // Enrolled Date To (optional)
String *street = street_example; // Enrolled from street (optional)
Integer *wardId = 56; // Enrolled from ward ID (optional)
String *firstName = firstName_example; // AGYW firstName (optional)
String *lastName = lastName_example; // AGYW lastName (optional)
Integer *creatorId = 56; // Who submited the data. CSO User ID (optional)

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

[apiInstance enrollmentPageGetWith:dateFrom
    dateTo:dateTo
    street:street
    wardId:wardId
    firstName:firstName
    lastName:lastName
    creatorId:creatorId
              completionHandler: ^(EnrollmentsListWithPagination output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Enrolled Date From
  'dateTo': dateTo_example, // {{String}} Enrolled Date To
  'street': street_example, // {{String}} Enrolled from street
  'wardId': 56, // {{Integer}} Enrolled from ward ID
  'firstName': firstName_example, // {{String}} AGYW firstName
  'lastName': lastName_example, // {{String}} AGYW lastName
  'creatorId': 56 // {{Integer}} Who submited the data. CSO User ID
};
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 dateFrom = dateFrom_example;  // String | Enrolled Date From (optional) 
            var dateTo = dateTo_example;  // String | Enrolled Date To (optional) 
            var street = street_example;  // String | Enrolled from street (optional) 
            var wardId = 56;  // Integer | Enrolled from ward ID (optional) 
            var firstName = firstName_example;  // String | AGYW firstName (optional) 
            var lastName = lastName_example;  // String | AGYW lastName (optional) 
            var creatorId = 56;  // Integer | Who submited the data. CSO User ID (optional) 

            try
            {
                EnrollmentsListWithPagination result = apiInstance.enrollmentPageGet(dateFrom, dateTo, street, wardId, firstName, lastName, creatorId);
                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();
$dateFrom = dateFrom_example; // String | Enrolled Date From
$dateTo = dateTo_example; // String | Enrolled Date To
$street = street_example; // String | Enrolled from street
$wardId = 56; // Integer | Enrolled from ward ID
$firstName = firstName_example; // String | AGYW firstName
$lastName = lastName_example; // String | AGYW lastName
$creatorId = 56; // Integer | Who submited the data. CSO User ID

try {
    $result = $api_instance->enrollmentPageGet($dateFrom, $dateTo, $street, $wardId, $firstName, $lastName, $creatorId);
    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 $dateFrom = dateFrom_example; # String | Enrolled Date From
my $dateTo = dateTo_example; # String | Enrolled Date To
my $street = street_example; # String | Enrolled from street
my $wardId = 56; # Integer | Enrolled from ward ID
my $firstName = firstName_example; # String | AGYW firstName
my $lastName = lastName_example; # String | AGYW lastName
my $creatorId = 56; # Integer | Who submited the data. CSO User ID

eval { 
    my $result = $api_instance->enrollmentPageGet(dateFrom => $dateFrom, dateTo => $dateTo, street => $street, wardId => $wardId, firstName => $firstName, lastName => $lastName, creatorId => $creatorId);
    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()
dateFrom = dateFrom_example # String | Enrolled Date From (optional)
dateTo = dateTo_example # String | Enrolled Date To (optional)
street = street_example # String | Enrolled from street (optional)
wardId = 56 # Integer | Enrolled from ward ID (optional)
firstName = firstName_example # String | AGYW firstName (optional)
lastName = lastName_example # String | AGYW lastName (optional)
creatorId = 56 # Integer | Who submited the data. CSO User ID (optional)

try: 
    api_response = api_instance.enrollment_page_get(dateFrom=dateFrom, dateTo=dateTo, street=street, wardId=wardId, firstName=firstName, lastName=lastName, creatorId=creatorId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (date("dd-mm-yyyy"))
Enrolled Date From
dateTo
String (date("dd-mm-yyyy"))
Enrolled Date To
street
String
Enrolled from street
wardId
Integer
Enrolled from ward ID
firstName
String
AGYW firstName
lastName
String
AGYW lastName
creatorId
Integer
Who submited the data. CSO User ID

Responses

Status: 200 - OK


enrollmentPhoneNumberPatternGet

Fetch enrollment phone number pattern. Can help to verify phone number entry


/enrollment/phoneNumberPattern

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: text/plain"\
"http://localhost:8080/api/v1/dames/enrollment/phoneNumberPattern"
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();
        try {
            'String' result = apiInstance.enrollmentPhoneNumberPatternGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentPhoneNumberPatternGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

            var apiInstance = new DefaultApi();

            try
            {
                'String' result = apiInstance.enrollmentPhoneNumberPatternGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentPhoneNumberPatternGet: " + 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();

try {
    $result = $api_instance->enrollmentPhoneNumberPatternGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentPhoneNumberPatternGet: ', $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();

eval { 
    my $result = $api_instance->enrollmentPhoneNumberPatternGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentPhoneNumberPatternGet: $@\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()

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

Parameters

Responses

Status: 200 - OK


enrollmentPut

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 PUT\
 -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.enrollmentPut(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentPut");
            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.enrollmentPut(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#enrollmentPut");
            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 enrollmentPutWith:body
              completionHandler: ^(Enrollment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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.enrollmentPut(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class enrollmentPutExample
    {
        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.enrollmentPut(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.enrollmentPut: " + 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->enrollmentPut($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->enrollmentPut: ', $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->enrollmentPut(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->enrollmentPut: $@\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_put(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->enrollmentPut: %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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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=&pi="
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
        Boolean pi = true; // Boolean | Hide or show beneficiary personal information
        try {
            NeedList result = apiInstance.needListGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved, pi);
            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
        Boolean pi = true; // Boolean | Hide or show beneficiary personal information
        try {
            NeedList result = apiInstance.needListGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved, pi);
            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)
Boolean *pi = true; // Hide or show beneficiary personal information (optional)

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

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

var api = new DamesCollectApi.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
  'pi': true // {{Boolean}} Hide or show beneficiary personal information
};
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) 
            var pi = true;  // Boolean | Hide or show beneficiary personal information (optional) 

            try
            {
                NeedList result = apiInstance.needListGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved, pi);
                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
$pi = true; // Boolean | Hide or show beneficiary personal information

try {
    $result = $api_instance->needListGet($dateFrom, $dateTo, $enrollmentCode, $serviceId, $resolved, $pi);
    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
my $pi = true; # Boolean | Hide or show beneficiary personal information

eval { 
    my $result = $api_instance->needListGet(dateFrom => $dateFrom, dateTo => $dateTo, enrollmentCode => $enrollmentCode, serviceId => $serviceId, resolved => $resolved, pi => $pi);
    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)
pi = true # Boolean | Hide or show beneficiary personal information (optional)

try: 
    api_response = api_instance.need_list_get(dateFrom=dateFrom, dateTo=dateTo, enrollmentCode=enrollmentCode, serviceId=serviceId, resolved=resolved, pi=pi)
    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
pi
Boolean
Hide or show beneficiary personal information

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=&pi="
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
        Boolean pi = true; // Boolean | Hide or show beneficiary personal information
        try {
            NeedListWithPages result = apiInstance.needPageGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved, pi);
            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
        Boolean pi = true; // Boolean | Hide or show beneficiary personal information
        try {
            NeedListWithPages result = apiInstance.needPageGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved, pi);
            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)
Boolean *pi = true; // Hide or show beneficiary personal information (optional)

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

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

var api = new DamesCollectApi.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
  'pi': true // {{Boolean}} Hide or show beneficiary personal information
};
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) 
            var pi = true;  // Boolean | Hide or show beneficiary personal information (optional) 

            try
            {
                NeedListWithPages result = apiInstance.needPageGet(dateFrom, dateTo, enrollmentCode, serviceId, resolved, pi);
                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
$pi = true; // Boolean | Hide or show beneficiary personal information

try {
    $result = $api_instance->needPageGet($dateFrom, $dateTo, $enrollmentCode, $serviceId, $resolved, $pi);
    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
my $pi = true; # Boolean | Hide or show beneficiary personal information

eval { 
    my $result = $api_instance->needPageGet(dateFrom => $dateFrom, dateTo => $dateTo, enrollmentCode => $enrollmentCode, serviceId => $serviceId, resolved => $resolved, pi => $pi);
    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)
pi = true # Boolean | Hide or show beneficiary personal information (optional)

try: 
    api_response = api_instance.need_page_get(dateFrom=dateFrom, dateTo=dateTo, enrollmentCode=enrollmentCode, serviceId=serviceId, resolved=resolved, pi=pi)
    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
pi
Boolean
Hide or show beneficiary personal information

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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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


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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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


questionAnswerIdGet

Get Single Answer


/question/answer/{id}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/question/answer/{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 Answer Id.
        try {
            AnswerBody result = apiInstance.questionAnswerIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#questionAnswerIdGet");
            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 Answer Id.
        try {
            AnswerBody result = apiInstance.questionAnswerIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#questionAnswerIdGet");
            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 Answer Id.

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

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

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

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

namespace Example
{
    public class questionAnswerIdGetExample
    {
        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 Answer Id.

            try
            {
                AnswerBody result = apiInstance.questionAnswerIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.questionAnswerIdGet: " + 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 Answer Id.

try {
    $result = $api_instance->questionAnswerIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->questionAnswerIdGet: ', $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 Answer Id.

eval { 
    my $result = $api_instance->questionAnswerIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->questionAnswerIdGet: $@\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 Answer Id.

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

Parameters

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

Responses

Status: 202 - OK


questionListActiveGet

Fetch all active questions


/question/list/active

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/question/list/active"
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();
        try {
            QuestionList result = apiInstance.questionListActiveGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#questionListActiveGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

            var apiInstance = new DefaultApi();

            try
            {
                QuestionList result = apiInstance.questionListActiveGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.questionListActiveGet: " + 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();

try {
    $result = $api_instance->questionListActiveGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->questionListActiveGet: ', $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();

eval { 
    my $result = $api_instance->questionListActiveGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->questionListActiveGet: $@\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()

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

Parameters

Responses

Status: 200 - OK


questionListGet

Fetch all questions both active and non active


/question/list

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/question/list"
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();
        try {
            QuestionList result = apiInstance.questionListGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#questionListGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

            var apiInstance = new DefaultApi();

            try
            {
                QuestionList result = apiInstance.questionListGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.questionListGet: " + 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();

try {
    $result = $api_instance->questionListGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->questionListGet: ', $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();

eval { 
    my $result = $api_instance->questionListGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->questionListGet: $@\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()

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

Parameters

Responses

Status: 200 - OK


questionPageGet

Fetch all questions both active and non active with pages


/question/page

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/question/page"
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();
        try {
            QuestionListWithPagination result = apiInstance.questionPageGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#questionPageGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

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

            var apiInstance = new DefaultApi();

            try
            {
                QuestionListWithPagination result = apiInstance.questionPageGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.questionPageGet: " + 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();

try {
    $result = $api_instance->questionPageGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->questionPageGet: ', $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();

eval { 
    my $result = $api_instance->questionPageGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->questionPageGet: $@\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()

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

Parameters

Responses

Status: 200 - OK


questionPost

Create Question


/question

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/question"
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();
        CreateQuestionBody body = ; // CreateQuestionBody | 
        try {
            QuestionBody result = apiInstance.questionPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#questionPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

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

namespace Example
{
    public class questionPostExample
    {
        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 CreateQuestionBody(); // CreateQuestionBody |  (optional) 

            try
            {
                QuestionBody result = apiInstance.questionPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.questionPost: " + 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 = ; // CreateQuestionBody | 

try {
    $result = $api_instance->questionPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->questionPost: ', $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::CreateQuestionBody->new(); # CreateQuestionBody | 

eval { 
    my $result = $api_instance->questionPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->questionPost: $@\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 =  # CreateQuestionBody |  (optional)

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

Parameters

Body parameters
Name Description
body

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=&eligible=&enrollmentCode=&street=&decliningReason=&pi="
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 | Screen date from
        String dateTo = dateTo_example; // String | Screen date to
        Boolean eligible = true; // Boolean | Is eligible
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        String street = street_example; // String | AGWY from Street
        Integer decliningReason = 56; // Integer | Predefined Declining Reason
        Boolean pi = true; // Boolean | True to show personal information
        try {
            'Integer' result = apiInstance.screeningCountGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
            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 | Screen date from
        String dateTo = dateTo_example; // String | Screen date to
        Boolean eligible = true; // Boolean | Is eligible
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        String street = street_example; // String | AGWY from Street
        Integer decliningReason = 56; // Integer | Predefined Declining Reason
        Boolean pi = true; // Boolean | True to show personal information
        try {
            'Integer' result = apiInstance.screeningCountGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
            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; // Screen date from (optional)
String *dateTo = dateTo_example; // Screen date to (optional)
Boolean *eligible = true; // Is eligible (optional)
String *enrollmentCode = enrollmentCode_example; // Enrollment UIC (optional)
String *street = street_example; // AGWY from Street (optional)
Integer *decliningReason = 56; // Predefined Declining Reason (optional)
Boolean *pi = true; // True to show personal information (optional)

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

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

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Screen date from
  'dateTo': dateTo_example, // {{String}} Screen date to
  'eligible': true, // {{Boolean}} Is eligible
  'enrollmentCode': enrollmentCode_example, // {{String}} Enrollment UIC
  'street': street_example, // {{String}} AGWY from Street
  'decliningReason': 56, // {{Integer}} Predefined Declining Reason
  'pi': true // {{Boolean}} True to show personal information
};
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 | Screen date from (optional) 
            var dateTo = dateTo_example;  // String | Screen date to (optional) 
            var eligible = true;  // Boolean | Is eligible (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Enrollment UIC (optional) 
            var street = street_example;  // String | AGWY from Street (optional) 
            var decliningReason = 56;  // Integer | Predefined Declining Reason (optional) 
            var pi = true;  // Boolean | True to show personal information (optional) 

            try
            {
                'Integer' result = apiInstance.screeningCountGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
                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 | Screen date from
$dateTo = dateTo_example; // String | Screen date to
$eligible = true; // Boolean | Is eligible
$enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
$street = street_example; // String | AGWY from Street
$decliningReason = 56; // Integer | Predefined Declining Reason
$pi = true; // Boolean | True to show personal information

try {
    $result = $api_instance->screeningCountGet($dateFrom, $dateTo, $eligible, $enrollmentCode, $street, $decliningReason, $pi);
    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 | Screen date from
my $dateTo = dateTo_example; # String | Screen date to
my $eligible = true; # Boolean | Is eligible
my $enrollmentCode = enrollmentCode_example; # String | Enrollment UIC
my $street = street_example; # String | AGWY from Street
my $decliningReason = 56; # Integer | Predefined Declining Reason
my $pi = true; # Boolean | True to show personal information

eval { 
    my $result = $api_instance->screeningCountGet(dateFrom => $dateFrom, dateTo => $dateTo, eligible => $eligible, enrollmentCode => $enrollmentCode, street => $street, decliningReason => $decliningReason, pi => $pi);
    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 | Screen date from (optional)
dateTo = dateTo_example # String | Screen date to (optional)
eligible = true # Boolean | Is eligible (optional)
enrollmentCode = enrollmentCode_example # String | Enrollment UIC (optional)
street = street_example # String | AGWY from Street (optional)
decliningReason = 56 # Integer | Predefined Declining Reason (optional)
pi = true # Boolean | True to show personal information (optional)

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

Parameters

Query parameters
Name Description
dateFrom
String (date('dd-mm-yyyy'))
Screen date from
dateTo
String (date('dd-mm-yyyy'))
Screen date to
eligible
Boolean
Is eligible
enrollmentCode
String
Enrollment UIC
street
String
AGWY from Street
decliningReason
Integer
Predefined Declining Reason
pi
Boolean
True to show personal information

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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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=&eligible=&enrollmentCode=&street=&decliningReason=&pi="
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 | Screen date from
        String dateTo = dateTo_example; // String | Screen date to
        Boolean eligible = true; // Boolean | Is eligible
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        String street = street_example; // String | AGWY from Street
        Integer decliningReason = 56; // Integer | Predefined Declining Reason
        Boolean pi = true; // Boolean | True to show personal information
        try {
            ScreenList result = apiInstance.screeningListGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
            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 | Screen date from
        String dateTo = dateTo_example; // String | Screen date to
        Boolean eligible = true; // Boolean | Is eligible
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        String street = street_example; // String | AGWY from Street
        Integer decliningReason = 56; // Integer | Predefined Declining Reason
        Boolean pi = true; // Boolean | True to show personal information
        try {
            ScreenList result = apiInstance.screeningListGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
            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; // Screen date from (optional)
String *dateTo = dateTo_example; // Screen date to (optional)
Boolean *eligible = true; // Is eligible (optional)
String *enrollmentCode = enrollmentCode_example; // Enrollment UIC (optional)
String *street = street_example; // AGWY from Street (optional)
Integer *decliningReason = 56; // Predefined Declining Reason (optional)
Boolean *pi = true; // True to show personal information (optional)

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

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

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Screen date from
  'dateTo': dateTo_example, // {{String}} Screen date to
  'eligible': true, // {{Boolean}} Is eligible
  'enrollmentCode': enrollmentCode_example, // {{String}} Enrollment UIC
  'street': street_example, // {{String}} AGWY from Street
  'decliningReason': 56, // {{Integer}} Predefined Declining Reason
  'pi': true // {{Boolean}} True to show personal information
};
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 | Screen date from (optional) 
            var dateTo = dateTo_example;  // String | Screen date to (optional) 
            var eligible = true;  // Boolean | Is eligible (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Enrollment UIC (optional) 
            var street = street_example;  // String | AGWY from Street (optional) 
            var decliningReason = 56;  // Integer | Predefined Declining Reason (optional) 
            var pi = true;  // Boolean | True to show personal information (optional) 

            try
            {
                ScreenList result = apiInstance.screeningListGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
                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 | Screen date from
$dateTo = dateTo_example; // String | Screen date to
$eligible = true; // Boolean | Is eligible
$enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
$street = street_example; // String | AGWY from Street
$decliningReason = 56; // Integer | Predefined Declining Reason
$pi = true; // Boolean | True to show personal information

try {
    $result = $api_instance->screeningListGet($dateFrom, $dateTo, $eligible, $enrollmentCode, $street, $decliningReason, $pi);
    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 | Screen date from
my $dateTo = dateTo_example; # String | Screen date to
my $eligible = true; # Boolean | Is eligible
my $enrollmentCode = enrollmentCode_example; # String | Enrollment UIC
my $street = street_example; # String | AGWY from Street
my $decliningReason = 56; # Integer | Predefined Declining Reason
my $pi = true; # Boolean | True to show personal information

eval { 
    my $result = $api_instance->screeningListGet(dateFrom => $dateFrom, dateTo => $dateTo, eligible => $eligible, enrollmentCode => $enrollmentCode, street => $street, decliningReason => $decliningReason, pi => $pi);
    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 | Screen date from (optional)
dateTo = dateTo_example # String | Screen date to (optional)
eligible = true # Boolean | Is eligible (optional)
enrollmentCode = enrollmentCode_example # String | Enrollment UIC (optional)
street = street_example # String | AGWY from Street (optional)
decliningReason = 56 # Integer | Predefined Declining Reason (optional)
pi = true # Boolean | True to show personal information (optional)

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

Parameters

Query parameters
Name Description
dateFrom
String (date('dd-mm-yyyy'))
Screen date from
dateTo
String (date('dd-mm-yyyy'))
Screen date to
eligible
Boolean
Is eligible
enrollmentCode
String
Enrollment UIC
street
String
AGWY from Street
decliningReason
Integer
Predefined Declining Reason
pi
Boolean
True to show personal information

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=&eligible=&enrollmentCode=&street=&decliningReason=&pi="
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 | Screen date from
        String dateTo = dateTo_example; // String | Screen date to
        Boolean eligible = true; // Boolean | Is eligible
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        String street = street_example; // String | AGWY from Street
        Integer decliningReason = 56; // Integer | Predefined Declining Reason
        Boolean pi = true; // Boolean | True to show personal information
        try {
            ScreenListWithPages result = apiInstance.screeningPageGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
            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 | Screen date from
        String dateTo = dateTo_example; // String | Screen date to
        Boolean eligible = true; // Boolean | Is eligible
        String enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
        String street = street_example; // String | AGWY from Street
        Integer decliningReason = 56; // Integer | Predefined Declining Reason
        Boolean pi = true; // Boolean | True to show personal information
        try {
            ScreenListWithPages result = apiInstance.screeningPageGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
            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; // Screen date from (optional)
String *dateTo = dateTo_example; // Screen date to (optional)
Boolean *eligible = true; // Is eligible (optional)
String *enrollmentCode = enrollmentCode_example; // Enrollment UIC (optional)
String *street = street_example; // AGWY from Street (optional)
Integer *decliningReason = 56; // Predefined Declining Reason (optional)
Boolean *pi = true; // True to show personal information (optional)

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

[apiInstance screeningPageGetWith:dateFrom
    dateTo:dateTo
    eligible:eligible
    enrollmentCode:enrollmentCode
    street:street
    decliningReason:decliningReason
    pi:pi
              completionHandler: ^(ScreenListWithPages output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.DefaultApi()
var opts = { 
  'dateFrom': dateFrom_example, // {{String}} Screen date from
  'dateTo': dateTo_example, // {{String}} Screen date to
  'eligible': true, // {{Boolean}} Is eligible
  'enrollmentCode': enrollmentCode_example, // {{String}} Enrollment UIC
  'street': street_example, // {{String}} AGWY from Street
  'decliningReason': 56, // {{Integer}} Predefined Declining Reason
  'pi': true // {{Boolean}} True to show personal information
};
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 | Screen date from (optional) 
            var dateTo = dateTo_example;  // String | Screen date to (optional) 
            var eligible = true;  // Boolean | Is eligible (optional) 
            var enrollmentCode = enrollmentCode_example;  // String | Enrollment UIC (optional) 
            var street = street_example;  // String | AGWY from Street (optional) 
            var decliningReason = 56;  // Integer | Predefined Declining Reason (optional) 
            var pi = true;  // Boolean | True to show personal information (optional) 

            try
            {
                ScreenListWithPages result = apiInstance.screeningPageGet(dateFrom, dateTo, eligible, enrollmentCode, street, decliningReason, pi);
                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 | Screen date from
$dateTo = dateTo_example; // String | Screen date to
$eligible = true; // Boolean | Is eligible
$enrollmentCode = enrollmentCode_example; // String | Enrollment UIC
$street = street_example; // String | AGWY from Street
$decliningReason = 56; // Integer | Predefined Declining Reason
$pi = true; // Boolean | True to show personal information

try {
    $result = $api_instance->screeningPageGet($dateFrom, $dateTo, $eligible, $enrollmentCode, $street, $decliningReason, $pi);
    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 | Screen date from
my $dateTo = dateTo_example; # String | Screen date to
my $eligible = true; # Boolean | Is eligible
my $enrollmentCode = enrollmentCode_example; # String | Enrollment UIC
my $street = street_example; # String | AGWY from Street
my $decliningReason = 56; # Integer | Predefined Declining Reason
my $pi = true; # Boolean | True to show personal information

eval { 
    my $result = $api_instance->screeningPageGet(dateFrom => $dateFrom, dateTo => $dateTo, eligible => $eligible, enrollmentCode => $enrollmentCode, street => $street, decliningReason => $decliningReason, pi => $pi);
    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 | Screen date from (optional)
dateTo = dateTo_example # String | Screen date to (optional)
eligible = true # Boolean | Is eligible (optional)
enrollmentCode = enrollmentCode_example # String | Enrollment UIC (optional)
street = street_example # String | AGWY from Street (optional)
decliningReason = 56 # Integer | Predefined Declining Reason (optional)
pi = true # Boolean | True to show personal information (optional)

try: 
    api_response = api_instance.screening_page_get(dateFrom=dateFrom, dateTo=dateTo, eligible=eligible, enrollmentCode=enrollmentCode, street=street, decliningReason=decliningReason, pi=pi)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->screeningPageGet: %s\n" % e)

Parameters

Query parameters
Name Description
dateFrom
String (date('dd-mm-yyyy'))
Screen date from
dateTo
String (date('dd-mm-yyyy'))
Screen date to
eligible
Boolean
Is eligible
enrollmentCode
String
Enrollment UIC
street
String
AGWY from Street
decliningReason
Integer
Predefined Declining Reason
pi
Boolean
True to show personal information

Responses

Status: 200 - OK


screeningPost

Post Screening. What to consider agreed key should be check 'true' if the candidate agreed to be enrolled. If checked 'false' screening will never be linked with any enrollment.


/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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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


userUserIdCsoGet

Fetch the CSO by user ID


/user/{userId}/cso

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/user/{userId}/cso"
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 userId = 56; // Integer | Pass enrollment user ID.
        try {
            CSO result = apiInstance.userUserIdCsoGet(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#userUserIdCsoGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

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

var api = new DamesCollectApi.DefaultApi()
var userId = 56; // {{Integer}} Pass enrollment user ID.

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

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

            var apiInstance = new DefaultApi();
            var userId = 56;  // Integer | Pass enrollment user ID.

            try
            {
                CSO result = apiInstance.userUserIdCsoGet(userId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.userUserIdCsoGet: " + 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();
$userId = 56; // Integer | Pass enrollment user ID.

try {
    $result = $api_instance->userUserIdCsoGet($userId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->userUserIdCsoGet: ', $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 $userId = 56; # Integer | Pass enrollment user ID.

eval { 
    my $result = $api_instance->userUserIdCsoGet(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->userUserIdCsoGet: $@\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()
userId = 56 # Integer | Pass enrollment user ID.

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

Parameters

Path parameters
Name Description
userId*
Integer
Pass enrollment user ID.
Required

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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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 DamesCollectApi = require('dames_collect_api');
var defaultClient = DamesCollectApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new DamesCollectApi.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