All Verbs | /Profile/{id}/Like |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | path | long | No | |
Type | query | UserLikeType | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Success | form | bool | No | |
IsMutualMatch | form | bool | No | |
UserStatus | form | UserLikeStatus | No | |
IsMutualFavourite | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RemainingLikes | form | int | No | |
LikeLimit | form | int | No | |
RemainingFavourites | form | int | No | |
FavouritesLimit | form | int | No | |
LikeCredits | form | int | No | |
FavCredits | form | int | No | |
TimeToReset | form | double | No | |
ResultType | form | UserLikeResultType | 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 /Profile/{id}/Like HTTP/1.1
Host: tstsrvs.redhotpie.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
Type: Like
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Success: False, IsMutualMatch: False, UserStatus: { RemainingLikes: 0, LikeLimit: 0, RemainingFavourites: 0, FavouritesLimit: 0, LikeCredits: 0, FavCredits: 0, TimeToReset: 0, ResultType: SendAllowed }, IsMutualFavourite: False }