Simple Api to add and view credit-card information and used Luhn algorithm to validate the card number.
http://localhost:8088/api/v1/credit-card/
http://localhost:8088/swagger-ui/index.html
Api required basic authentication.
1.POST /api/v1/credit-card -save card informations
2.GET /api/v1/credit-card -get all card informations
application/json
CardInfo{ name* string cardNumber string creditlimit number($double) balance number($double) createdDateTime string($date-time) updatedDateTime string($date-time) createdBy string updatedBy string }
To build Docker image
mvn spring-boot:build-image