Add comprehensive OpenAPI documentation for all API endpoints#311
Merged
Add comprehensive OpenAPI documentation for all API endpoints#311
Conversation
- Add @operation annotations with summaries and descriptions to 35+ endpoints - Add @ApiResponses (200, 404, 500) with ErrorResponse schema references - Add @parameter descriptions and examples for all path/query parameters - Enhance SwaggerConfiguration with proper API metadata and 7 functional tags - Create ErrorResponse model and GlobalExceptionHandler for standardized error responses - Document all endpoint groups: Stop Places, Quays, Fare Zones, Parking, Geographic Areas, Groupings, and Scheduled Stop Points - Update StopPlacesRequestParams with comprehensive @Schema annotations - Mark deprecated tariff-zones endpoints appropriately
…undException, Updates GlobalExceptionHandler to handel invalidParameterException
|
testower
approved these changes
Nov 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR adds complete OpenAPI 3.1.0 documentation to all API endpoints in the Mummu Stop Place Register, improving API discoverability and developer experience. All 35+ JSON endpoints are now fully
documented with descriptions, parameters, response codes, and error schemas.
Changes
New Files
ErrorResponse.java- Standardized error response model witherrorCode,message, anddetailsfieldsGlobalExceptionHandler.java- Centralized exception handling for consistent error responses (404, 400, 500)Modified Files
SwaggerConfiguration.javaNotFoundException.javaStopPlacesRequestParams.java@Schemaannotations to all 8 parameters with descriptions, examples, and default valuesRestResource.java(Main changes)35+ endpoints now fully documented with:
@Operation- Summary and detailed description for each endpoint@ApiResponses- Status codes 200, 400/404, 500 with error schema references@Parameter- Descriptions and examples for all path and query parametersDocumented endpoint groups:
deprecated = true)Documentation Quality
Each endpoint now includes:
Testing
OpenAPI Compliance Improvement