Skip to content
This repository was archived by the owner on Dec 13, 2020. It is now read-only.

1. RestGuestController

Min Kuk Jo edited this page Sep 1, 2018 · 1 revision

Guest

공통된 요청 헤더

{
   Content-Type: application/json
}

상품 목록을 포함한 메인 페이지

메소드 경로
GET /api

응답 바디

{
    "data": [
        {
            "id": 1,
            "productName": "차량용방향제(통풍구형)-어피치",
            "productPrice": 13900,
            "imgUrl": "/res/img/1.jpg"
        },
        {
            "id": 2,
            "productName": "베이직머그-케로앤베로",
            "productPrice": 12000,
            "imgUrl": "/res/img/2.jpg"
        },
        {
            "id": 3,
            "productName": "스마일_핸드퍼펫 프로도",
            "productPrice": 17000,
            "imgUrl": "/res/img/3.jpg"
        }
    ],
    "msg": "메인 - 상품 목록 포함"
}

회원가입

메소드 경로
POST /api/register

요청 바디

{
	"login": "test123",
	"password": "1111"
}

응답 바디

{
    "data": {
        "id": 7,
        "login": "test123t",
        "password": "ffe1abd1a8215353c233d6e09613e95eec4253832a761af28ff37ac5a15c"
    },
    "msg": "회원가입 성공"
}

Clone this wiki locally