Skip to content

Like Project

  Method: POST

/api/ps/projects/like/{ID}

Code samples

await fetch('/api/ps/projects/like/{ID}', {
    method: 'POST',
}).then(async (response) => {
    console.log(response)
})
  HTTP response status codes
Status code Description
200 OK
404 Resource not found
500 Internal Error

  Status: 200

{
    "id": 31,
    "projectId": 3,
    "key": "421aa90e079fa326b6494f812ad13e79",
    "createAt": 1661929660607
}

  Status: 404

{
    "code": 404,
    "message": "Resource not found"
}

  Status: 500

{
    "code": 500,
    "message": "Internal Error"
}