POST api/Favorites/PostFavorite

Request Information

URI Parameters

None.

Body Parameters

Favorite
NameDescriptionTypeAdditional information
FavoriteId

integer

None.

UserId

string

None.

AlbumId

integer

None.

CreatedDate

date

None.

ModifiedDate

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "FavoriteId": 1,
  "UserId": "sample string 2",
  "AlbumId": 3,
  "CreatedDate": "2018-05-10T13:09:27.8090746+00:00",
  "ModifiedDate": "2018-05-10T13:09:27.8090746+00:00",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<Favorite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JalsoApi.Models">
  <AlbumId>3</AlbumId>
  <CreatedDate>2018-05-10T13:09:27.8090746+00:00</CreatedDate>
  <FavoriteId>1</FavoriteId>
  <IsDeleted>true</IsDeleted>
  <ModifiedDate>2018-05-10T13:09:27.8090746+00:00</ModifiedDate>
  <UserId>sample string 2</UserId>
</Favorite>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Favorite
NameDescriptionTypeAdditional information
FavoriteId

integer

None.

UserId

string

None.

AlbumId

integer

None.

CreatedDate

date

None.

ModifiedDate

date

None.

IsDeleted

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "FavoriteId": 1,
  "UserId": "sample string 2",
  "AlbumId": 3,
  "CreatedDate": "2018-05-10T13:09:27.8090746+00:00",
  "ModifiedDate": "2018-05-10T13:09:27.8090746+00:00",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<Favorite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JalsoApi.Models">
  <AlbumId>3</AlbumId>
  <CreatedDate>2018-05-10T13:09:27.8090746+00:00</CreatedDate>
  <FavoriteId>1</FavoriteId>
  <IsDeleted>true</IsDeleted>
  <ModifiedDate>2018-05-10T13:09:27.8090746+00:00</ModifiedDate>
  <UserId>sample string 2</UserId>
</Favorite>