swagger-api / swagger-api/swagger-codegen
How to provide Page<Class> as a response by swagger codegen. This will help to get the result on swagger api in page format if records that are getting retrieved is too large.
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
How to provide Page as a response by swagger codegen. This is required in SpringBoot to support pagination and sorting of spring boot.
Swagger-codegen version
swagger-codegen-maven-plugin - 2.2.1
language - spring
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Spring generator and the swagger-codegen-maven-plugin version 2.2.1 handling of response types. Compare the current generated response behavior with the requested Page pagination and sorting support; done should be a clearly documented or implemented way to produce that response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- spring, spring-boot
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100