-
Notifications
You must be signed in to change notification settings - Fork 1
Comment API Specification
Suhwan Kim edited this page Nov 5, 2024
·
2 revisions
κΈ°λ₯ | λ©μλ | URI | λΉκ³ |
---|---|---|---|
λκΈ μ‘°ν | GET | /v2/feeds/{feed_id}/comments | β |
λκΈ μμ± | POST | /v2/feeds/{feed_id}/comments | β |
λκΈ κ°μ μ‘°ν | GET | /v2/feeds/{feed_id}/comments/count | β |
interface Request {
uri: "/v2/feeds/{feed_id}/comments?page={}&count={}";
method: "GET";
query: {
page: string; // default = 1
count: string; // default = 10
}
body {}
}
interface Response {
code: "2000";
data: {
comments: Comment[]; // 0οΈβ£ Comment
currentPageNumber: number; // νμ¬ νμ΄μ§μ μ
pageSize: number; // νμ΄μ§ ν¬κΈ°
numberOfElements: number; // μ€μ λ°μ΄ν°μ μ
hasNext: boolean; // λ€μ μ‘΄μ¬νλμ§
};
}
interface Request {
uri: "/v2/feeds/{feed_id}/comments";
method: "POST";
body: {
content: string;
};
}
interface Response {
code: "2000";
data: {};
}
interface Request {
uri: "/v2/feeds/{feed_id}/comments/count";
method: "GET";
body: {};
}
interface Response {
code: "2000";
data: {
totalCount: number;
};
}