-
[SW 아카데미 모각코] 14주차 활동 정리모여서 각자 코딩/2022 SW 아카데미 모각코 2022. 10. 10. 21:14728x90
일시 : 10월 6일 목 15:00 ~ 18:00 [ Google Meet ]
JPA를 사용한 REST API 구현
- JPARepository 메소드 구현 시 @Query 애노테이션 사용 방법
- Postman 사용
- Postman Agent 설치 후 request 보내기
- Postman Agent로 설치 시 workspace 명이 PostmanAgent로 되어있음
- request 보낼 때 file 업로드 시 working directory에 대한 에러가 발생할 수 있음
- Postman Agent -> Postman 으로 폴더명 변경
- Environment를 구성하여 variable을 설정하면 변수 사용 가능
- http://localhost:8080 과 같이 반복되는 부분을 base_url 변수로 사용
- spring security를 통해 로그인 시에 다른 api를 호출할 수 있게 했다면 header에 설정 필요
- 로그인 시 발급되는 tocken을 header에 포함
- key: Authentication, value : Bearer {tocken}
- Postman Agent 설치 후 request 보내기
728x90'모여서 각자 코딩 > 2022 SW 아카데미 모각코' 카테고리의 다른 글
[SW 아카데미 모각코] 16주차 활동 정리 (0) 2022.10.31 [SW 아카데미 모각코] 15주차 활동 정리 (0) 2022.10.25 [SW 아카데미 모각코] 12주차 활동 정리 (0) 2022.09.25 [SW 아카데미 모각코] 11주차 활동 정리 (0) 2022.09.19 [SW 아카데미 모각코] 10주차 활동 정리 (0) 2022.09.08