-
Notifications
You must be signed in to change notification settings - Fork 1
API 명세서
hyewon Do edited this page Dec 28, 2020
·
6 revisions
POST /api/snack
- Request
{
"storeName":"호호붕어빵",
"food":"boong",
"locationNum":[35.354354, 29.54324],
"location":"대구 중구 동성로",
"time":["09:00", "21:00"]
}
- Response
SUCCESS
status 201
json { "result" : true, "newSnack" : "newSnack" }
FAILURE
status 400
json { "result" : false, "message" : "데이터 생성에 실패했습니다" }
GET /api/snack
- Request
{}
- Response
SUCCESS
status 200
json { "result" : true, "allSnacks" : "allSnacks" }
FAILURE
status 400
json { "result" : false, "message" : "데이터를 얻어오지 못했습니다." }
GET /api/snack/:foodType
- Request
{ "params":"foodType" }
- Response
SUCCESS
status 200
json { "result" : true, "selectedSnack" : "selectedSnack" }
FAILURE
status 400
json { "result" : false, "message" : "데이터를 얻어오지 못했습니다." }
Git
REDUX
Settings