Create
You can add unlimited page by page create route, page route allow only POST Method
https://ecom.coderorbit.com/api/admin/{{app_token}}/page
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
body:{
"name": "Landing Page",
"description": "", //string
"status": 1, // 1 | 0
"layout": 0,
"extend_props": [
{
"field_name": ".....",
"value": "....."
}
]
}
Result
{
"status": "success",
"message": "Page created successfully",
"data": {
"id": 47,
"unique_id": "AeoPan3XS4CkWtY",
"name": "Landing Page",
"slug": "landing-page",
"description": "Welcome to my Ecommerce site ABCD. Hope you get Best Service by us 😀",
"status": 1,
"layout": 0,
"extend_props": [
{
"field_name": "facebook_link",
"value": "facebook.com/abvccsv"
}
],
"created_by": {
"id": 1,
"name": "Admin"
},
"updated_by": {
"id": 1,
"name": "Admin"
},
"created_at": "2025-01-30T07:00:42.000000Z",
"updated_at": "2025-01-30T07:00:42.000000Z",
"props": [
{
"id": 56,
"page_id": 47,
"field_name": "facebook_link",
"value": "facebook.com/abvccsv",
"created_at": null,
"updated_at": null
}
]
}
}
List
Get all pages list by GET Method with filter function customized option for you. below list of route with parameter
http://ecom.coderorbit.com/api/admin/{{app_token}}/page
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
{
"current_page": 1,
"data": [
{
"id": 47,
"unique_id": "AeoPan3XS4CkWtY",
"name": "Landing Page",
"slug": "landing-page",
"description": "Welcome to my Ecommerce site ABCD. Hope you get Best Service by us 😀",
"status": 1,
"layout": 0,
"extend_props": [
{
"field_name": "facebook_link",
"value": "facebook.com/abvccsv"
}
],
"created_by": {
"id": 1,
"name": "Admin"
},
"updated_by": {
"id": 1,
"name": "Admin"
},
"created_at": "2025-01-30T07:00:42.000000Z",
"updated_at": "2025-01-30T07:00:42.000000Z",
"props": [
{
"id": 56,
"page_id": 47,
"field_name": "facebook_link",
"value": "facebook.com/abvccsv",
"created_at": null,
"updated_at": null
}
]
},
{
...
}
],
"first_page_url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=1",
"from": 1,
"last_page": 2,
"last_page_url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=2",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=1",
"label": "1",
"active": true
},
{
"url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=2",
"label": "2",
"active": false
},
{
"url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=2",
"label": "Next »",
"active": false
}
],
"next_page_url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=2",
"path": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 16
}
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/api/admin/{{app_token}}/page?limit_per_page=1
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
{
"current_page": 1,
"data": [
{
"id": 47,
"unique_id": "AeoPan3XS4CkWtY",
"name": "Landing Page",
"slug": "landing-page",
"description": "Welcome to my Ecommerce site ABCD. Hope you get Best Service by us 😀",
"status": 1,
"layout": 0,
"extend_props": [
{
"field_name": "facebook_link",
"value": "facebook.com/abvccsv"
}
],
"created_by": {
"id": 1,
"name": "Admin"
},
"updated_by": {
"id": 1,
"name": "Admin"
},
"created_at": "2025-01-30T07:00:42.000000Z",
"updated_at": "2025-01-30T07:00:42.000000Z",
"props": [
{
"id": 56,
"page_id": 47,
"field_name": "facebook_link",
"value": "facebook.com/abvccsv",
"created_at": null,
"updated_at": null
}
]
}
],
"first_page_url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=1",
"from": 1,
"last_page": 16,
"last_page_url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=16",
"links": [
...
],
"next_page_url": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page?page=2",
"path": "http://192.168.0.104:8000/api/admin/hNpkY2FxW280gBp/page",
"per_page": 1,
"prev_page_url": null,
"to": 1,
"total": 16
}
=== 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/api/admin/{{app_token}}/page
==============================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/page?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/page?name=apple
==============================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/page?page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/page?limit_per_page=1
==============================================================================================================
GET = https://ecom.coderorbit.com/api/admin/{{app_token}}/page?data=all
==============================================================================================================
Single Show
To show single page GET Method
https://ecom.coderorbit.com/api/admin/{{app_token}}/page/{{id}}
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Edit Page
To get specific data use GET Method
https://ecom.coderorbit.com/api/admin/{{app_token}}/page/{{id}}
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
{
"data": {
"id": 47,
"unique_id": "AeoPan3XS4CkWtY",
"name": "Landing Page",
"slug": "landing-page",
"description": "Welcome to my Ecommerce site ABCD. Hope you get Best Service by us 😀",
"status": 1,
"layout": 0,
"extend_props": [
{
"field_name": "facebook_link",
"value": "facebook.com/abvccsv"
}
],
"created_by": {
"id": 1,
"name": "Admin"
},
"updated_by": {
"id": 1,
"name": "Admin"
},
"created_at": "2025-01-30T07:00:42.000000Z",
"updated_at": "2025-01-30T07:00:42.000000Z",
"props": [
{
"id": 56,
"page_id": 47,
"field_name": "facebook_link",
"value": "facebook.com/abvccsv",
"created_at": null,
"updated_at": null
}
]
}
}
Update Page
Method allow for page update PUT/PATCH/POST
https://ecom.coderorbit.com/api/admin/{{app_token}}/page/{{id}}
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
body:{
"name": "Landing Page Updated",
"description": "", //string
"status": 1, // 1 | 0
"layout": 0,
"extend_props": [
{
"field_name": ".....",
"value": "....."
}
]
}
Result
{
"status": "success",
"message": "Page update successfully",
"data": {
"id": 47,
"unique_id": "AeoPan3XS4CkWtY",
"name": "Landing Page",
"slug": "landing-page",
"description": "Welcome to my Ecommerce site ABCD. Hope you get Best Service by us 😀",
"status": 1,
"layout": 0,
"extend_props": [
{
"field_name": "facebook_link",
"value": "facebook.com/abvccsv"
}
],
"created_by": {
"id": 1,
"name": "Admin"
},
"updated_by": {
"id": 1,
"name": "Admin"
},
"created_at": "2025-01-30T07:00:42.000000Z",
"updated_at": "2025-01-30T07:00:42.000000Z",
"props": [
{
"id": 56,
"page_id": 47,
"field_name": "facebook_link",
"value": "facebook.com/abvccsv",
"created_at": null,
"updated_at": null
}
]
}
}
DELETE
Method allow for page delete DELETE
https://ecom.coderorbit.com/api/admin/{{app_token}}/page/{{id}}
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
Result
{
"status": "success",
"message": "Page delete successfully",
"data": {
"id": 47,
"unique_id": "AeoPan3XS4CkWtY",
"name": "Landing Page",
"slug": "landing-page",
"description": "Welcome to my Ecommerce site ABCD. Hope you get Best Service by us 😀",
"status": 1,
"layout": 0,
"extend_props": [
{
"field_name": "facebook_link",
"value": "facebook.com/abvccsv"
}
],
"created_by": {
"id": 1,
"name": "Admin"
},
"updated_by": {
"id": 1,
"name": "Admin"
},
"created_at": "2025-01-30T07:00:42.000000Z",
"updated_at": "2025-01-30T07:00:42.000000Z",
"props": [
{
"id": 56,
"page_id": 47,
"field_name": "facebook_link",
"value": "facebook.com/abvccsv",
"created_at": null,
"updated_at": null
}
]
}
}