- Introduction
- Changelog Release
- Local Development
- Artikel Docs
- article-controller
- getArticleDiscoveryGET
- get user's list of viewed / liked articlesGET
- getTaxonomiesGET
- get list of featured articles by modeGET
- getListSubCategoryGET
- get list of curated article by weekGET
- bulk index all published article to elastic searchGET
- delete all indexed article in elastic searchDELETE
- like / unlike an articlePOST
- get article by slug and increase read counterGET
- readDetailArticleV2GET
- readDetailArticleGET
- getWeeklyRecomendedArticleGET
- get list of articles related to specific article by slugGET
- get list of articles related to specific article by idGET
- search (return list of articles related to) in all user's liked articles by termGET
- search (return list of articles related to) in all articles by termGET
- get url for sharing an article by idGET
- get list of all article slugGET
- getArticleOverviewSubCategoryGET
- getWeeklyTipsArticleGET
- get list of user's activity (view, like, and share article)GET
- getArticleByCategoryParentGET
- getWeeklyRandomTextGET
- file-controller
- migration-controller
- milestone-controller
- question-and-ask-controller
like / unlike an article
POST
/article/like
article-controller
Request
Body Params application/json
like
boolean
optional
Example:
true
postId
integer <int64>
optional
Example:
4
Example
{
"like": true,
"postId": 4
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/article/like' \
--header 'Content-Type: application/json' \
--data-raw '{
"like": true,
"postId": 4
}'
Responses
🟢200OK
application/json
Body
code
integer <int32>
optional
data
string
optional
message
string
optional
Example
{
"code": 0,
"data": "string",
"message": "string"
}
Modified at 2023-01-23 06:59:19