Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mahmoudahmadosman/mahmoudahmadosman


https://github.com/mahmoudahmadosman/mahmoudahmadosman

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

Hi 👋, I'm Mahmoud Osman

mahmoudahmadosman




```bash
@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);
}

}

```

#### Recent Projects Link

- Projects: [Links](https://recent-projects.vercel.app/) click to visit.