Expense-Tracker
  1. Transaction
Expense-Tracker
  • User
    • user by id
      GET
    • user by email
      GET
    • Login
      POST
    • Register
      POST
  • Transaction Category
    • TC by user-id
      GET
    • Transaction Category
      POST
    • Update Transaction Category
      PUT
    • Delete Transcation Category
      DELETE
  • Transaction
    • post Transaction
      POST
    • getTransactionsListByUser
      GET
    • GetRecentTransactionsByUserID
      GET
    • DeleteTransactionById
      DELETE
    • update Transaction
      PUT
    • Get AllTransactions By UserID & Year Desc
      GET
  1. Transaction

GetRecentTransactionsByUserID

Developing
GET
http://localhost:8080/api/v1/transaction/recent/user/1

Request

Query Params

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8080/api/v1/transaction/recent/user/1?page=0&size=5'
Response Response Example
{
    "success": true,
    "message": "string",
    "data": {
        "content": [
            {
                "id": 0,
                "name": "string",
                "amount": 0,
                "type": "string",
                "date": "string",
                "userId": 0,
                "category": {
                    "id": 0,
                    "name": "string",
                    "color": "string"
                },
                "createdAt": "string"
            }
        ],
        "currentPage": 0,
        "totalPages": 0,
        "totalElements": 0,
        "last": true
    }
}
Modified at 2025-11-02 00:54:55
Previous
getTransactionsListByUser
Next
DeleteTransactionById
Built with