UCL_IBM_cARd
  1. Likes
UCL_IBM_cARd
  • User
    • User Delete
      POST
    • User Update
      POST
    • User Find By ID
      POST
    • User Get All
      POST
    • User List
      POST
    • User Add
      POST
  • Category
    • Category Add
      POST
    • Category Delete
      POST
    • Category Update
      POST
    • Category Find By ID
      POST
    • Category Get All
      POST
    • Category List
      POST
  • Comment
    • Comment Add
      POST
    • Comment Update
      POST
    • Comment Find By ID
      POST
    • Comment Get All
      POST
    • Comment List
      POST
    • Comment Delete
      POST
  • Collection
    • Collection Add
      POST
    • Collection Update
      POST
    • Collection Delete
      POST
    • Collection Find By ID
      POST
    • Collection Get All
      POST
    • Comment List
      POST
  • Articles
    • Article Add
    • Article Delete
    • Article Update
    • Article Find By ID
    • Article Get All
    • Article List
  • Likes
    • Like Add
      POST
    • LikeUpdate
      POST
    • Like Delete
      POST
    • Like Find By ID
      POST
    • Like Get All
      POST
    • Like List
      POST
  1. Likes

LikeUpdate

POST
/likeArticle/update
责任人:Chen Yang
Update a Like to an User

请求参数

Query 参数
id
integer 
Saved Id
必需
示例值:
1
userId
integer 
User Id
必需
示例值:
1
articleId
integer 
必需
Article Id
示例值:
1
updatedAt
string 
可选
Updated Time
示例值:
2022-03-31T19:15:01.356Z
createdAt
string 
可选
Created Time
示例值:
2022-03-31T19:15:01.356Z
article
string 
可选
Article Data
user
string 
User Data
可选

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/likeArticle/update?id=1&userId=1&articleId=1'

返回响应

🟢200Success
application/json
Body
code
integer 
必需
data
object 
必需
id
integer 
必需
userId
integer 
必需
articleId
integer 
必需
updatedAt
string 
必需
createdAt
string 
必需
示例
{
  "code": 0,
  "data": {
    "id": 0,
    "userId": 0,
    "articleId": 0,
    "updatedAt": "string",
    "createdAt": "string"
  }
}
🔴500Failed
上一页
Like Add
下一页
Like Delete
Built with