Base API URL: /api
Body:
{
"name": "Student",
"email": "student@example.com",
"password": "password123"
}Body:
{
"email": "student@example.com",
"password": "password123"
}Requires:
Authorization: Bearer <token>
Requires auth and multipart form data:
photo: image filecaption: optional text
Returns posts with author, like count, comment count, and whether the current user liked each post.
Only the owner can delete a post.
Likes a post.
Unlikes a post.
Returns comments for one post.
Body:
{
"text": "Nice photo!"
}Only the owner can delete a comment.