Post Detail API - Merevoli-DatLuu/SocialNetworkAPI GitHub Wiki

post/<post_id> - Trả về thông tin chi tiết của một bài post

HTTP/1.1 GET /api/v1/post/<post_id>

  • Permission: everyone
  • Require Logged In: true
  • Require Verified User: true

Parameter:

Field Method Type Description Required

Success 200:

Field Type Description
status string Trạng thái
message string Thông báo chi tiết
... string ...

Example:

Request

GET http://127.0.0.1:8000/api/v1/post/1 HTTP/1.1
content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjI2Njk4MzIxLCJqdGkiOiIzOGJhZmRhZjE1M2Q0YzdhODk4NWIxMDg1Zjg1NWNlZCIsInVzZXJfaWQiOjIxfQ.ppVi2B6C804uJNDdQMjOgqyC-SyPV1guPTVsxiTDx2I

Response data

⚠️ **GitHub.com Fallback** ⚠️