{ "parameters": [ { "name": "page", "description": "Page number" } ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { "page": "1" }, "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", "Date": "Wed, 27 Nov 2019 00:52:42 GMT", "Content-Type": "application/json; charset=utf-8", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "*", "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 27 Nov 2019 00:52:42 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "1985fa40-07cb-4cf7-b01a-2d60583fd06f", "X-Runtime": "0.006764", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "273" }, "request_method": "GET", "request_path": "/api/storefront/categories?page=1", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"categories\": [\n {\n \"id\": \"5dddc8da1241596aa5204cc9\",\n \"name\": \"Shirts\",\n \"slug\": \"shirts\",\n \"url\": \"http://www.example.com/api/storefront/categories/shirts\"\n },\n {\n \"id\": \"5dddc8da1241596aa5204cd3\",\n \"name\": \"Pants\",\n \"slug\": \"pants\",\n \"url\": \"http://www.example.com/api/storefront/categories/pants\"\n }\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/storefront/categories?page=1\" -X GET " } ], "resource": "Categories", "description": "Showing a listing of categories", "route": "/api/storefront/categories", "explanation": "
This endpoint will give you a paginated list of all active
\ncategories, that is, all categories that could be shown on the
\nstorefront.