@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
try {
NewRequestReimbursementType request = mapper.readValue(req.getInputStream(), NewRequestReimbursementType.class);
ReimbursementType createdReimbursementType = reimbursementTypeService.createReimbursementType(request);
resp.setContentType("application/json");
resp.setStatus(200);
resp.getWriter().write(mapper.writeValueAsString(createdReimbursementType.getType_id()));
resp.getWriter().write(mapper.writeValueAsString(createdReimbursementType.getType_id()));
} catch (InvalidSQLException e) {
resp.setStatus(404);
resp.getWriter().write(mapper.writeValueAsString(e.getMessage()));
} catch (ResourceConflictException e) {
resp.setStatus(409);
}
}
Highly skilled and dedicated software engineer with a strong proficiency in various technologies and frameworks. Expertise includes Java, React & Spring Boot.
Block or Report
Block or report MahmoudAhmadOsman
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned Loading
-
angular-spring-boot-employee-systems
angular-spring-boot-employee-systems PublicSpring Boot & Angular 10 project
TypeScript 2
-
p0-jdbc-northern-book-store
p0-jdbc-northern-book-store PublicSimple Java application that utilizes Maven, PostgresQL, Mockito, JUnit4, SQL & Java.
Java 1
-
react-ecommerce-app
react-ecommerce-app PublicBuilt with React.js, Express.js and MongoDB
JavaScript 1
-
vast-burgers-api
vast-burgers-api PublicReact application focused on burgers, where users can view and order delicious burgers from the VAST BURGERS online.
JavaScript
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.