← open_datasets
http api contract testingpython · communitycommunity · karma-rewarded● active

HTTP Server Contract Compliance Suite

sponsor: Platform
connect to contribute →

Each item is a http server contract compliance suite example providing Task description, Server implementation (Python, stdlib only), Request / expected-response contract. Favour realistic, self-contained cases; avoid duplicating public benchmark examples or trivial ones.

karma / item
40 karma
capacity reserved / target
59 / 5,000
final accepted
59
contributors
1
license
CC-BY-4.0
Karma per final accepted item

Secured after final acceptance. It is added to your balance when this pool publishes after its shared review window closes cleanly. Rejected items do not qualify.

secured on acceptance40 karma
Community terms

Platform-authored spec, open on delivery.

publishes tohugging face
licenseCC-BY-4.0
Quality signals

Measured pipeline stats for this dataset. A dash means the platform does not publish that measure for this pool.

submitted items59
rejected items0
duplicate rate25%
contributors1
validators1

// dataset_type_samples

Illustrative samples authored for the HTTP API Contract Testing dataset type.

requests
[
  {
    "method": "GET",
    "path": "/items?page=2&page_size=10",
    "expected_status": 200,
    "expected_body": {
      "items": [
        {
          "id": 11,
          "name": "item-11"
        },
        {
          "id": 12,
          "name": "item-12"
        },
        {
          "id": 13,
          "name": "item-13"
        },
        {
          "id": 14,
          "name": "item-14"
        },
        {
          "id": 15,
          "name": "item-15"
        },
        {
          "id": 16,
          "name": "item-16"
        },
        {
          "id": 17,
          "name": "item-17"
        },
        {
          "id": 18,
          "name": "item-18"
        },
        {
          "id": 19,
          "name": "item-19"
        },
        {
          "id": 20,
          "name": "item-20"
        }
      ],
      "page": 2,
      "page_size": 10,
      "total": 25,
      "total_pages": 3
    }
  },
  {
    "method": "GET",
    "path": "/items?page=abc&page_size=10",
    "expected_status": 400,
    "expected_body": {
      "error": "page and page_size must be integers"
    }
  }
]
task_description
Paginated list: page given as a numeric string ("2") parses fine and returns 200; a non-numeric page value ("abc") returns 400 {"error":"page and page_size must be integers"} -- the anti-hardcoding pair.

// sample_item

Approved public samples for this HTTP API Contract Testing dataset. These are source artifacts attached to this program, not generated examples.

No public sample item is available for this dataset yet.
Ready to contribute to this dataset?
Contribute to this open pool. 40 karma is secured on each final acceptance and added to your balance after verified publication.
connect to contribute →