# Pagination with swagger 3 and open api 3

**URL:** <https://community.smartbear.com/t/pagination-with-swagger-3-and-open-api-3/255>\
**Category:** Swagger\
**Tags:** api, migrated, swaggerhub\
**Created:** [December 14, 2022, 12:54pm UTC](https://community.smartbear.com/t/pagination-with-swagger-3-and-open-api-3/255 "2022-12-14T12:54:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [December 14, 2022, 12:54pm UTC](https://community.smartbear.com/t/pagination-with-swagger-3-and-open-api-3/255/1 "2022-12-14T12:54:23Z")

</div>

> Originally posted by **AleMors85** on December 14, 2022

Hello!!

A pleasure to be here i nthis community!!

A question, hwo can I implement a pagination in swagger with open api 3 code generation? I am using a gradle task to generate my model objs.

In my GET call I’d need to return a

```auto
SimplePage<BespokeObj>

```

with the pagination..is this possible using swagger yaml?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [December 16, 2022, 8:26pm UTC](https://community.smartbear.com/t/pagination-with-swagger-3-and-open-api-3/255/2 "2022-12-16T20:26:32Z")

</div>

> Originally posted by **mhiggins** on December 16, 2022

do you mean: communicate pagination to the back-end ?

 ![mhiggins_0-1671222330945.png](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/24bcddb6a4589f7570612953e2c5a9a662bb4fbc.png)

so using parameters:

parameters:

page:  
name: page  
description: The page number of items to start with (see limit)  
in: query  
required: true  
schema:  
type: integer  
minimum: 1  
default: 1  
example: 1

limit:  
name: limit  
description: The number of items to return  
in: query  
required: true  
schema:  
type: integer  
format: int32  
minimum: 1  
maximum: 225  
default: 25  
example: 25
