Karve app icon

Karve

ASP.NET Core aspnet-core-pagination.http

ASP.NET Core pagination .http example

Exercise predictable paging and filtering cases without repeatedly editing a long URL.

aspnet-core-pagination.http

@baseUrl = https://localhost:7001
@page = 1
@pageSize = 20

### Read the first page
GET {{baseUrl}}/products?page={{page}}&pageSize={{pageSize}}
Accept: application/json

### Read a filtered page
GET {{baseUrl}}/products?page=2&pageSize={{pageSize}}&search=keyboard
Accept: application/json

Variables to replace

baseUrl
Your ASP.NET Core HTTPS launch URL.
page
The one-based page number used by the first request.
pageSize
The maximum number of products requested per page.

Expected response

A successful endpoint returns 200 OK with the requested items. Paging metadata may be in the JSON body or response headers depending on the API contract.

Related examples and guides

Learn the full syntax in the .http file format guide, manage secrets with variables and environments, or see how to run .http files on Windows.

Launch Summer Sale

Run this request without leaving Windows.

Karve opens .http files as a native workspace: edit the plain text, press Run, inspect the response, and keep the file in Git.

15-day free trial · No account · No subscription · No metered requests

25% off until Sep 1