-
Notifications
You must be signed in to change notification settings - Fork 0
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: mathpix api 호출 #13
Conversation
* docs: API 명세 작성 * docs: divider 추가
|
||
public Long translate(final MultipartFile file) { | ||
log.info("File: {}, Mathpix API 호출을 시작합니다.", file.getOriginalFilename()); | ||
final String pdfId = pdfProcessClient.requestPdfId(file); |
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.
Mathpix api로 pdf 보내서 pdf id 받아오는 과정입니당
public Long translate(final MultipartFile file) { | ||
log.info("File: {}, Mathpix API 호출을 시작합니다.", file.getOriginalFilename()); | ||
final String pdfId = pdfProcessClient.requestPdfId(file); | ||
final Object ocr = pdfQueryClient.queryPdfBy(pdfId); |
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.
Mathpix api로 위에서 받은 pdf id를 전송해서 실제 ocr 완료된 파일을 받아오는 과정입니당
import static org.springframework.http.MediaType.MULTIPART_FORM_DATA; | ||
|
||
@Slf4j | ||
@Profile("!test") |
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.
여기서는 실제 api를 호출하기 때문에 테스트에서는 모킹한 다른 객체를 사용하기 위해서
테스트에서는 이 객체 안쓴다고 한 것
주요 변경사항
관련 이슈
closes #19