User

User

This section covers the user management methods available in the EconoMe API.

Endpoints

Base URL: https://econome-api-i2dyjb7xmq-et.a.run.app/api/v1

Get Profile

GET /user/profile

Headers

Authorization: Bearer <token>

Response

{
  "error": false,
  "message": "Profile fetched successfully",
  "data": {
    "id": "integer",
    "uuid": "string",
    "name": "string",
    "username": "string",
    "gender": "string",
    "major": "string",
    "age": "integer",
    "created_at": "Timestamp",
    "updated_at": "Timestamp"
  }
}

Update Profile

PUT /user/profile

Headers

Authorization: Bearer <token>

Request

{
  "name": "string",
  "username": "string",
  "gender": "string",
  "major": "string",
  "age": "integer"
}

Response

{
  "error": false,
  "message": "Profile updated successfully"
}