The Card Verification Microservice is a Spring Boot application that provides card details verification and statistics retrieval. It interacts with a 3rd party API (binlist.net) to fetch information about card numbers.
- Card Verification:
- Endpoint: `GET [/api/v1/card-scheme/verify/{bin}]
- Response:
{ "status": "Success", "code": "MwI00", "message": "Request completed successfully", "data": { "success": true, "payload": { "scheme": "visa", "type": "debit", "bank": "Jyske Bank" } }
} ```
- Card Statistics:
- Endpoint:
GET /api/v1/card-scheme/stats?start={start}&limit={limit}
- Response:
{ "status": "Success", "code": "MwI00", "message": "Request completed successfully", "data": { "success": true, "start": 1, "limit": 10, "size": null, "payload": [ { "45717360": "2" } ] }
- Endpoint:
} ```
- User Authentication:
- Signup and login features for customer authentication.
- Spring Boot
- Spring Web
- Spring Data JPA
- WebClient
- Spring Security with Jwt
- H2 Database (for simplicity, can be replaced with other databases in production)
- JUnit 5 for testing
- Configure application properties in
src/main/resources/application.yml
.
- The application uses an H2 in-memory database for development. Configure a production database in a production profile.
- The endpoints are protected. Users need to sign up and log in before accessing the services.
- Unit tests are available in the
src/test
directory.
- This project is licensed under the MIT License - see the LICENSE.md file for details.
- Thanks to binlist.net for providing the card information API.