Ecommerce
Country

List

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

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

### Result

 
  "data": [
    {
 
        "id": 1,
        "sortname": "AF",
        "name": "Afghanistan",
        "status": 0,
        "phonecode": 93
    },
    {
        ...
    }
 
  ]
 

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/countries?data=all&limit_per_page=1&name=admin&page=1
 
headers:{ 
    "Accept": "application/json",    
    "App-Master-Key" : `${app_token}`
}

### Result

{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "sortname": "AF",
            "name": "Afghanistan",
            "status": 0,
            "phonecode": 93
        },
        {
            ...
        },
        
    ],
    "first_page_url": "",
    "from": 1,
    "last_page": 17,
    "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": 15,
    "prev_page_url": null,
    "to": 15,
    "total": 246
}

=== Query Parameters ===

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

Here is example url:

==============================================================================================================
GET = http://localhost/coder_orbit/ecom/public/api/countries
==============================================================================================================
GET = http://localhost/master_api/public/api/countries?limit_per_page=1
==============================================================================================================
GET = http://localhost/master_api/public/api/countries?name=bangladesh
==============================================================================================================
GET = http://localhost/master_api/public/api/countries?page=1
==============================================================================================================
GET = http://localhost/master_api/public/api/countries?data=all&limit_per_page=1&name=admin&page=1
==============================================================================================================

Get District

Get District in a country GET by country_id Method allow for country

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

### Result

[
    {
        "id": 1,
        "country_id": 18,
        "name": "Dhaka",
        "bn_name": "ঢাকা"
    },
    {
        ...
    }
    
]

Get Police station

Get Police station in a district GET by district_id Method allow for district

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

### Result

[
    {
        "id": 493,
        "district_id": 1,
        "name": "Adabor",
        "bn_name": "1"
    },
    {
       .... 
    }
    
]
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.