Sha256: 3ca1f4c7682891fc2961a3e183b42cdaf4d02385a29dd5bdebdd4e87a3a31f0c
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": "9cf31710-98e2-4a0e-a0e9-8c98d3044773", "X-Runtime": "0.008732", "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", "http_method": "POST", "explanation": " This demonstrates API responses when invalid data is submitted.\n" }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-api-4.4.7 | doc/api/storefront/validation_errors/general_validation_errors.json |