RESTful APIs · Example Payload

Restful Apis Crud Example

Example demonstrating standard RESTful CRUD operations with proper HTTP methods, status codes, and resource representation

ArchitectureHTTPRESTWeb ServicesOpenAPIStandardsDesign

Restful Apis Crud Example is an example object payload from RESTful APIs, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionresourcebaseUrloperations

Example Payload

restful-apis-crud-example.json Raw ↑
{
  "description": "Example demonstrating standard RESTful CRUD operations with proper HTTP methods, status codes, and resource representation",
  "resource": "Product",
  "baseUrl": "https://api.example.com/v1",
  "operations": [
    {
      "operation": "Create",
      "request": {
        "method": "POST",
        "url": "/products",
        "headers": {
          "Content-Type": "application/json",
          "Authorization": "Bearer {{token}}"
        },
        "body": {
          "name": "Wireless Headphones",
          "price": 79.99,
          "category": "Electronics",
          "sku": "WH-001"
        }
      },
      "response": {
        "status": 201,
        "headers": {
          "Content-Type": "application/json",
          "Location": "/products/prod_abc123"
        },
        "body": {
          "id": "prod_abc123",
          "name": "Wireless Headphones",
          "price": 79.99,
          "category": "Electronics",
          "sku": "WH-001",
          "href": "/products/prod_abc123",
          "createdAt": "2026-05-02T10:00:00Z"
        }
      }
    },
    {
      "operation": "Read",
      "request": {
        "method": "GET",
        "url": "/products/prod_abc123",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 200,
        "body": {
          "id": "prod_abc123",
          "name": "Wireless Headphones",
          "price": 79.99,
          "href": "/products/prod_abc123"
        }
      }
    },
    {
      "operation": "List",
      "request": {
        "method": "GET",
        "url": "/products?category=Electronics&page=1&limit=20",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 200,
        "body": {
          "data": [
            {"id": "prod_abc123", "name": "Wireless Headphones", "price": 79.99}
          ],
          "meta": {
            "total": 1,
            "page": 1,
            "limit": 20
          }
        }
      }
    },
    {
      "operation": "Update",
      "request": {
        "method": "PUT",
        "url": "/products/prod_abc123",
        "headers": {
          "Content-Type": "application/json"
        },
        "body": {
          "name": "Premium Wireless Headphones",
          "price": 99.99,
          "category": "Electronics",
          "sku": "WH-001"
        }
      },
      "response": {
        "status": 200,
        "body": {
          "id": "prod_abc123",
          "name": "Premium Wireless Headphones",
          "price": 99.99,
          "updatedAt": "2026-05-02T11:00:00Z"
        }
      }
    },
    {
      "operation": "Delete",
      "request": {
        "method": "DELETE",
        "url": "/products/prod_abc123",
        "headers": {
          "Authorization": "Bearer {{token}}"
        }
      },
      "response": {
        "status": 204,
        "body": null
      }
    }
  ]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/restful-apis-crud-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.