{
  "dashboard": {
    "name": "Oudelaa SuperAdmin Dashboard",
    "version": "1.2.0",
    "baseUrl": "{{baseUrl}}",
    "auth": {
      "type": "Bearer",
      "login": {
        "method": "POST",
        "url": "/auth/superadmin/login",
        "body": {
          "email": "admin@oudelaa.com",
          "password": "SuperAdminStrongPass123!"
        },
        "responseTokens": {
          "accessToken": "superAdminAccessToken",
          "refreshToken": "superAdminRefreshToken"
        }
      },
      "refresh": {
        "method": "POST",
        "url": "/auth/superadmin/refresh",
        "body": {
          "refreshToken": "{{superAdminRefreshToken}}"
        }
      },
      "logout": {
        "method": "POST",
        "url": "/auth/superadmin/logout",
        "body": {
          "refreshToken": "{{superAdminRefreshToken}}"
        }
      }
    },
    "modules": [
      {
        "key": "usersModeration",
        "title": "Users Moderation",
        "endpoints": [
          {
            "name": "Admin Get Users",
            "method": "GET",
            "url": "/users/admin?page=1&limit=10",
            "headers": {
              "Authorization": "Bearer {{superAdminAccessToken}}"
            }
          },
          {
            "name": "Admin Get User By Id",
            "method": "GET",
            "url": "/users/admin/:userId",
            "headers": {
              "Authorization": "Bearer {{superAdminAccessToken}}"
            }
          },
          {
            "name": "Admin Update User",
            "method": "PATCH",
            "url": "/users/admin/:userId",
            "headers": {
              "Authorization": "Bearer {{superAdminAccessToken}}",
              "Content-Type": "application/json"
            },
            "body": {
              "stageName": "Updated by SuperAdmin",
              "bio": "Profile updated by admin"
            }
          },
          {
            "name": "Disable User",
            "method": "PATCH",
            "url": "/users/admin/:userId/disable",
            "headers": {
              "Authorization": "Bearer {{superAdminAccessToken}}",
              "Content-Type": "application/json"
            },
            "body": {
              "reason": "Violation of community guidelines"
            }
          },
          {
            "name": "Enable User",
            "method": "PATCH",
            "url": "/users/admin/:userId/enable",
            "headers": {
              "Authorization": "Bearer {{superAdminAccessToken}}"
            }
          },
          {
            "name": "Delete User",
            "method": "DELETE",
            "url": "/users/admin/:userId",
            "headers": {
              "Authorization": "Bearer {{superAdminAccessToken}}"
            }
          }
        ]
      },
      {
        "key": "commentsModeration",
        "title": "Comments Moderation",
        "endpoints": [
          {
            "name": "Admin Delete Comment",
            "method": "DELETE",
            "url": "/comments/admin/:commentId",
            "headers": {
              "Authorization": "Bearer {{superAdminAccessToken}}"
            }
          }
        ]
      },
      {
        "key": "securitySessions",
        "title": "Security & Sessions",
        "endpoints": [
          {
            "name": "My Sessions",
            "method": "GET",
            "url": "/auth/sessions",
            "headers": {
              "Authorization": "Bearer {{accessToken}}"
            }
          },
          {
            "name": "Revoke Session",
            "method": "POST",
            "url": "/auth/sessions/:jti/revoke",
            "headers": {
              "Authorization": "Bearer {{accessToken}}"
            }
          }
        ]
      },
      {
        "key": "feedAlgorithms",
        "title": "Feed Algorithms",
        "endpoints": [
          {
            "name": "My Feed",
            "method": "GET",
            "url": "/feed/me?page=1&limit=20&radiusKm=30",
            "headers": {
              "Authorization": "Bearer {{accessToken}}"
            }
          },
          {
            "name": "My Feed Preferred",
            "method": "GET",
            "url": "/feed/me?page=1&limit=20&preferredPostType=video&followingOnly=false&radiusKm=50",
            "headers": {
              "Authorization": "Bearer {{accessToken}}"
            }
          },
          {
            "name": "Trending Feed",
            "method": "GET",
            "url": "/feed/trending?page=1&limit=20",
            "headers": {
              "Authorization": "Bearer {{accessToken}}"
            }
          }
        ]
      }
    ],
    "state": {
      "tokens": [
        "superAdminAccessToken",
        "superAdminRefreshToken",
        "sessionJti",
        "targetUserId",
        "conversationId",
        "messageId",
        "accessToken"
      ],
      "selectedUser": "userId",
      "selectedComment": "commentId"
    },
    "ui": {
      "pages": [
        "SuperAdmin Login",
        "Users List",
        "User Profile",
        "Update User",
        "Disable User Modal",
        "Delete User Confirmation",
        "Comments Moderation",
        "Feed Ranking",
        "Security Sessions"
      ],
      "tables": [
        {
          "id": "users",
          "columns": [
            "_id",
            "name",
            "stageName",
            "username",
            "email",
            "role",
            "isDisabled",
            "disabledReason",
            "createdAt"
          ]
        }
      ]
    }
  }
}
