Skip to content
Novus Examples

API & endpoint fixtures for testing

OpenAPI/Swagger specs, GraphQL SDL, JSON Schema, paginated and problem+json error payloads, and webhook samples — for testing API clients, mock servers, contract tests, and schema validators.

86 of 86 files
Preview of OpenAPI 3.1 Spec (JSON)
json
3.1 KB
Actual file preview for OpenAPI 3.1 Spec (JSON)

OpenAPI 3.1 Spec (JSON)

A small but complete OpenAPI 3.1 description (two paths, three schemas) in JSON — for testing API tooling, mock servers, client codegen, and docs generators.

File
JSON · Api
Use case
API testingConversion testing· Conversion set
Preview of OpenAPI 3.1 Spec (YAML)
yaml
1.8 KB
Actual file preview for OpenAPI 3.1 Spec (YAML)

OpenAPI 3.1 Spec (YAML)

The same OpenAPI 3.1 description in YAML — the format most API definitions ship in. Paired with the JSON twin for testing YAML↔JSON conversion and spec parsers.

File
YAML · Api
Use case
API testingConversion testing· Conversion set
Preview of GraphQL Schema (SDL)
graphql
483 B
Actual file preview for GraphQL Schema (SDL)

GraphQL Schema (SDL)

A GraphQL Schema Definition Language (SDL) file with queries, a mutation, object/input types, and an enum — for testing GraphQL schema parsers, linters, and code generators.

File
GRAPHQL · Api
Preview of API Response — Users Page 1 (JSON)
json
451 B
Actual file preview for API Response — Users Page 1 (JSON)

API Response — Users Page 1 (JSON)

Page 1 of a paginated JSON API response (users), with page metadata and a `hasMore` flag. Paired with page 2 for testing pagination and infinite-scroll logic.

File
JSON · Api
Use case
API testingConversion testing· Conversion set
Preview of Fintech Payment Intent (JSON)
json
112 B
Actual file preview for Fintech Payment Intent (JSON)

Fintech Payment Intent (JSON)

Stripe-style payment intent SAMPLE JSON for checkout integration tests.

File
JSON · Fintech
Use case
API testing
Preview of CORS Response Headers — SAMPLE
headers
251 B
Actual file preview for CORS Response Headers — SAMPLE

CORS Response Headers — SAMPLE

SAMPLE CORS response header block as plain text for header parsers and policy tests.

File
HEADERS · Headers
Use case
API testing
Preview of HSTS Header — SAMPLE
headers
73 B
Actual file preview for HSTS Header — SAMPLE

HSTS Header — SAMPLE

SAMPLE Strict-Transport-Security header for TLS policy scanners.

File
HEADERS · Headers
Use case
API testing
Preview of SAMPLE OCSP Request (DER)
der
70 B
Actual file preview for SAMPLE OCSP Request (DER)

SAMPLE OCSP Request (DER)

The DER OCSPRequest a client sends when checking the reference leaf, with the SHA-1 CertID that RFC 6960 mandates and no nonce extension. POST it at a stub responder to exercise request parsing without a live CA.

File
DER · Pki
Use case
Certificate & key testingAPI testing· Conversion set
Preview of SAMPLE OCSP Response — Good
der
661 B
Actual file preview for SAMPLE OCSP Response — Good

SAMPLE OCSP Response — Good

A successful OCSP response asserting status good for the reference leaf, signed directly by the SAMPLE issuing CA. Pair it with the request beside it to stub a responder end to end.

File
DER · Pki
Use case
Certificate & key testingAPI testing· Conversion set
Preview of SAMPLE JWS — General JSON Serialization
json
1.1 KB
Actual file preview for SAMPLE JWS — General JSON Serialization

SAMPLE JWS — General JSON Serialization

One payload carrying two independent signatures — RS256 and EdDSA — in the General JSON serialization that the compact form cannot express. Multi-signature handling is the part of RFC 7515 most libraries never implemented.

File
JSON · Jwt
Use case
JWT / JWKS testingAPI testing· Conversion set
Preview of SAMPLE JWS — Flattened JSON Serialization
json
825 B
Actual file preview for SAMPLE JWS — Flattened JSON Serialization

SAMPLE JWS — Flattened JSON Serialization

The single-signature flattened JSON form of the exact same RS256 token shipped in compact serialization. Both encodings must verify to the identical payload, which is the round-trip this pair is for.

File
JSON · Jwt
Use case
JWT / JWKS testingAPI testing· Conversion set
Preview of HAR — Page-Load Waterfall (5 Requests)
har
8.8 KB
Actual file preview for HAR — Page-Load Waterfall (5 Requests)

