Skip to content

Bank Funds

José Antonio Córdoba Gómez edited this page Jan 8, 2021 · 3 revisions

Microservice Funds

POST /funds

Postman Request-Response

0

Curl Request

curl --location --request POST 'http://localhost:3033/funds' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id" : 10,
    "amount": 544.4,
    "dateStart": "toady",
    "dateEnd": "tomorrow",
    "status": true
}'
Server Side

Console log

cloudbanking-funds      |
cloudbanking-funds      | {
cloudbanking-funds      |     "timestamp": "2021-01-08 18:26:05",
cloudbanking-funds      |     "sequence": 173,
cloudbanking-funds      |     "loggerClassName": "org.jboss.logging.Logger",
cloudbanking-funds      |     "loggerName": "com.pepe.rest.resteasyjackson.FundResource",
cloudbanking-funds      |     "level": "INFO",
cloudbanking-funds      |     "message": "POST -> Fund was created",
cloudbanking-funds      |     "threadName": "executor-thread-1",
cloudbanking-funds      |     "threadId": 13,
cloudbanking-funds      |     "mdc": {
cloudbanking-funds      |     },
cloudbanking-funds      |     "ndc": "",
cloudbanking-funds      |     "hostName": "f6c2ee3c1f55",
cloudbanking-funds      |     "processName": "app.jar",
cloudbanking-funds      |     "processId": 1
cloudbanking-funds      | }

GET /funds/{id}

Postman Request-Response

1

Curl Request

curl --location --request GET 'http://localhost:3033/funds'
Server Side

Console log

cloudbanking-funds      |
cloudbanking-funds      | {
cloudbanking-funds      |     "timestamp": "2021-01-08 18:33:42",
cloudbanking-funds      |     "sequence": 174,
cloudbanking-funds      |     "loggerClassName": "org.jboss.logging.Logger",
cloudbanking-funds      |     "loggerName": "com.pepe.rest.resteasyjackson.FundResource",
cloudbanking-funds      |     "level": "INFO",
cloudbanking-funds      |     "message": "GET -> returning funds",
cloudbanking-funds      |     "threadName": "executor-thread-1",
cloudbanking-funds      |     "threadId": 13,
cloudbanking-funds      |     "mdc": {
cloudbanking-funds      |     },
cloudbanking-funds      |     "ndc": "",
cloudbanking-funds      |     "hostName": "f6c2ee3c1f55",
cloudbanking-funds      |     "processName": "app.jar",
cloudbanking-funds      |     "processId": 1
cloudbanking-funds      | }

REMOVE /funds/{id}

Postman Request-Response

2

Curl Request

curl --location --request DELETE 'http://localhost:3033/funds/10'
Server Side

Console log

cloudbanking-funds      |
cloudbanking-funds      | {
cloudbanking-funds      |     "timestamp": "2021-01-08 18:34:55",
cloudbanking-funds      |     "sequence": 175,
cloudbanking-funds      |     "loggerClassName": "org.jboss.logging.Logger",
cloudbanking-funds      |     "loggerName": "com.pepe.rest.resteasyjackson.FundResource",
cloudbanking-funds      |     "level": "INFO",
cloudbanking-funds      |     "message": "DELETE -> Fund was deleted",
cloudbanking-funds      |     "threadName": "executor-thread-1",
cloudbanking-funds      |     "threadId": 13,
cloudbanking-funds      |     "mdc": {
cloudbanking-funds      |     },
cloudbanking-funds      |     "ndc": "",
cloudbanking-funds      |     "hostName": "f6c2ee3c1f55",
cloudbanking-funds      |     "processName": "app.jar",
cloudbanking-funds      |     "processId": 1
cloudbanking-funds      | }
Clone this wiki locally