This application is designed for managing and retrieving SWIFT codes. It provides REST API endpoints to:
- Retrieve SWIFT code details
- Get SWIFT codes by country
- Add new SWIFT codes
- Delete SWIFT codes
The application can be run locally or using Docker.
- Clone the repository:
git clone https://github.com/szymekpanek/SWIFT-code-exercise.git cd SWIFT-code-exercise - Build the project:
mvn clean package
- Run the application:
mvn spring-boot:run
- Access the API at:
GET http://localhost:8080/v1/swift-codes/{swiftCode}POST http://localhost:8080/v1/swift-codes/
- Pull the Docker image:
docker pull szymekpanek/swift-code-app
- Run the application:
docker run -p 8080:8080 szymekpanek/swift-code-app
- Access the API at:
GET http://localhost:8080/v1/swift-codes/{swiftCode}POST http://localhost:8080/v1/swift-codes/
- Open Docker Desktop and go to the Images section.
- Pull the image manually:
docker pull szymekpanek/swift-code-app
- Click Run in Docker Desktop and map port
8080. - Open a browser and go to:
http://localhost:8080/v1/swift-codes/{swiftCode}