Ecommerce
Slide

Create

You can add unlimited slide by slide create route, slide route allow only POST Method

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}
 
body:{
    "sequence": "",
    "name": "Home Slide",
    "banner": "", // file or base64
    "icon" : "", // file or base64
    "thumbnails" : "", // file or base64
    "status": 1, // 0 | 1,
    "description": "",
    "extend_props": {
      "test": "theis extend props",
      "test2": "theis extend props 02",
      ".....": "....."
    }
    
}

### Result

{
    "0": "Success",
    "store_data": {
        "id": 1,
        "unique_id": "Q5WpoWDoZ1zKxkF",
        "sequence": ,
        "name": "Home Slide",
        "slug": "home_slide",
        "banner": "",
        "icon": "",
        "thumbnails": "",
        "status": "1",
        "description": "this is description",
        "extend_props": {
        "test": "theis extend props",
        "test2": "theis extend props 02"
        },
        "created_by": 1,
        "updated_by": 1,
        "updated_at": "2023-03-17T04:31:53.000000Z",
        "created_at": "2023-03-17T04:31:53.000000Z",
    }
}
 

List

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

http://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}

### Result

"data" : [
    {
        "id": 1,
        "unique_id": "sLJvIENyg100Pxk",
        "sequence": ,
        "name": "Home Slide",
        "slug": "home_slide",
        "banner": "",
        "icon": "",
        "thumbnails": "",
        "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": []
    },
    .........
 
  ],

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/admin/{{app_token}}/slide?limit_per_page=1
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}

### slide

"data" : [
    {
       "id": 1,
        "unique_id": "sLJvIENyg100Pxk",
        "sequence": ,
        "name": "Home Slide",
        "slug": "home_slide",
        "banner": "",
        "icon": "",
        "thumbnails": "",
        "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": "https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide?page=1",
  "links": [
    {
      "url": null,
      "label": "« Previous",
      "active": false
    },
    {
      "url": "https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next »",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide",
  "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/admin/{{app_token}}/slide
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide?name=apple
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide?page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide?data=all&limit_per_page=1&name=admin&page=1
==============================================================================================================

Single Show

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide/{{id}}
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}

Edit Slide

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide/{{id}}/edit
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}

### Result

{
  "data": {
        "id": 1,
        "unique_id": "sLJvIENyg100Pxk",
        "sequence": ,
        "name": "Home Slide",
        "slug": "home_slide",
        "banner": "",
        "icon": "",
        "thumbnails": "",
        "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": []
    }
}

Update Slide

Method allow for Slide update PUT/PATCH/POST

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide/{{id}}
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}
body:{
    "sequence": "",
    "name": "Home Slide",
    "banner": "", // file or base64
    "icon" : "", // file or base64
    "thumbnails" : "", // file or base64
    "status": 1, // 0 | 1,
    "description": "",
    "extend_props": {
        "test": "theis extend props",
        "test2": "theis extend props 02",
        ".....": "....."
    },
}

### Result

{
  "data": {
    "id": 1,
    "unique_id": "sLJvIENyg100Pxk",
    "sequence": "",
    "parent_id": null,
    "name": "Home Slide",
    "slug": "home_slide",
    "banner": "",
    "icon": "",
    "thumbnails": "",
    "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"
  }
}

DELETE

Method allow for slide delete DELETE

https://ecom.coderorbit.com/public/api/admin/{{app_token}}/slide/{{id}}
 
headers:{ 
    "Accept": "application/json"    
    "Authorization" : `Bearer ${token}`
}

### Result

Success

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.