Ecommerce
Product Feedback/Review

List

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

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/feedbacks
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}
 
#// this option goes for your custom filter, Use only you need any field
 
body:{
	
	"vendor_id": 1,
	"product_id": 3,
 	"customer_id": 1,
	"created_date": "2023-05-11",
  	"range_created_date_to": "2023-12-11",
  	"range_created_date_from": "2023-12-11"
 
	"or_vendor_id": 1,
	"or_product_id": 3,
 	"or_customer_id": 1,
	"or_created_date": "2023-05-11",
  	"or_range_created_date_to": "2023-12-11",
  	"or_range_created_date_from": "2023-12-11"
}

### Result

    {
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "vendor_id": 1,
                "product_id": 3,
                "customer_id": 1,
                "rattings": 4.5,
                "comments": "this product is very good quality",
                "status": 0,
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2023-09-17T08:44:18.000000Z",
                "updated_at": "2023-09-17T08:44:18.000000Z",
                "product": {
                    "id": 3,
                    "name": "this first add product from vs code"
                },
                "vendor": {
                    "id": 1,
                    "name": "Majadul Islam"
                },
                "customer": {
                    "id": 1,
                    "name": "Majadul Islam"
                }
            },
	    {
	      ....
	    }
        ],
        "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": 1,
        "total": 1
    }
}
 

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

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/web_settings?limit_per_page=1
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}

### Result

    {
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "vendor_id": 1,
                "product_id": 3,
                "customer_id": 1,
                "rattings": 4.5,
                "comments": "this product is very good quality",
                "status": 0,
                "created_by": 1,
                "updated_by": 1,
                "created_at": "2023-09-17T08:44:18.000000Z",
                "updated_at": "2023-09-17T08:44:18.000000Z",
                "product": {
                    "id": 3,
                    "name": "this first add product from vs code"
                },
                "vendor": {
                    "id": 1,
                    "name": "Majadul Islam"
                },
                "customer": {
                    "id": 1,
                    "name": "Majadul Islam"
                }
            },
	    {
	      ....
	    }
        ],
        "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": 1,
        "total": 1
    }
}
 

=== Query Parameters ===

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

Here is example url:

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

Update

Method allow for update PUT/PATCH/POST

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/feedbacks/{{id}}
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}
 
body:{
 
 
      "rattings": 4.5,
      "comments": "this product is very good quality",
      "status": 0 // by default 0 = hide, 1 = show
  }

### Result

{
    "msg": "feeback_update"
}
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.