Ecommerce
Category

List

Get all category list by GET Method with filter function customized option for you. below list of route with parameter

https://ecom.coderorbit.com/public/api/category
 
headers:{ 
    "Accept": "application/json",   
    "App-Master-Key": `${app_token}`
}

### Result

{
  "current_page": 1,
  "data": [
    {
      "id": 1,
      "unique_id": "sLJvIENyg100Pxk",
      "parent_id": null,
      "name": "Apple",
      "slug": "apple",
      "banner": "",
      "icon": "",
      "thumbnails": "",
      "commission": 10,
      "commission_type": "fixed",
      "status": 1,
      "description": "this is description",
      "extend_props": {
        "'test'": "theis extend props 02"
      },
      "created_by": 1,
      "updated_by": 1,
      "created_at": "2023-03-17T04:25:43.000000Z",
      "updated_at": "2023-03-17T04:25:43.000000Z",
      "props": []
    },
    .........
 
  ],
  "first_page_url": "",
  "from": 1,
  "last_page": 1,
  "last_page_url": "",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "",
  "per_page": 15,
  "prev_page_url": null,
  "to": 6,
  "total": 6
}
 

If you want to get by pagination to the list by GET Method Here we have this featuer for you in ths route with parameter like: limit_per_page

http://ecom.coderorbit.com/public/api/category?limit_per_page=1
 
headers:{ 
    "Accept": "application/json",    
    "App-Master-Key" : `${app_token}`
}

### Result

"data" : [
    {
      "id": 1,
      "unique_id": "sLJvIENyg100Pxk",
      "parent_id": null,
      "name": "Test Category",
      "slug": "Test Category",
      "banner": "",
      "icon": "",
      "thumbnails": "",
      "commission": 10,
      "commission_type": "fixed",
      "status": 1,
      "description": "this is description",
      "extend_props": {
        "'test'": "theis extend props 02"
      },
      "created_by": 1,
      "updated_by": 1,
      "created_at": "2023-03-17T04:25:43.000000Z",
      "updated_at": "2023-03-17T04:25:43.000000Z",
      "props": []
    },
    .........
 
  ],
  ,
  "first_page_url": "",
  "from": 1,
  "last_page": 1,
  "last_page_url": "",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "",
  "per_page": 15,
  "prev_page_url": null,
  "to": 100,
  "total": 100
}

=== Query Parameters ===

limit_per_page = 1 // Default 15
name = ''
page = 1 // number of page for pagination
data = all

Here is example url:

==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/category
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/category?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/category?name=apple
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/category?page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/category?data=all&limit_per_page=1&name=admin&page=1
==============================================================================================================

Single Category Show

Category with relative data/product GET Method allow for category

https://ecom.coderorbit.com/public/api/category/with_data/{{id}}
headers:{ 
    "Accept": "application/json"    
    "App-Master-Key" : `${app_token}`
}

### Result

{
    "category": {
        "id": 3,
        "unique_id": "KKL301176854",
        "parent_id": 0,
        "name": "Formal Shirt",
        "slug": "formal-shirt",
        "sequence": 0,
        "commission": 12,
        "commission_type": "parcentage",
        "icon": null,
        "thumbnails": null,
        "banner": null,
        "description": "Formal Shirt,",
        "status": 1,
        "extend_props": null,
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2023-01-17T10:41:05.000000Z",
        "updated_at": "2023-01-17T10:41:05.000000Z",
        "props": [
            {
                "id": 1,
                "category_id": 3,
                "field_name": "check",
                "value": "test status",
                "created_at": null,
                "updated_at": null
            }
        ]
    },
    "products": {
        "current_page": 1,
        "data": [
            {
                "id": 3,
                "unique_id": "bd8C45f3BSm8XAa",
                "category": [
                    "1",
                    "2",
                    "3",
                    "4"
                ],
                "brand_id": 1,
                "vendor_id": 1,
                "country_id": 1,
                "district_id": 1,
                "police_station_id": 1,
                "name": "this first add product from vs code",
                "slug": "this_first_add_product_from_vs_code_bd8C45f3BSm8XAa",
                "sequence": 0,
                "icon": null,
                "thumbnails": null,
                "banner": null,
                "description": "this first add product from vs code description",
                "status": 1,
                "regular_price": 50,
                "current_price": 40,
                "dicount": 10,
                "dicount_type": "fixed",
                "stock": 20,
                "unit": "pcs",
                "minimum_order": null,
                "start_offer": "2023-02-19 12:55:51",
                "end_offer": "2023-11-19 12:55:51",
                "extend_props": {
                    "test": "test one",
                    "test2": "check"
                },
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2023-05-10T21:19:54.000000Z",
                "updated_at": "2023-05-10T21:19:54.000000Z",
                "deleted_at": null
            }
        ],
        "first_page_url": "",
        "from": 1,
        "last_page": 4,
        "last_page_url": "",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "",
                "label": "1",
                "active": true
            },
            {
                "url": "",
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": "",
        "path": "",
        "per_page": 1,
        "prev_page_url": null,
        "to": 1,
        "total": 4
    }
}

All Category Show

Category all with relative data/product GET Method allow for category

https://ecom.coderorbit.com/public/api/category/with_data
 
headers:{ 
    "Accept": "application/json"    
    "App-Master-Key" : `${app_token}`
}

### Result

{
    "current_page": 20,
    "data": [
        {
            "id": 20,
            "unique_id": "KKL375940861",
            "parent_id": 0,
            "name": "Cotton Tube Bra",
            "slug": "cotton-tube-bra",
            "sequence": 0,
            "commission": 20,
            "commission_type": "parcentage",
            "icon": null,
            "thumbnails": null,
            "banner": null,
            "description": "Cotton Tube Bra For Women",
            "status": 1,
            "extend_props": null,
            "created_by": 1,
            "updated_by": 1,
            "created_at": "2023-01-17T10:41:05.000000Z",
            "updated_at": "2023-01-17T10:41:05.000000Z",
            "props": [],
            "product": []
        }
    ],
    "first_page_url": "",
    "from": 20,
    "last_page": 101,
    "last_page_url": "",
    "links": [
        {
            "url": "",
            "label": "« Previous",
            "active": false
        },
        {
           ....
        },
 
    ],
    "next_page_url": "",
    "path": "",
    "per_page": 1,
    "prev_page_url": "",
    "to": 20,
    "total": 101
}
CODER ORBIT
Bangladesh Office:
Call: 01534-645492
11/C, House-01, Lane-10
Road-11, Dhaka 1216
Email: support@coderorbit.com
Others
Domain & Hosting
Course
Debug
Portfolio
FOLLOW US
SUBSCRIBE US
Subscribe
2018 - 2024 Copyright © Coder Orbit. All rights reserved.