Sha256: f966bb6ae81d66179222a642ce00cbac321459afe392861d1727b90b251937ba
Contents?: true
Size: 1.99 KB
Versions: 1
Compression:
Stored size: 1.99 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", "Location": "/api/admin/redirects/5d5ecb31d4322a04dfbf7543", "Content-Type": "application/json; charset=utf-8", "ETag": "W/\"feb2522db9ebc170c8c5b3db9cf47029\"", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "ba69b75f-9e39-4b08-aadb-246c6ab9f69e", "X-Runtime": "0.011981", "Expires": "0", "Content-Length": "168" }, "request_method": "POST", "request_path": "/api/admin/redirects", "request_body": "{\"redirect\":{\"created_at\":\"2019-08-22T17:04:49.295Z\",\"destination\":\"/pages/faq\",\"path\":\"/foo\",\"updated_at\":\"2019-08-22T17:04:49.295Z\"}}", "request_content_type": "application/json", "response_status": 201, "response_status_text": "Created", "response_body": "{\n \"redirect\": {\n \"_id\": \"5d5ecb31d4322a04dfbf7543\",\n \"created_at\": \"2019-08-22T17:04:49.295Z\",\n \"destination\": \"/pages/faq\",\n \"path\": \"/foo\",\n \"updated_at\": \"2019-08-22T17:04:49.295Z\"\n }\n}", "response_content_type": "application/json", "curl": "curl \"https://www.example.com/api/admin/redirects\" -d '{\"redirect\":{\"created_at\":\"2019-08-22T17:04:49.295Z\",\"destination\":\"/pages/faq\",\"path\":\"/foo\",\"updated_at\":\"2019-08-22T17:04:49.295Z\"}}' -X POST \\\n\t-H \"Content-Type: application/json\"" } ], "resource": "Redirects", "description": "Creating a redirect", "route": "/api/admin/redirects", "http_method": "POST" }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-api-4.4.7 | doc/api/admin/redirects/creating_a_redirect.json |