POST api/SafetyPolicy/UpdateSafetyLibraryFavorite

Request Information

URI Parameters

None.

Body Parameters

SafetyFavoriteMdl
NameDescriptionTypeAdditional information
SafetyId

integer

None.

AddToFavorite

boolean

None.

RemoveToFavorite

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "SafetyId": 1,
  "AddToFavorite": true,
  "RemoveToFavorite": true
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SafetyFavoriteMdl'.

Response Information

Resource Description

ResponseMdl
NameDescriptionTypeAdditional information
Status

boolean

None.

Data

Object

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Data": {},
  "Message": "sample string 3"
}