Closed GuillermoDivan closed 1 month ago
Endpoint 1: BUSCAR CONTRIBUCIÓN POR ID URL: http://localhost:8080/api/contribuciones/{id}} action: GET jwt: Si Expected response:
{
"id": "e8f54a01-d6db-468b-a6df-6f724a1cedb6",
"lenderFullname": "USER2, user2",
"borrowerFullname":"USER1, user1",
"microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9b",
"amount": 200000.00,
"createdDate": "2024-09-18",
"transactionStatus": "PENDENT"
}
Notas: En {id} reemplazar por el microcreditId (id del microcrédito)
Endpoint 2: LISTAR TODAS LAS CONTRIBUCIONES URL: http://localhost:8080/api/contribuciones action: GET jwt: Si Expected response:
[
{
"id": "e8f54a01-d6db-468b-a6df-6f724a1cedb6",
"lenderFullname": "USER2, user2",
"borrowerFullname":"USER1, user1",
"microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9b",
"amount": 200000.00,
"createdDate": "2024-09-18",
"transactionStatus": "PENDENT"
},
{
"id": "e8f54a01-d6db-468b-a6df-6f724a1cedb5",
"lenderFullname": "USER2, user2",
"borrowerFullname":"USER1, user1",
"microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9z",
"amount": 200000.00,
"createdDate": "2024-09-18",
"transactionStatus": "ACCEPTED"
},
]
Endpoint 2: BUSCAR CONTRIBUCIONES POR ESTADO URL: http://localhost:8080/api/contribuciones/historial-estados/{status}} action: GET jwt: Si Expected response::
[
{
"id": "e8f54a01-d6db-468b-a6df-6f724a1cedb6",
"lenderFullname": "USER2, user2",
"borrowerFullname":"USER1, user1",
"microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9b",
"amount": 200000.00,
"createdDate": "2024-09-18",
"transactionStatus": "PENDENT"
},
{
"id": "e8f54a01-d6db-468b-a6df-6f724a1cedb5",
"lenderFullname": "USER1, user1USER2, user2",
"borrowerFullname":"USER2, user2",
"microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9z",
"amount": 200000.00,
"createdDate": "2024-09-18",
"transactionStatus": "PENDENT"
},
]
Notas: En {status} reemplazar por el estado de la transacción
Estados de la transacción:
Endpoint 1: BUSCAR CONTRIBUCIÓN POR ID URL: http://localhost:8080/api/contribuciones/{id}} action: GET jwt: Si Expected response:
Notas: En {id} reemplazar por el microcreditId (id del microcrédito)
Endpoint 2: LISTAR TODAS LAS CONTRIBUCIONES URL: http://localhost:8080/api/contribuciones action: GET jwt: Si Expected response:
Endpoint 2: BUSCAR CONTRIBUCIONES POR ESTADO URL: http://localhost:8080/api/contribuciones/historial-estados/{status}} action: GET jwt: Si Expected response::
Notas: En {status} reemplazar por el estado de la transacción
Estados de la transacción:
Notas de cambio: