Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 2.53 KB

ObjectDepartmentApi.md

File metadata and controls

64 lines (47 loc) · 2.53 KB

ObjectDepartmentApi

All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest

Method HTTP request Description
departmentGetAutocompleteV2 GET /2/object/department/getAutocomplete/{sSelector} Retrieve Departments and IDs

departmentGetAutocompleteV2

DepartmentGetAutocompleteV2Response departmentGetAutocompleteV2(sSelector, eFilterActive, sQuery, acceptLanguage)

Retrieve Departments and IDs

Get the list of Department to be used in a dropdown or autocomplete control.

Example

// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*

val apiInstance = ObjectDepartmentApi()
val sSelector : kotlin.String = sSelector_example // kotlin.String | The type of Departments to return
val eFilterActive : kotlin.String = eFilterActive_example // kotlin.String | Specify which results we want to display.
val sQuery : kotlin.String = sQuery_example // kotlin.String | Allow to filter the returned results
val acceptLanguage : HeaderAcceptLanguage =  // HeaderAcceptLanguage | 
try {
    val result : DepartmentGetAutocompleteV2Response = apiInstance.departmentGetAutocompleteV2(sSelector, eFilterActive, sQuery, acceptLanguage)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling ObjectDepartmentApi#departmentGetAutocompleteV2")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling ObjectDepartmentApi#departmentGetAutocompleteV2")
    e.printStackTrace()
}

Parameters

| sSelector | kotlin.String| The type of Departments to return | [enum: All, AllButDepartmentZero, Company, CompanyButDepartmentZero] | | eFilterActive | kotlin.String| Specify which results we want to display. | [optional] [default to Active] [enum: All, Active, Inactive] | | sQuery | kotlin.String| Allow to filter the returned results | [optional] |

Name Type Description Notes
acceptLanguage HeaderAcceptLanguage [optional] [enum: *, en, fr]

Return type

DepartmentGetAutocompleteV2Response

Authorization

Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json