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

added Request form api #28

Closed
wants to merge 8 commits into from
Closed

added Request form api #28

wants to merge 8 commits into from

Conversation

ChiragJS
Copy link
Contributor

@ChiragJS ChiragJS commented Mar 2, 2024

need to remove RequestDTO class, no use of it . update the put mapping in the next Pr
made an urgent pr !

@ChiragJS ChiragJS requested review from SundarakrishnanN and chrisvrose and removed request for SundarakrishnanN March 3, 2024 12:01
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.BAD_REQUEST)
public class PDFNotConversionException extends Exception{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FailedFileConversionException?

If you want to keep the same name, pls add a javadoc mentioning what this exception means

throw new PDFNotConversionException("Could not store pdf");
}

return requestFormService.save(requestForm);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This returns the entire thing as JSON. how is the file returned?
If as a json array, that will make the response too huge, could you check?

Copy link
Member

@chrisvrose chrisvrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor things to take a look at.

Overall seems in good shape.

@SundarakrishnanN
Copy link
Member

ignore this pr,made a newer one with slightly cleaner code

@chrisvrose
Copy link
Member

Please close if not required.

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 this pull request may close these issues.

4 participants