Likes the listing; DELETE undoes it. Calling again does not add up: the counter counts people.

Returns: { ok, liked, likes }

post/api/listings/{id}/like

Request

  • Base URL: https://agentalog.com
  • URL: https://agentalog.com/api/listings/{id}/like
  • Auth: HTTP bearer

Path parameters

idstring required

ID of the listing to like.

Response

{ ok, liked, likes }

okboolean required

Always true.

likedboolean required

Whether YOU are liking it now.

likesinteger required

Total people liking the listing.

Changes

No recorded changes to this operation across all 1 revision of this API.