Sha256: 9996570f2f0f2a5a1110dd0dffcf1eea97b9593ed1f32d4e058d982530a05821

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 KB

Contents

{
  "parameters": [

  ],
  "response_fields": [

  ],
  "requests": [
    {
      "request_headers": {
        "Content-Type": "application/json"
      },
      "request_query_parameters": {
      },
      "response_headers": {
        "X-Frame-Options": "SAMEORIGIN",
        "X-XSS-Protection": "1; mode=block",
        "X-Content-Type-Options": "nosniff",
        "X-Download-Options": "noopen",
        "X-Permitted-Cross-Domain-Policies": "none",
        "Referrer-Policy": "strict-origin-when-cross-origin",
        "Content-Type": "application/json; charset=utf-8",
        "Cache-Control": "no-cache, no-store, must-revalidate",
        "X-Request-Id": "624a232f-2a82-415e-89b1-e9a474ad6da1",
        "X-Runtime": "0.006536",
        "Expires": "0",
        "Content-Length": "59"
      },
      "request_method": "POST",
      "request_path": "/api/storefront/account",
      "request_body": "{\"email\":\"bob@\",\"password\":\"\"}",
      "request_content_type": "application/json",
      "response_status": 422,
      "response_status_text": "Unprocessable Entity",
      "response_body": "{\n  \"problems\": [\n    \"Password can't be blank\",\n    \"Email is invalid\"\n  ]\n}",
      "response_content_type": "application/json",
      "curl": "curl \"https://www.example.com/api/storefront/account\" -d '{\"email\":\"bob@\",\"password\":\"\"}' -X POST \\\n\t-H \"Content-Type: application/json\""
    }
  ],
  "resource": "Validation Errors",
  "description": "General validation errors",
  "route": "/api/storefront/account",
  "explanation": "            This demonstrates API responses when invalid data is submitted.\n",
  "http_method": "POST"
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-api-4.4.6 doc/api/storefront/validation_errors/general_validation_errors.json