-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 시간표 POST, PUT 예시 #373
base: develop
Are you sure you want to change the base?
Conversation
fix: presigned url 에만 https 프로토콜 적용되도록 수정
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
@ApiOperation(value = "", authorizations = {@Authorization(value="Authorization")}) | ||
@RequestMapping(value = "/timetables", method = RequestMethod.POST) | ||
public @ResponseBody | ||
ResponseEntity createTimeTables(@ApiParam(value = "json value (예시: {\"timetable\":[...], \"semester\":\"20191\"}" + | ||
" Timetable REQUIRED class_time, class_title, grades", required = true) @RequestBody String timetable_log) throws Exception { | ||
ResponseEntity createTimeTables(@ApiParam(value = "json value (예시:\n" + | ||
"{\n" + | ||
" \"timetable\": [\n" + | ||
" {\n" + | ||
" \"code\": \"CPC490\",\n" + | ||
" \"class_title\": null,\n" + | ||
" \"class_time\": [\n" + | ||
" 210,\n" + | ||
" 211\n" + | ||
" ],\n" + | ||
" \"class_place\": null,\n" + | ||
" \"professor\": null,\n" + | ||
" \"grades\": null,\n" + | ||
" \"lecture_class\": \"01\",\n" + | ||
" \"target\": \"디자 1 건축\",\n" + | ||
" \"regular_number\": \"25\",\n" + | ||
" \"design_score\": \"0\",\n" + | ||
" \"department\": \"디자인ㆍ건축공학부\",\n" + | ||
" \"memo\": null\n" + | ||
" }\n" + | ||
" ],\n" + | ||
" \"semester\": \"20192\"\n" + | ||
"}", required = true) @RequestBody String timetable_log) throws Exception { | ||
return new ResponseEntity<Map<String, Object>>(timeTableService.createTimeTables(timetable_log), HttpStatus.CREATED); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C
코드 보기가 너무 안 좋은데 timetable_log를 DTO로 바꿔서 그 안에 넣는건 어려울까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
알겠습니다...!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A
예시에 대한 클라이언트 요청 잘 받아주신 거 같네요!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~!
▶ Request
Content
Timetables API의 POST, PUT 입력 JSON예시를 추가하였습니다.
✅ Check List
pom.xml
) 변경이 일어나지 않았는지📸 API Document ScreenShot
🧪 Test