| POST | /illness |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Illness | body | IllnessDetailDto | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| LegacyId | form | long? | No | |
| TargetType | form | TargetType | No | |
| IsActive | form | bool? | No | |
| Localizations | form | List<IllnessLocalizationDto> | No |
| Name | Value | |
|---|---|---|
| Human | 1 | |
| Animal | 2 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| LanguageCode | form | LanguageCode | No | |
| Name | form | string | No | |
| Summary | form | string | No |
| Name | Value | |
|---|---|---|
| de | 1 | |
| fr | 2 | |
| it | 3 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| IllnessId | form | long | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /illness HTTP/1.1
Host: heidak-api.build.exanic.ch
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
illness:
{
id: 0,
legacyId: 0,
targetType: 1,
isActive: False,
localizations:
[
{
id: 0,
languageCode: 1,
name: String,
summary: String
}
]
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
illnessId: 0
}