140 أسطر
4.6 KiB
JSON
140 أسطر
4.6 KiB
JSON
{
|
|
"baseUrl": "{{baseUrl}}",
|
|
"dashboardType": "SuperAdmin",
|
|
"notes": [
|
|
"This dashboard must authenticate with /auth/superadmin/* routes only.",
|
|
"User-only routes are not a valid contract for this dashboard unless they have a dedicated /admin or /superadmin variant.",
|
|
"The dashboard proxy should target the Nest backend API base URL defined in .env.local.",
|
|
"Mobile-facing routes are mirrored here for frontend contract visibility, but normal user routes require a normal user access token when called from Flutter."
|
|
],
|
|
"modules": {
|
|
"auth": [
|
|
"POST /auth/superadmin/login",
|
|
"POST /auth/superadmin/refresh",
|
|
"POST /auth/superadmin/logout",
|
|
"GET /auth/superadmin/sessions",
|
|
"POST /auth/superadmin/sessions/:sessionId/revoke"
|
|
],
|
|
"users": [
|
|
"PATCH /users/me/profile-setup",
|
|
"PATCH /users/me/music-setup",
|
|
"PATCH /users/me",
|
|
"GET /users",
|
|
"GET /users/discover",
|
|
"GET /users/:userId",
|
|
"GET /users/:userId/presence",
|
|
"GET /users/:userId/profile-overview",
|
|
"GET /users/:userId/posts",
|
|
"POST /users/:userId/follow",
|
|
"DELETE /users/:userId/follow",
|
|
"GET /users/:userId/follow-status",
|
|
"GET /users/:userId/followers",
|
|
"GET /users/:userId/following",
|
|
"GET /users/me/followers",
|
|
"GET /users/me/following",
|
|
"GET /users/admin",
|
|
"GET /users/admin/admins",
|
|
"GET /users/admin/:userId",
|
|
"PATCH /users/admin/:userId",
|
|
"PATCH /users/admin/:userId/disable",
|
|
"PATCH /users/admin/:userId/enable",
|
|
"PATCH /users/admin/:userId/role",
|
|
"DELETE /users/admin/:userId",
|
|
"PATCH /users/admin/admins/:userId",
|
|
"DELETE /users/admin/admins/:userId",
|
|
"POST /users/admin/create-admin",
|
|
"GET /users/admin/discover",
|
|
"GET /users/admin/:userId/profile-overview",
|
|
"PATCH /superadmin/users/:userId/status"
|
|
],
|
|
"posts": [
|
|
"POST /posts",
|
|
"POST /posts/reels",
|
|
"GET /posts/reels",
|
|
"GET /posts/:postId",
|
|
"GET /posts/user/:userId",
|
|
"PATCH /posts/:postId",
|
|
"POST /posts/:postId/repost",
|
|
"PATCH /posts/:postId/comment-settings",
|
|
"PATCH /posts/:postId/pin-profile",
|
|
"PATCH /posts/:postId/unpin-profile",
|
|
"PATCH /posts/:postId/archive",
|
|
"PATCH /posts/:postId/restore-archive",
|
|
"DELETE /posts/:postId",
|
|
"POST /posts/:postId/view",
|
|
"POST /posts/:postId/play",
|
|
"POST /posts/:postId/share",
|
|
"POST /posts/:postId/collaboration-requests",
|
|
"GET /posts/admin/moderation",
|
|
"DELETE /posts/admin/:postId",
|
|
"PATCH /superadmin/posts/:postId/status"
|
|
],
|
|
"comments": [
|
|
"GET /comments/admin",
|
|
"DELETE /comments/admin/:commentId",
|
|
"PATCH /superadmin/comments/:commentId/status"
|
|
],
|
|
"notifications": [
|
|
"GET /notifications",
|
|
"GET /notifications/unread-count",
|
|
"PATCH /notifications/:notificationId/read",
|
|
"PATCH /notifications/read-all",
|
|
"GET /notifications/superadmin"
|
|
],
|
|
"follows": [
|
|
"POST /follows/toggle",
|
|
"GET /follows/followers/:userId",
|
|
"GET /follows/following/:userId",
|
|
"GET /follows/status/:targetUserId",
|
|
"GET /follows/suggestions",
|
|
"GET /follows/requests",
|
|
"PATCH /follows/requests/:requestId/approve",
|
|
"PATCH /follows/requests/:requestId/reject"
|
|
],
|
|
"devices": [
|
|
"POST /devices/register",
|
|
"POST /devices/unregister"
|
|
],
|
|
"collaborationRequests": [
|
|
"POST /posts/:postId/collaboration-requests",
|
|
"GET /collaboration-requests",
|
|
"PATCH /collaboration-requests/:requestId/approve",
|
|
"PATCH /collaboration-requests/:requestId/reject"
|
|
],
|
|
"marketplace": [
|
|
"GET /marketplace/home",
|
|
"GET /marketplace/listings",
|
|
"GET /marketplace/repair-shops",
|
|
"GET /marketplace/superadmin/listings",
|
|
"PATCH /marketplace/superadmin/listings/:listingId/status",
|
|
"DELETE /marketplace/superadmin/listings/:listingId",
|
|
"GET /marketplace/superadmin/repair-shops",
|
|
"PATCH /marketplace/superadmin/repair-shops/:repairShopId/status",
|
|
"DELETE /marketplace/superadmin/repair-shops/:repairShopId"
|
|
],
|
|
"audit": [
|
|
"GET /audit/superadmin/logs"
|
|
],
|
|
"superadmin": [
|
|
"GET /superadmin/overview",
|
|
"GET /superadmin/charts",
|
|
"GET /superadmin/recent-activity",
|
|
"GET /superadmin/reports",
|
|
"GET /superadmin/settings",
|
|
"PATCH /superadmin/settings"
|
|
]
|
|
},
|
|
"dashboardPages": [
|
|
"/dashboard",
|
|
"/users",
|
|
"/analytics",
|
|
"/content",
|
|
"/marketplace",
|
|
"/notifications",
|
|
"/messages",
|
|
"/security",
|
|
"/settings",
|
|
"/orders"
|
|
]
|
|
}
|