Skip to content

User Log Management API

M♢NTΛSIM edited this page Aug 17, 2024 · 1 revision

User Log Management API Documentation

Fetch Account Log

  • GET /account
    • Summary: Retrieves the activity log of the user associated with account-related changes.
    • Security: Bearer Authentication
    • Responses:
      • 200 OK:
        • Description: Account activities retrieved successfully.
        • Content:
          • Content-Type: application/json
          • Schema:
            {
              "type": "object",
              "properties": {
                "activities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "category": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "date": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  }
                }
              }
            }
      • 401 Unauthorized: Unauthorized. Please log in first.
      • 500 Internal Server Error: Internal server error.
    • Tags:
      • User Log Management

Handles Unsupported Methods for Account Log Route

  • All Other Methods on /account
    • Summary: Handles unsupported methods for the account log route.
    • Responses:
      • 405 Method Not Allowed: Method not supported.
    • Tags:
      • User Log Management

Fetch Security Log

  • GET /security
    • Summary: Retrieves the security log of the user, including all security-related activities.
    • Security: Bearer Authentication
    • Responses:
      • 200 OK:
        • Description: Security activities retrieved successfully.
        • Content:
          • Content-Type: application/json
          • Schema:
            {
              "type": "object",
              "properties": {
                "activities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "category": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "date": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  }
                }
              }
            }
      • 401 Unauthorized: Unauthorized. Please log in first.
      • 500 Internal Server Error: Internal server error.
    • Tags:
      • User Log Management

Handles Unsupported Methods for Security Log Route

  • All Other Methods on /security
    • Summary: Handles unsupported methods for the security log route.
    • Responses:
      • 405 Method Not Allowed: Method not supported.
    • Tags:
      • User Log Management