Dashboard
用於用戶登入後的首頁,這邊僅能當前登入用戶可以查看。
[GET][AUTH][CURRENT_USER] /api/dashboard/links/inbox
取得當前用戶 links 中狀態為 inbox 的 link。
response
json
{
"data": [
{
"id": 1,
"user_id": 1,
"host": "https:\/\/yish.dev",
"url": "https:\/\/yish.dev\/posts\/backpack-nova-filamentphp\/",
"title": "Laravel backpack vs Laravel nova vs FilamentPHP",
"published_at": "2024-06-18T11:37:21.000000Z",
"options": {
"icon": "https:\/\/yish.dev\/apple-touch-icon.png",
"image": "https:\/\/yish.dev\/1200.png",
"favicon": "https:\/\/yish.dev\/favicon.ico",
"authorName": "Yish",
"description": "FilamentPHP is a next generation and full stack package (TALL), it’s really great and easy to use for your admin panel and CMS. Laravel backpack In 2016, when I was a SOHO, I used Backpack as my main stack to build projects for my customers. It’s really flexible and customizable if you understand the author’s design philosophy. I could add any packages and functions I wanted into these projects created with Laravel Backpack.",
"providerName": "Yish"
},
"status": "inbox",
"created_at": "2024-06-30T14:05:36.000000Z",
"updated_at": "2024-06-30T14:05:36.000000Z",
"deleted_at": null,
"type": "article"
}
],
"links": {
"first": "http:\/\/nordpress-next.test\/api\/dashboard\/links\/inbox?page=1",
"last": "http:\/\/nordpress-next.test\/api\/dashboard\/links\/inbox?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http:\/\/nordpress-next.test\/api\/dashboard\/links\/inbox?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "http:\/\/nordpress-next.test\/api\/dashboard\/links\/inbox",
"per_page": 10,
"to": 1,
"total": 1
}
}[GET][AUTH][CURRENT_USER] /api/dashboard/links/archive
取得當前用戶 links 中狀態為 archive 的 link。
response
json
{
"data": [
{
"id": 1,
"user_id": 1,
"host": "https:\/\/yish.dev",
"url": "https:\/\/yish.dev\/posts\/backpack-nova-filamentphp\/",
"title": "Laravel backpack vs Laravel nova vs FilamentPHP",
"published_at": "2024-06-18T11:37:21.000000Z",
"options": {
"icon": "https:\/\/yish.dev\/apple-touch-icon.png",
"image": "https:\/\/yish.dev\/1200.png",
"favicon": "https:\/\/yish.dev\/favicon.ico",
"authorName": "Yish",
"description": "FilamentPHP is a next generation and full stack package (TALL), it’s really great and easy to use for your admin panel and CMS. Laravel backpack In 2016, when I was a SOHO, I used Backpack as my main stack to build projects for my customers. It’s really flexible and customizable if you understand the author’s design philosophy. I could add any packages and functions I wanted into these projects created with Laravel Backpack.",
"providerName": "Yish"
},
"status": "archive",
"created_at": "2024-06-30T14:05:36.000000Z",
"updated_at": "2024-06-30T14:05:36.000000Z",
"deleted_at": null,
"type": "article"
}
],
"links": {
"first": "http:\/\/nordpress-next.test\/api\/dashboard\/links\/archive?page=1",
"last": "http:\/\/nordpress-next.test\/api\/dashboard\/links\/archive?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http:\/\/nordpress-next.test\/api\/dashboard\/links\/archive?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "http:\/\/nordpress-next.test\/api\/dashboard\/links\/archive",
"per_page": 10,
"to": 1,
"total": 1
}
}[GET][AUTH][CURRENT_USER] /api/dashboard/:type/randomly
取得當前用戶指定類型的隨機內容跟數量。
- 類型:type=in('link', 'note', 'highlight')
- 數量:query=count=1
response
json
{
"data": [
{
"id": 1,
"user_id": 1,
"host": "https:\/\/yish.dev",
"url": "https:\/\/yish.dev\/posts\/backpack-nova-filamentphp\/",
"title": "Laravel backpack vs Laravel nova vs FilamentPHP",
"published_at": "2024-06-18T11:37:21.000000Z",
"options": {
"icon": "https:\/\/yish.dev\/apple-touch-icon.png",
"image": "https:\/\/yish.dev\/1200.png",
"favicon": "https:\/\/yish.dev\/favicon.ico",
"authorName": "Yish",
"description": "FilamentPHP is a next generation and full stack package (TALL), it’s really great and easy to use for your admin panel and CMS. Laravel backpack In 2016, when I was a SOHO, I used Backpack as my main stack to build projects for my customers. It’s really flexible and customizable if you understand the author’s design philosophy. I could add any packages and functions I wanted into these projects created with Laravel Backpack.",
"providerName": "Yish"
},
"status": "archive",
"created_at": "2024-06-30T14:05:36.000000Z",
"updated_at": "2024-06-30T14:05:36.000000Z",
"deleted_at": null,
"type": "article"
}
]
}[GET][AUTH][CURRENT_USER] /api/dashboard/:type/recently
取得當前用戶指定類型的最新內容跟數量。
- 類型:type=in('link', 'note', 'highlight')
- 數量:query=count=1
response
json
{
"data": [
{
"id": 1,
"user_id": 1,
"host": "https:\/\/yish.dev",
"url": "https:\/\/yish.dev\/posts\/backpack-nova-filamentphp\/",
"title": "Laravel backpack vs Laravel nova vs FilamentPHP",
"published_at": "2024-06-18T11:37:21.000000Z",
"options": {
"icon": "https:\/\/yish.dev\/apple-touch-icon.png",
"image": "https:\/\/yish.dev\/1200.png",
"favicon": "https:\/\/yish.dev\/favicon.ico",
"authorName": "Yish",
"description": "FilamentPHP is a next generation and full stack package (TALL), it’s really great and easy to use for your admin panel and CMS. Laravel backpack In 2016, when I was a SOHO, I used Backpack as my main stack to build projects for my customers. It’s really flexible and customizable if you understand the author’s design philosophy. I could add any packages and functions I wanted into these projects created with Laravel Backpack.",
"providerName": "Yish"
},
"status": "archive",
"created_at": "2024-06-30T14:05:36.000000Z",
"updated_at": "2024-06-30T14:05:36.000000Z",
"deleted_at": null,
"type": "article"
}
]
}