sohm22 / quizapp

Take a Quiz
https://quizit-master.netlify.app/
1 stars 0 forks source link

Add Swagger Documentation to Project #58

Open sohm22 opened 2 months ago

sohm22 commented 2 months ago

Add Swagger Documentation to Spring Boot Web Project

Objective

Integrate Swagger into the Spring Boot web project to provide API documentation for all available endpoints. This will help developers and users understand the API structure, input/output formats, and easily test the endpoints.

Tasks

  1. Add Swagger dependencies (springdoc-openapi-ui) to the pom.xml file.
  2. Configure Swagger in the application to scan the Controllers for API documentation.
  3. Customize the Swagger UI, including the project title, description, and version.
  4. Ensure all endpoints are documented with appropriate descriptions, parameters, and response types.
  5. Add any necessary annotations in the code to improve documentation (e.g., @Operation, @ApiResponse, etc.).
  6. Test the Swagger UI to verify all endpoints are correctly documented and accessible.

Acceptance Criteria

Additional Notes

sohm22 commented 2 months ago

can be hosted at swaggerHUb