igrowker / i003-nativo-back

2 stars 0 forks source link

Endpoints historiales contribuciones 2.0 #79

Closed GuillermoDivan closed 1 month ago

GuillermoDivan commented 1 month ago

Endpoint 1: BUSCAR CONTRIBUCIÓN POR ID URL: http://localhost:8080/api/contribuciones/{id}} action: GET jwt: Si Expected response:

{
        "id": "eff8eb14-5b92-4e31-92fe-cd70fd73877e",
        "lenderAccountId": "9f7a39db-4272-45c1-bdfb-d0949c3a730e",
        "lenderFullname": "MOMOA, Jason",
        "borrowerFullname": "PASCAL, Pedro",
        "microcreditId": "f3bc6d12-c2c7-4a0e-be93-18b9f5673eee",
        "amount": 10.00,
        "createdDate": "2024-09-25",
        "expiredDateMicrocredit": "2024-09-26",
        "transactionStatus": "ACCEPTED"
    }

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",
        "lenderAccountId": "9f7a39db-4272-45c1-bdfb-d0949c3a730e",
        "lenderFullname": "USER2, user2",
        "borrowerFullname":"USER1, user1",
        "microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9b",
        "amount": 200000.00,
        "createdDate": "2024-09-18",
        "expiredDateMicrocredit": "2024-09-26",
        "transactionStatus": "ACCEPTED"
    },
 {
        "id": "e8f54a01-d6db-468b-a6df-6f724a1cedb5",
        "lenderAccountId": "9f7a39db-4272-45c1-bdfb-d0949c3a738e",
        "lenderFullname": "USER2, user2",
        "borrowerFullname":"USER1, user1",
        "microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9z",
        "amount": 200000.00,
        "createdDate": "2024-09-18",
        "expiredDateMicrocredit": "2024-09-30",
        "transactionStatus": "COMPLETED"
    },
]

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",
        "lenderAccountId": "9f7a39db-4272-45c1-bdfb-d0949c3a730e",
        "lenderFullname": "USER2, user2",
        "borrowerFullname":"USER1, user1",
        "microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9b",
        "amount": 200000.00,
        "createdDate": "2024-09-18",
        "expiredDateMicrocredit": "2024-09-26",
        "transactionStatus": "COMPLETED"
    },
 {
        "id": "e8f54a01-d6db-468b-a6df-6f724a1cedb5",
        "lenderAccountId": "9f7a39db-4272-45c1-bdfb-d0949c3a738e",
        "lenderFullname": "USER2, user2",
        "borrowerFullname":"USER1, user1",
        "microcreditId":"8940cb28-6c13-4c14-968d-3d4645aa6f9z",
        "amount": 200000.00,
        "createdDate": "2024-09-18",
        "expiredDateMicrocredit": "2024-09-30",
        "transactionStatus": "COMPLETED"
    },
]

Notas: En {status} reemplazar por el estado de la transacción

Estados de la transacción:

Notas de cambio:

EmiiFernandez commented 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: