URL : api/location-list

Method : GET

Query Parameters :

Parameter Type Possible Values Required/Optional Description
sort-field String name Optional Field name to sort
sort-order String asc, desc Optional Sorting order either ascending or descending
search-query String Optional Keyword to be searched in Location list page
limit Integer Optional Number of records to be displayed in each page
page Integer Optional Page number

Success Response:

  {
  "success":true,
  "data":{
    "current_page":1,
    "first_page_url":"http:\/\/localhost\/faveo_sd\/faveo-helpdesk-advance\/public\/api\/location-list?page=1",
    "from":1,
    "last_page":1,
    "last_page_url":"http:\/\/localhost\/faveo_sd\/faveo-helpdesk-advance\/public\/api\/location-list?page=1",
    "next_page_url":null,
    "path":"http:\/\/localhost\/faveo_sd\/faveo-helpdesk-advance\/public\/api\/location-list",
    "per_page":"10",
    "prev_page_url":null,
    "to":2,
    "total":2,
    "locations":[
      {
        "id":23,
        "title":"Location",
        "email":null,
        "phone":"",
        "address":"",
        "status":0,
        "created_at":"2020-08-24 11:24:39",
        "updated_at":"2020-08-24 11:24:39",
        "is_default":1
      },
      {
        "id":17,
        "title":"Abhishek12",
        "email":null,
        "phone":null,
        "address":null,
        "status":0,
        "created_at":"2020-08-13 05:22:54",
        "updated_at":"2020-08-24 11:21:14",
        "is_default":0
      }
    ]
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *