Commit graph

23 commits

Author SHA1 Message Date
33f3aaf37f
fix(api): correct condition for JSON request handling
Ensure proper handling of requests that expect JSON responses.
2026-08-12 17:30:36 +02:00
fd284db1c2
fix(api): correct JSON rendering condition for API requests
Updated the condition to ensure JSON responses are rendered for both 'api/*' and 'api' requests.
2026-08-12 17:30:22 +02:00
04243860ce
refactor(api): simplify exception handling in app configuration
Removed custom exception handling logic and replaced it with a reference to the existing exceptions file.
2026-08-12 17:26:31 +02:00
e92b042906
feat(env): add throttle settings for web and API
Added THROTTLE_WEB and THROTTLE_API_V1 settings to the environment configuration.
2026-08-12 17:26:25 +02:00
caa4bb0919
feat(api): restore ping endpoint and add rate limit responses
Restores the /ping endpoint for health checks and adds
429 Too Many Requests response handling to improve API robustness.
2026-08-12 17:26:17 +02:00
a93fde3a3c
feat(api): implement rate limiting and error handling
- Added rate limiting for web and API requests.
- Introduced custom error handling for "Too Many Requests" response.
- Created view for "Too Many Requests" error documentation.
2026-08-12 17:25:45 +02:00
f62ea18e75
feat(api): add health check endpoint
This adds a new /ping endpoint to verify API functionality.
2026-08-12 17:12:35 +02:00
a738fed493
refactor(api): restructure root response to include versions 2026-08-12 17:11:37 +02:00
c5867c7926
refactor(layout): replace main layout with minimal layout
Updated the layout structure to use a minimal design, enhancing the overall presentation of the API status page.
2026-08-12 17:11:27 +02:00
cfea429840
style(api): update response message for root URL
Clarifies the message presented to users when accessing the API root.
2026-08-12 17:05:35 +02:00
0cd539c180
test(architecture): add rules to prevent Presenters and Views
Ensure that the Application layer does not contain Presenters or Views.
2026-08-12 17:01:09 +02:00
6712e06042
docs(README): update API description and architecture details
Added detailed architecture sections and principles of implementation to the README.
2026-08-12 17:00:48 +02:00
2526560e44
docs(responses): clarify error descriptions in OpenAPI spec
Updated descriptions for BadRequest and UnprocessableEntity responses to provide clearer context on validation errors.
2026-08-12 17:00:23 +02:00
31ae87f358
fix(exceptions): correct status code for validation errors
Updated the status code for ValidationException responses from 422 to 400 to align with HTTP standards.
2026-08-12 17:00:15 +02:00
899bb42964
refactor(api): remove ApiClient model 2026-08-12 17:00:06 +02:00
3100643eac
refactor(employees): simplify validation rules for employee requests
Removed regex patterns from validation rules for employeeId, establishment, siteId, and serviceId to streamline input handling.
2026-08-12 17:00:01 +02:00
38ca7ed069
feat(employees): introduce presenters and views for employee data
- Added EmployeeShowPresenter and EmployeeShowView for handling employee details.
- Introduced EmployeesIndexPresenter and EmployeesIndexView for paginated employee listings.
2026-08-12 16:59:50 +02:00
43a568ef5a
refactor(employees): replace native assert with Webmozart\Assert
Updated assertions in FindEmployee, FindAllEmployees, and Output classes
to use Webmozart\Assert for better type safety and consistency.
2026-08-12 16:56:13 +02:00
63d4ae17f3
refactor(middlewares): remove VerifyHmacSignature middleware
This change removes the VerifyHmacSignature middleware and its alias from the configuration.
2026-08-12 16:41:13 +02:00
e74f81b656
chore(dependencies): update dependencies and add phpstan extension
Added phpstan/phpstan-webmozart-assert to enhance type checking.
2026-08-12 16:40:32 +02:00
93d76b3c69
ci: add and configure GitLab CI pipeline 2026-08-12 15:45:30 +02:00
34169a9feb
feat(api): implement tracer bullet for employees and OpenAPI specification 2026-08-12 15:45:29 +02:00
Jérémy
ecb6eca475 Initial commit 2026-08-10 13:05:48 +00:00