Skip to content
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

Decouple Image to Text API to Use a Java Spring Boot Service as middleware. #397

Closed
arinkulshi-skylight opened this issue Nov 14, 2024 · 1 comment · Fixed by #416
Closed
Assignees

Comments

@arinkulshi-skylight
Copy link
Collaborator

The current image_to_text API is implemented in FastAPI and is directly accessed by the frontend.

A.C
Create a new endpoint in Spring Boot, e.g., /api/image_to_text, which mirrors the structure of the existing image_to_text API.
Capture HTTP error responses and relay them to the frontend. Ensure that the status codes and messages are consistent
Try not to change image_to_text OCR API

@arinkulshi-skylight arinkulshi-skylight self-assigned this Nov 14, 2024
@arinkulshi-skylight arinkulshi-skylight linked a pull request Nov 21, 2024 that will close this issue
4 tasks
@arinkulshi-skylight
Copy link
Collaborator Author

arinkulshi-skylight commented Nov 25, 2024

  • happy path for endpoint is created/tested
  • error path is tested
  • Updated tests in middleware,ocr api
  • Added CORS config Bean
  • Replace front end ocr api with backend change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant