{ "parameters": [ { "name": "page", "description": "Current page" }, { "name": "sort_by", "description": "Field on which to sort (see responses for possible values)" }, { "name": "sort_direction", "description": "Direction to sort (asc or desc)" } ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { "page": "1", "sort_by": "created_at", "sort_direction": "desc" }, "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", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 19 Aug 2020 13:52:50 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "961fb991-10e9-4c0e-8b35-4e453266db67", "X-Runtime": "0.007664", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "1080" }, "request_method": "GET", "request_path": "/api/admin/categories?page=1&sort_by=created_at&sort_direction=desc", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"categories\": [\n {\n \"_id\": \"5f3d2eb20218236de151fb8f\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\n \"client_id\": null,\n \"created_at\": \"2020-08-19T13:52:50.383Z\",\n \"default_sort\": \"top_sellers\",\n \"name\": \"Test Category\",\n \"product_ids\": [\n\n ],\n \"product_rules\": [\n {\n \"_id\": \"5f3d2eb20218236de151fb90\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\n \"created_at\": null,\n \"name\": \"search\",\n \"operator\": \"equals\",\n \"updated_at\": null,\n \"value\": \"*\"\n }\n ],\n \"range_facets\": {\n },\n \"show_navigation\": true,\n \"slug\": \"test-category-1\",\n \"subscribed_user_ids\": [\n\n ],\n \"tags\": [\n\n ],\n \"terms_facets\": [\n\n ],\n \"updated_at\": \"2020-08-19T13:52:50.383Z\"\n },\n {\n \"_id\": \"5f3d2eb20218236de151fb8b\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\n \"client_id\": null,\n \"created_at\": \"2020-08-19T13:52:50.156Z\",\n \"default_sort\": \"top_sellers\",\n \"name\": \"Test Category\",\n \"product_ids\": [\n\n ],\n \"product_rules\": [\n {\n \"_id\": \"5f3d2eb20218236de151fb8c\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\n \"created_at\": null,\n \"name\": \"search\",\n \"operator\": \"equals\",\n \"updated_at\": null,\n \"value\": \"*\"\n }\n ],\n \"range_facets\": {\n },\n \"show_navigation\": true,\n \"slug\": \"test-category\",\n \"subscribed_user_ids\": [\n\n ],\n \"tags\": [\n\n ],\n \"terms_facets\": [\n\n ],\n \"updated_at\": \"2020-08-19T13:52:50.156Z\"\n }\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/admin/categories?page=1&sort_by=created_at&sort_direction=desc\" -X GET " } ], "resource": "Categories", "description": "Listing categories", "route": "/api/admin/categories", "http_method": "GET" }