Supplement - Add supplement as favourite
API Url
Used to add any kind of supplement (number or time) as favourite.
POST
http://localhost:16010/ProMarkREST/rest/Supplement/supplement-favorites/{supplementId}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| supplementId | String | Unique supplement ID. |
Query parameters
| Field | Type | Description |
|---|---|---|
typeoptional | String | 0 = time , 1 = number . Default is number. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example:
{"response": {"errorCode": 5,"errorMessage": "No employees"}}