OpenAPITools / OpenAPITools/openapi-generator

[REQ] [Java-Spring] Pagination

Open
#2,493 2 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

It would be very useful if we can specify paging in responses in spring library.
For example If I want to generate paged result with CustomerInfo it should look like ResponseEntity<Page<CustomerInfo>>. I think currently there's no template for this. If somebody can guide me I can create template or other parts which are needed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the Java Spring generator templates and the existing response-generation paths. Determine how paged responses such as ResponseEntity<Page> should be represented, then add the required template or related changes and coverage demonstrating the generated result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.