Love API

1. 게시글 좋아요

Request
PUT /api/v1/loves/1514 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NjYsImF1dGgiOiJVU0VSIiwidHlwZSI6Ik5PTkUifQ.cyBkj9RV1WrsyDwlGb2J-JgHptTcH9VigLPKIqfXaVdcLzAfCgc9yMPaqkEBKneWS3i3DyNFoesWDzIQ2AFpnw
Accept: application/json
Host: localhost:8080
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 65

{
  "code" : "SUCCESS",
  "message" : "성공",
  "data" : 1514
}

2. 게시글 좋아요 취소

Request
DELETE /api/v1/loves/1517 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NjYsImF1dGgiOiJVU0VSIiwidHlwZSI6Ik5PTkUifQ.cyBkj9RV1WrsyDwlGb2J-JgHptTcH9VigLPKIqfXaVdcLzAfCgc9yMPaqkEBKneWS3i3DyNFoesWDzIQ2AFpnw
Accept: application/json
Host: localhost:8080
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 48

{
  "code" : "SUCCESS",
  "message" : "성공"
}

3. 유저의 게시글 좋아요 여부 확인

Request
GET /api/v1/loves/1518 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NjYsImF1dGgiOiJVU0VSIiwidHlwZSI6Ik5PTkUifQ.cyBkj9RV1WrsyDwlGb2J-JgHptTcH9VigLPKIqfXaVdcLzAfCgc9yMPaqkEBKneWS3i3DyNFoesWDzIQ2AFpnw
Accept: application/json
Host: localhost:8080
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 66

{
  "code" : "SUCCESS",
  "message" : "성공",
  "data" : false
}