Request Header
Name | Type | Required? | Description |
key | uuid | Yes | API 등록키 |
Request - Body Raw
{
"onedayClass": {
"title": "파워리프팅 아카데미",
"category": "",
"category_sort_index": 0,
"startTime": "2024-06-15 13:00:00",
"endTime": "2024-06-15 16:30:00",
"description": "올바른 3대운동 기술을 배워보는 클래스",
"tag": [
"인천",
"트레이닝"
],
"location": "인천 계양구 아나지로 417 토탈아트 3층, 크로스리프팅",
"placeName": "크로스리프팅",
"placeId": 1503085147,
"targetUser": "부상없이 3대운동을 하고 싶은 분",
"inclusion": "탈의실, 샤워실, 주차",
"exclusion": "없음",
"maximumCapacity": 10,
"minimumCapacity": 5,
"price": 70000,
"caution": [
"최소 참여 인원은 5명이며, 5명 미만일 경우 클래스가 취소될 수 있습니다"
],
"thumbnailName": "크로스리프팅",
"thumbnailSquareImage": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/17_powerliftingAcademy/thumbnailSquare.png",
"thumbnailCircleImage": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/17_powerliftingAcademy/thumbnailCircle.png",
"headerImage": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/17_powerliftingAcademy/header.png",
"detailImage": [
{
"height": 4870.23,
"width": 375,
"url": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/17_powerliftingAcademy/detail.png"
}
],
"trainerImage": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/17_powerliftingAcademy/trainer.png",
"surveyQuestion": [
{
"question": "운동경력",
"placeholder": "운동 경력을 적어주세요.",
"isRequired": true
},
{
"question": "부상 이력 및 기타 참고",
"placeholder": "부상 이력을 적어주세요.",
"isRequired": false
}
],
"trainerName": "이용수",
"trainerSns": [
{
"type": "instagram",
"url": "https://www.instagram.com/crosslifting_mrs_lee/"
},
{
"type": "youtube",
"url": "https://www.youtube.com/@yongsoolee1053"
}
],
"bannerImage": [
{
"height": 51,
"width": 375,
"url": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/common/promotion-earlybird.png",
"type": "promotion-earlybird"
},
{
"height": 465.23,
"width": 375,
"url": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/common/collaboration.png",
"type": "collaboration"
},
{
"height": 187,
"width": 375,
"url": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/common/subTag-photo.png",
"type": "subTag-photo"
}
],
"headerImageSlider": [
"https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/test-class2/headerImageSlider1.png",
"https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/test-class2/headerImageSlider2.png",
"https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/test-class2/headerImageSlider3.png",
"https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/test-class2/headerImageSlider4.png",
"https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/test-class2/headerImageSlider5.png"
],
"youtube": [
"https://www.youtube.com/watch?v=G755JQ322WM",
"https://www.youtube.com/watch?v=gRGEaqZeHSA"
],
"promotion": [
{
"type": "earlybird",
"price": 100000,
"discountRate": 10,
"startTime": "2024-05-16T02:00:00.000Z",
"endTime": "2024-05-31T04:00:00.000Z"
}
],
"subTag": [
{
"type": "photo"
},
{
"type": "multiSession"
}
],
"documentVersion": 2,
"documentFormat": [
{
"componentType": "sectionDivider",
"height": 16,
"width": 375
},
{
"componentType": "multiSession"
},
{
"componentType": "bannerImage",
"type": "promotion-earlybird"
},
{
"componentType": "bannerImage",
"type": "collaboration"
},
{
"componentType": "bannerImage",
"type": "subTag-photo"
},
{
"componentType": "margin",
"margin": 24
},
{
"componentType": "image",
"imageIndex": 0
},
{
"componentType": "margin",
"margin": 24
},
{
"componentType": "trainerSns"
},
{
"componentType": "margin",
"margin": 24
},
{
"componentType": "youtube",
"videoIndex": 0
},
{
"componentType": "image",
"imageIndex": 1
},
{
"componentType": "margin",
"margin": 24
},
{
"componentType": "youtube",
"videoIndex": 1
},
{
"componentType": "image",
"imageIndex": 2
},
{
"componentType": "margin",
"margin": 24
},
{
"componentType": "classExercise"
},
{
"componentType": "image",
"imageIndex": 3
},
{
"componentType": "margin",
"margin": 24
},
{
"componentType": "map"
},
{
"componentType": "margin",
"margin": 24
},
{
"componentType": "policy"
},
{
"componentType": "margin",
"margin": 32
},
{
"componentType": "csChannel"
},
{
"componentType": "margin",
"margin": 54
}
],
"sessionInformation": [
{
"startTime": "2024-06-08T02:00:00.000Z",
"endTime": "2024-06-08T04:00:00.000Z",
"curriculumImage": {
"height": 469,
"width": 375,
"url": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/test-class2/curriculumImage1.png"
},
"exercise": [
{
"sortIdx": 1000,
"secunit": null,
"eInfotype": 2,
"eTextId": "HIGH_KNEE_SKIP",
"eName": "High-knee Skip",
"bpTextId": "CAT_CARDIO",
"bpName": "Cardio",
"toolId": 4,
"deArrIndex": 0,
"data": []
},
{
"sortIdx": 1000,
"secunit": null,
"eInfotype": 2,
"eTextId": "INC_PUSH_UP",
"eName": "Incline Push Up",
"bpTextId": "CAT_CHEST",
"bpName": "Chest",
"toolId": 4,
"deArrIndex": 1,
"data": []
}
]
},
{
"startTime": "2024-06-15T02:00:00.000Z",
"endTime": "2024-06-15T04:00:00.000Z",
"curriculumImage": {
"height": 496,
"width": 375,
"url": "https://bunnfit-assets.s3.ap-northeast-2.amazonaws.com/oneday_class/test-class2/curriculumImage1.png"
},
"exercise": [
{
"sortIdx": 1000,
"secunit": null,
"eInfotype": 2,
"eTextId": "HIGH_KNEE_SKIP",
"eName": "High-knee Skip",
"bpTextId": "CAT_CARDIO",
"bpName": "Cardio",
"toolId": 4,
"deArrIndex": 0,
"data": []
},
{
"sortIdx": 1000,
"secunit": null,
"eInfotype": 2,
"eTextId": "INC_PUSH_UP",
"eName": "Incline Push Up",
"bpTextId": "CAT_CHEST",
"bpName": "Chest",
"toolId": 4,
"deArrIndex": 1,
"data": []
}
]
}
]
}
}
JavaScript
복사
Responses
Response Body | Description | Reason | |
200 | success: true | 등록 완료 | |
400 | success: false | 등록 실패 | - onedayClass(등록 정보) 오브젝트가 유효 하지 않은 경우
- DB Insert 실패 케이스
- 기타 예외 발생의 경우 |
401 | success: false | API Key 오류 | API Key 오류 |