HAR — Page-Load Waterfall (5 Requests)

A five-request page load — document, stylesheet, script, image and favicon — across two fictional hosts, with full per-phase timings and an onLoad page timing. Every entry's time equals the sum of its non-negative timing phases, so a waterfall renderer can be checked arithmetically rather than by eye.

File
HAR · Har · 1 page
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — JSON API Session (GET, POST, PUT, DELETE)
har
8.2 KB
Actual file preview for HAR — JSON API Session (GET, POST, PUT, DELETE)

HAR — JSON API Session (GET, POST, PUT, DELETE)

A four-call REST session against a fictional API host, with JSON request bodies in postData, an Authorization header carrying an obvious SAMPLE placeholder token, and a 204 response that has no body at all. The right shape for testing a HAR-to-mock-server or HAR-to-code converter.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Redirect Chain (301, 302, 200)
har
5.6 KB
Actual file preview for HAR — Redirect Chain (301, 302, 200)

HAR — Redirect Chain (301, 302, 200)

An http URL that redirects to https and then to a query-carrying cart page, with redirectURL populated on both hops. Tools that count entries as page views report three here when the user saw one page.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — HTTP Error Responses (401 to 500)
har
9.6 KB
Actual file preview for HAR — HTTP Error Responses (401 to 500)

HAR — HTTP Error Responses (401 to 500)

Five failing requests covering authentication, authorisation, a missing resource, rate limiting with a Retry-After header, and a server error that returns HTML instead of the JSON the client asked for. The last one is the case that breaks clients which parse by status code rather than by content type.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Cookie Set, Sent and Cleared
har
7.6 KB
Actual file preview for HAR — Cookie Set, Sent and Cleared

HAR — Cookie Set, Sent and Cleared

A full session-cookie lifecycle: set at login, echoed on the next request, then expired at logout with Max-Age=0. Both the header and the parsed cookies array are present, and every value — including the form password field — is an obvious SAMPLE placeholder rather than a credential.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Server-Bound Waterfall (Wait Dominates)
har
7.4 KB
Actual file preview for HAR — Server-Bound Waterfall (Wait Dominates)

HAR — Server-Bound Waterfall (Wait Dominates)

Four API calls in which the wait phase — time to first byte — accounts for almost all of the elapsed time, the signature of a server-bound rather than network-bound page. Use it to check that a performance report attributes the cost to the server instead of blaming connection setup.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — URL-Encoded Form POST
har
3.3 KB
Actual file preview for HAR — URL-Encoded Form POST

HAR — URL-Encoded Form POST

One form submission whose postData carries both the parsed params array and the raw urlencoded text — and the two must agree. The notes field contains a comma and an ampersand, so a decoder that splits before unescaping produces seven fields instead of five.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Multipart File Upload
har
3.3 KB
Actual file preview for HAR — Multipart File Upload

HAR — Multipart File Upload

A two-part multipart/form-data upload: a text file part with a fileName and a plain field part. The body uses CRLF between MIME parts because RFC 7578 requires it, even though the surrounding HAR document is LF-terminated — a distinction that matters when a replay tool rewrites the body.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Base64-Encoded Binary Body
har
2.4 KB
Actual file preview for HAR — Base64-Encoded Binary Body

HAR — Base64-Encoded Binary Body

A PNG response whose body is carried as base64 with content.encoding set accordingly. content.size is the DECODED byte count, not the length of the base64 string, which is the field readers most often get wrong when computing transfer weight.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Compressed Response and Transfer Size
har
2.8 KB
Actual file preview for HAR — Compressed Response and Transfer Size

HAR — Compressed Response and Transfer Size

A gzip-compressed JSON response where content.size is the uncompressed length, bodySize is the bytes on the wire, and content.compression is the saving between them. It also carries the non-standard _transferSize field browsers add, which readers must tolerate rather than reject.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Two Pages with Page Timings
har
5.5 KB
Actual file preview for HAR — Two Pages with Page Timings

HAR — Two Pages with Page Timings

Two navigations in one capture, with entries bound to their page through pageref. The second page's onLoad is -1, the HAR convention for a timing that never happened, which naive code averages in as zero and reports as an impossibly fast load.

File
HAR · Har · 2 pages
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Cache State Before and After
har
4.7 KB
Actual file preview for HAR — Cache State Before and After

HAR — Cache State Before and After

