Commit Graph

3 Commits

Author SHA1 Message Date
Habib Fatkhul Rohman 8fe9a5bb5c Refactor role management API endpoints and update Swagger documentation
- Removed the deprecated /example/helloworld endpoint from Swagger.
- Updated the /roles endpoint to include GET and POST methods for retrieving and creating roles.
- Added detailed documentation for role-related endpoints including assigning and removing permissions, and managing roles for users.
- Introduced new DTOs for role creation, updating, and permission management.
- Updated response schemas to ensure consistency across role management operations.
- Enhanced validation requirements for role and permission requests.
2025-10-28 15:43:09 +07:00
Habib Fatkhul Rohman d34f1238d1 feat(api): Enhance API documentation and functionality for clients, menus, and maintenance groups
Deploy Application / deploy (push) Successful in 19s Details
- Added new DTO definitions for AssignMenusToClientRequest, MaintGroupCreateRequest, MaintGroupUpdateRequest, and related entities in swagger.yaml.
- Implemented CRUD operations for clients, including creating, updating, deleting, and retrieving clients with detailed API documentation.
- Introduced endpoints for assigning and removing menus from clients with appropriate request bodies.
- Enhanced maintenance group management with endpoints for creating, updating, deleting, and retrieving maintenance groups.
- Updated menu management with endpoints for creating, updating, deleting, and retrieving menus, including filtering and sorting capabilities.
- Refactored user-related endpoints to return a consistent response structure using utils.Response.
2025-10-28 15:25:59 +07:00
Habib Fatkhul Rohman 2546a094a3 feat: Revamp logs page with new HTML structure and styles
- Updated logs.html to include a modern design with Tailwind CSS.
- Added a login section for admin access to logs.
- Implemented JavaScript functions for login, log retrieval, and month selection.
- Enhanced user experience with loading indicators and error handling.

feat: Add ServeLogsPage method to LogsController

- Introduced ServeLogsPage method to serve the logs HTML page.
- Configured to respond with HTML when the Accept header is text/html.

refactor: Update logs routes to serve HTML page

- Modified routes to serve the logs HTML page without authentication.
- Adjusted protected routes for log retrieval to use API versioning.

docs: Add API documentation for user and role controllers

- Added Swagger documentation comments for user and role controller methods.
- Documented endpoints for user registration, login, and email verification.
2025-10-23 00:17:07 +07:00