Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mahmoudahmadosman/mahmoudahmadosman
https://github.com/mahmoudahmadosman/mahmoudahmadosman
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mahmoudahmadosman/mahmoudahmadosman
- Owner: MahmoudAhmadOsman
- License: mit
- Created: 2022-11-05T06:35:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T00:31:44.000Z (2 months ago)
- Last Synced: 2024-09-16T02:03:57.423Z (2 months ago)
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Hi 👋, I'm Mahmoud Osman
```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.