{ "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, 27 Nov 2019 00:45:05 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "f3adc2dd-dbc6-492a-8861-617ee60e659a", "X-Runtime": "0.009349", "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\": \"5dddc7111241594254076416\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\n \"client_id\": null,\n \"created_at\": \"2019-11-27T00:45:05.821Z\",\n \"default_sort\": \"top_sellers\",\n \"name\": \"Test Category\",\n \"product_ids\": [\n\n ],\n \"product_rules\": [\n {\n \"_id\": \"5dddc7111241594254076417\",\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\": \"2019-11-27T00:45:05.821Z\"\n },\n {\n \"_id\": \"5dddc7101241594254076412\",\n \"active\": true,\n \"active_segment_ids\": [\n\n ],\n \"client_id\": null,\n \"created_at\": \"2019-11-27T00:45:04.937Z\",\n \"default_sort\": \"top_sellers\",\n \"name\": \"Test Category\",\n \"product_ids\": [\n\n ],\n \"product_rules\": [\n {\n \"_id\": \"5dddc7101241594254076413\",\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\": \"2019-11-27T00:45:04.937Z\"\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" }