Appearance
getProfessions ​
Retrieves a list of professions.
Version Note
Current version = 3 — removed field en_US and replaced with the locale parameter.
Request ​
http
GET /rest/refdata/professionsQuery Parameters ​
| Parameter | Type | Required | Description |
|---|---|---|---|
professionId | integer | No | Filter by a single profession ID |
professionName | string | No | Filter by profession name |
locale | string | No | Locale for translated names |
Examples ​
http
GET /rest/refdata/professions
GET /rest/refdata/professions?professionId=1
GET /rest/refdata/professions?professionName=DoctorResponse ​
200 OK ​
json
[
{
"professionId": 1,
"professionName": "Doctor",
"professionOrder": 1
},
{
"professionId": 2,
"professionName": "Nurse",
"professionOrder": 2
}
]| Field | Type | Description |
|---|---|---|
professionId | integer | Primary key of the profession |
professionName | string(255) | Name of the profession |
professionOrder | integer | Display order |
Errors ​
| Exception | Cause |
|---|---|
WSInvalidParameterException | Invalid parameter value |
WSRefDataServiceException | Service error while fetching professions |
Version ​
http
GET /rest/refdata/professions/versionjson
{ "version": 3 }