OpenAPI 參考Community
Get one post with its replies
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication.
In: header
Path Parameters
slug*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/community/posts/string"{ "id": "string", "categorySlug": "string", "categoryName": "string", "categoryShowVotes": true, "kind": "question", "title": "string", "slug": "string", "url": "string", "body": "string", "bodyText": "string", "excerpt": "string", "lang": "string", "author": { "id": "string", "name": "string", "image": "string", "isStaff": true }, "replyCount": 0, "likeCount": 0, "viewCount": 0, "likedByMe": true, "isPinned": true, "isLocked": true, "isSolved": true, "acceptedReplyId": "string", "triageStatus": "triage", "closeReason": "answered", "duplicateOf": { "slug": "string", "title": "string", "url": "string" }, "indexable": true, "isEdited": true, "editedAt": "string", "editedBy": { "id": "string", "name": "string", "isAuthor": true }, "createdAt": "string", "updatedAt": "string", "lastActivityAt": "string", "replies": [ { "id": "string", "postId": "string", "author": { "id": "string", "name": "string", "image": "string", "isStaff": true }, "body": "string", "bodyText": "string", "quotedReplyId": "string", "likeCount": 0, "likedByMe": true, "isAccepted": true, "isEdited": true, "editedAt": "string", "editedBy": { "id": "string", "name": "string", "isAuthor": true }, "createdAt": "string", "updatedAt": "string" } ], "acceptedReply": { "id": "string", "postId": "string", "author": { "id": "string", "name": "string", "image": "string", "isStaff": true }, "body": "string", "bodyText": "string", "quotedReplyId": "string", "likeCount": 0, "likedByMe": true, "isAccepted": true, "isEdited": true, "editedAt": "string", "editedBy": { "id": "string", "name": "string", "isAuthor": true }, "createdAt": "string", "updatedAt": "string" }}