REST API do zarządzania kodami SWIFT/BIC banków. Aplikacja umożliwia importowanie, przechowywanie i zarządzanie kodami SWIFT, wraz z informacjami o centralach i oddziałach banków. Dodatkowo dostępny jest plik index.html, który pozwala na sprawdzenie działania API poprzez interfejs użytkownika.
- Java 17
- Spring Boot 3.2.2
- PostgreSQL
- Docker & Docker Compose
- Maven
- Lombok
- Swagger/OpenAPI
- Import kodów SWIFT z pliku Excel
- Automatyczne wykrywanie central (kody kończące się na XXX) i oddziałów
- REST API do zarządzania kodami
- Interfejs użytkownika do importu i przeglądania danych
- Dokumentacja API (Swagger)
- Strona
index.htmldo testowania działania API
- Java 17 lub nowsza
- Docker Desktop
- Maven (opcjonalnie - projekt zawiera Maven Wrapper)
- Sklonuj repozytorium:
git clone https://github.com/T00RRE/SWIFT_API.git
cd SWIFT_API- Uruchom aplikację używając Docker Compose:
docker-compose up --buildAplikacja będzie dostępna pod adresem:
- API: http://localhost:8080
- Swagger UI: http://localhost:8080/swagger-ui.html
- Interfejs użytkownika: http://localhost:8080/index.html
- Pobierz szczegóły kodu SWIFT
GET /v1/swift-codes/{swift-code} - Pobierz kody SWIFT dla kraju
GET /v1/swift-codes/country/{countryISO2code} - Dodaj nowy kod SWIFT
POST /v1/swift-codes - Importuj kody z pliku Excel
POST /v1/swift-codes/import - Usuń kod SWIFT
DELETE /v1/swift-codes/{swift-code}
Uruchomienie testów:
./mvnw testProjekt zawiera:
- Testy jednostkowe
- Testy integracyjne
- Testy kontrolerów
swift-api/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/example/swift_api/
│ │ │ ├── controller/
│ │ │ ├── model/
│ │ │ ├── repository/
│ │ │ ├── service/
│ │ │ └── exception/
│ │ └── resources/
│ └── test/
├── Dockerfile
├── docker-compose.yml
└── pom.xml
A REST API for managing SWIFT/BIC bank codes. The application allows importing, storing, and managing SWIFT codes, along with information about central banks and branches. Additionally, an index.html file is available for testing the API functionality through a user interface.
- Java 17
- Spring Boot 3.2.2
- PostgreSQL
- Docker & Docker Compose
- Maven
- Lombok
- Swagger/OpenAPI
- Import SWIFT codes from an Excel file
- Automatic detection of central banks (codes ending in XXX) and branches
- REST API for managing codes
- User interface for importing and viewing data
- API documentation (Swagger)
index.htmlpage for testing API functionality
- Java 17 or later
- Docker Desktop
- Maven (optional - project includes Maven Wrapper)
- Clone the repository:
git clone https://github.com/T00RRE/SWIFT_API.git
cd SWIFT_API- Start the application using Docker Compose:
docker-compose up --buildThe application will be available at:
- API: http://localhost:8080
- Swagger UI: http://localhost:8080/swagger-ui.html
- User Interface: http://localhost:8080/index.html
- Get SWIFT code details
GET /v1/swift-codes/{swift-code} - Get SWIFT codes for a country
GET /v1/swift-codes/country/{countryISO2code} - Add a new SWIFT code
POST /v1/swift-codes - Import SWIFT codes from an Excel file
POST /v1/swift-codes/import - Delete a SWIFT code
DELETE /v1/swift-codes/{swift-code}
Run tests:
./mvnw testThe project includes:
- Unit tests
- Integration tests
- Controller tests
swift-api/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/example/swift_api/
│ │ │ ├── controller/
│ │ │ ├── model/
│ │ │ ├── repository/
│ │ │ ├── service/
│ │ │ └── exception/
│ │ └── resources/
│ └── test/
├── Dockerfile
├── docker-compose.yml
└── pom.xml