@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 & dedicated software engineer with a strong proficiency in various technologies and frameworks. Expertise includes MERN Stack, Java & Springboot.
-
05:02
(UTC -12:00) - https://mahmoudosman.com
Pinned 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 PublicHungry users can explore VAST BURGERS' delicious offerings and place orders through this intuitive Reactjs web application.
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.