API Testing

Postman Collection

Import-ready collection with all 98 endpoints, environment variables, and organized request folders. One click to start testing.

gunspec-postman-collection.json

Import the Collection

1

Download the file using the button above

2

Open Postman

3

Click Import (top-left) and drag the JSON file, or click Upload Files

4

The "GunSpec API v1" collection appears in your sidebar

Configure Your API Key

1

Click the collection name (GunSpec API v1) in the sidebar

2

Go to the Variables tab

3

Set api_key current value to test_key

4

Set base_url to http://localhost:8787

5

Click Save

Endpoints Included

FolderEndpoints
HealthHealth Check, Ready Check
FirearmsList, Search, Compare, Get, Variants, Images, Game Stats, Users
ManufacturersList, Get, Get Firearms
CalibersList, Get, Get Firearms
CategoriesList, Get Firearms

Optional params: Disabled query parameters (manufacturer, caliber, category filters) can be enabled by unchecking "disabled" in the Params tab of each request.

Switching Environments

You can create Postman Environments to switch between local, staging, and production:

1

Click Environments in the sidebar, then +

2

Add base_url and api_key variables

3

Select the environment from the dropdown (top-right) before sending requests

Back to Assets