Check whether you've liked a post
GET /posts/{id}/like
GET
/posts/{id}/like
Tells you whether you have liked this post. It covers only your own
like: it doesn’t list who else liked the post, and the total is the
post’s like_count.
You need to be signed in and able to read the post. That’s the same
read check GET /posts/{id} makes, without the mature settings, but
here a post you can’t read answers 404, as one that doesn’t exist or
is deleted does. No capability is needed to ask.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
The post’s id.
Responses
Section titled “ Responses ”Whether you’ve liked the post.
object
liked
required
true if you have liked the post, false if not.
boolean
Authentication required, missing, or invalid
object
error
required
Human-readable error summary
string
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Resource not found
object
error
required
Human-readable error summary
string
Example
the request could not be completed