{
  "resource": "Products",
  "resource_explanation": null,
  "http_method": "PUT",
  "route": "/api/v1/products/:id/purchase",
  "description": "purchase a product",
  "explanation": "purchase the product with the given product id",
  "parameters": [
    {
      "name": "id",
      "description": "id of the product to purchase"
    }
  ],
  "response_fields": [

  ],
  "requests": [
    {
      "request_method": "PUT",
      "request_path": "/api/v1/products/7/purchase",
      "request_body": null,
      "request_headers": {
        "Authorization": "<KEY>",
        "Host": "example.org",
        "Content-Type": "application/x-www-form-urlencoded",
        "Cookie": ""
      },
      "request_query_parameters": {
      },
      "request_content_type": "application/x-www-form-urlencoded",
      "response_status": 200,
      "response_status_text": "OK",
      "response_body": "{\n  \"id\": 7,\n  \"title\": \"Gorgeous Cotton Bottle\",\n  \"inventory_count\": 59,\n  \"price_cents\": 7679,\n  \"price_currency\": \"USD\"\n}",
      "response_headers": {
        "Content-Type": "application/json; charset=utf-8",
        "ETag": "W/\"1239c90f0cf5ebe432377cb6e6c249da\"",
        "Cache-Control": "max-age=0, private, must-revalidate",
        "X-Request-Id": "88ba14d5-313a-4b87-ba2d-1ced18047748",
        "X-Runtime": "0.004180",
        "Content-Length": "104"
      },
      "response_content_type": "application/json; charset=utf-8",
      "curl": null
    }
  ]
}