A conditional request answered 304 with full beforeRequest and afterRequest cache state, next to a first-time fetch whose beforeRequest is null. The null is the documented way to say "not in the cache", and readers that treat it as a missing object rather than an explicit absence lose the distinction.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — HTTP/2 Request with Connection Detail
har
2.7 KB
Actual file preview for HAR — HTTP/2 Request with Connection Detail

HAR — HTTP/2 Request with Connection Detail

An HTTP/2 entry with lowercase pseudo-headers, an httpVersion of "h2" rather than "HTTP/2.0", an ssl phase inside connect, and three underscore-prefixed custom fields. Version strings are not standardised across writers, so anything matching on "HTTP/1.1" misses this entry entirely.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of HAR — Query String and Header Edge Cases
har
3 KB
Actual file preview for HAR — Query String and Header Edge Cases

HAR — Query String and Header Edge Cases

One request whose query string encodes a space as %20 in one parameter and as + in another, includes a parameter with an empty value, and carries an Accept-Language header with quality values. The parsed queryString array is the answer key for whatever a URL parser produces from the raw URL.

File
HAR · Har · UTF-8
Use case
API testingPerformance testing+1· Conversion set
Preview of Prometheus HTTP API — Instant Query Vector with Warnings (json)
json
1.2 KB
Actual file preview for Prometheus HTTP API — Instant Query Vector with Warnings (json)

Prometheus HTTP API — Instant Query Vector with Warnings (json)

An instant-query response: five up series at a single evaluation timestamp, one of them zero, plus a warnings array that clients routinely ignore. A successful response can carry warnings, and dropping them hides truncated results.

File
JSON · Metrics
Preview of Prometheus HTTP API — Error Envelope with a PromQL Parse Error (json)
json
246 B
Actual file preview for Prometheus HTTP API — Error Envelope with a PromQL Parse Error (json)

Prometheus HTTP API — Error Envelope with a PromQL Parse Error (json)

The error envelope a Prometheus API returns for a malformed PromQL query — status, errorType, a message with a line and column position, and an empty but present data object. Clients that only check for a data key render this as a successful empty result.

File
JSON · Metrics
Preview of Alertmanager Webhook — Firing Notification (json)
json
1.2 KB
Actual file preview for Alertmanager Webhook — Firing Notification (json)

Alertmanager Webhook — Firing Notification (json)

The JSON body Alertmanager POSTs to a webhook when an alert fires, including the detail that catches everyone: endsAt is Go's zero time rather than null or absent, so a receiver that parses it as a real timestamp records an alert that ended in the year 1.

File
JSON · Alerts
Use case
ObservabilityJSON parsing+1· Paired fixture
Preview of Alertmanager Webhook — Resolved Notification (json)
json
1.2 KB
Actual file preview for Alertmanager Webhook — Resolved Notification (json)

Alertmanager Webhook — Resolved Notification (json)

The resolved notification for the same alert half an hour later, carrying an identical fingerprint and group key with endsAt now populated. Paired with the firing payload so incident-tracking code can be tested for correctly closing the incident it opened.

File
JSON · Alerts
Use case
ObservabilityJSON parsing+1· Paired fixture
Preview of Alertmanager Webhook — Grouped Batch with Truncation (json)
json
7.3 KB
Actual file preview for Alertmanager Webhook — Grouped Batch with Truncation (json)

Alertmanager Webhook — Grouped Batch with Truncation (json)

One notification carrying twelve grouped alerts with truncatedAlerts set to 8, meaning twenty were firing. Receivers that count the alerts array report a smaller incident than actually exists — the field is there precisely so that does not have to happen.

File
JSON · Alerts
Preview of CycloneDX SBOM With Services and Compositions
json
12.5 KB
Actual file preview for CycloneDX SBOM With Services and Compositions

CycloneDX SBOM With Services and Compositions

A CycloneDX SBOM that declares external services and composition completeness alongside components — the sections tools most often skip. Both services are fictional endpoints on the .example domain. Every package, version, hash and licence is fictional — the tree describes nothing real.

File
JSON · Sbom
Use case
JSON parsingSchema validation+1· Conversion set
Preview of Dependency Alerts Feed (JSON)
json
5.3 KB
Actual file preview for Dependency Alerts Feed (JSON)

Dependency Alerts Feed (JSON)

The shape a hosted dependency-alert API returns: alerts with lifecycle state, a nested advisory, a patched-version pointer and an explicitly null dismissed_reason on the alerts that were not dismissed. Advisory identifiers use the invented NOVUS-SAMPLE namespace with SAMPLE-CVE aliases; no identifier here refers to a published CVE, GHSA or OSV record, and no package named exists.

File
JSON · Vulnerability
Use case
JSON parsingAPI testing+1· Conversion set