API 목록

포인트 선물

요청

Request

POST /points/present HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 70
Host: docs.api.com
Cookie: accessToken=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzNDMiLCJyb2xlcyI6IlJPTEVf7ZqM7JuQIiwiaWF0IjoxNzExMTE5MTQyLCJleHAiOjE3MTExMjI3NDJ9.WERYKC9t98MDszF5w86GugOHc200JYpzeFwGPaWaJKU

{
  "point" : 1000,
  "memberId" : 345,
  "message" : "TEST MESSAGE"
}

Request Cookies

Name Description

accessToken

ACCESS TOKEN (ROLE_회원)

Request Fields

필드명 타입 필수값 양식 설명

point

Number

true

선물할 점수를 입력해주세요.

memberId

Number

true

선물받을 회원의 ID를 입력해주세요.

message

String

true

선물받을 회원에게 보낼 메시지를 입력해주세요

응답

Response

HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY

포인트 내역 조회

요청

Request

GET /points HTTP/1.1
Host: docs.api.com
Cookie: accessToken=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzMzkiLCJyb2xlcyI6IlJPTEVf7ZqM7JuQIiwiaWF0IjoxNzExMTE5MTQyLCJleHAiOjE3MTExMjI3NDJ9.JBnwgX5AZ8idRAmNSuqybv8qp-pf9iD3drU50qHJFbM

Request Cookies

Name Description

accessToken

ACCESS TOKEN (ROLE_회원)

응답

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
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 772

{
  "content" : [ {
    "point" : 10000,
    "description" : "TEST MESSAGE",
    "date" : "2024-03-22 14:52:22"
  }, {
    "point" : 10000,
    "description" : "TEST MESSAGE",
    "date" : "2024-03-22 14:52:22"
  }, {
    "point" : 10000,
    "description" : "TEST MESSAGE",
    "date" : "2024-03-22 14:52:22"
  } ],
  "pageable" : {
    "sort" : {
      "empty" : false,
      "sorted" : true,
      "unsorted" : false
    },
    "offset" : 0,
    "pageNumber" : 0,
    "pageSize" : 10,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalPages" : 1,
  "totalElements" : 3,
  "first" : true,
  "size" : 10,
  "number" : 0,
  "sort" : {
    "empty" : false,
    "sorted" : true,
    "unsorted" : false
  },
  "numberOfElements" : 3,
  "empty" : false
}

Response Fields

Path Type Description

content[].point

Number

포인트 내역

content[].description

String

포인트 설명

content[].date

String

포인트 생성 날짜

empty

Boolean

가져오는 페이지가 비어 있는 지

first

Boolean

첫 페이지인지

last

Boolean

마지막 페이지인지

number

Number

페이지 number (0부터 시작)

numberOfElements

Number

현재 페이지의 데이터 개수

pageable

Object

페이지에 대한 부가 정보

sort.empty

Boolean

정렬 기준이 비어 있는 지

sort.sorted

Boolean

정렬이 되었는지

sort.unsorted

Boolean

정렬이 되지 않았는지

totalPages

Number

총 페이지 수

totalElements

Number

총 요소 수

size

Number

한 페이지당 데이터 개수