This repository includes a ready-to-import Postman collection and a local Docker environment file.
- Collection:
postman/BasicBankingSystem-Local.postman_collection.json - Environment:
postman/BasicBankingSystem-Local-Docker.postman_environment.json
- Open Postman.
- Import the collection file.
- Import the environment file.
- Select the
BasicBankingSystem Local Dockerenvironment.
The collection contains a full Phase 1 local test flow:
- Customer health check
- Account health check
- Deposit health check
- Audit health check
- Create customer
- Activate customer
- Open account
- Submit deposit
- Get deposit by transaction id
- Get account by account number
- List audits by correlation id
For automated execution, also use:
Deposits / Wait For Deposit Completion
Environment variables:
customerBaseUrlaccountBaseUrldepositBaseUrlauditBaseUrlapiKeycurrencydepositAmount
Collection variables populated during execution:
customerIdaccountIdaccountNumbertransactionIdcorrelationIdidempotencyKeyidentityNumbermobilepollAttemptpollMaxAttempts
Run requests in this order:
Health / CustomerHealth / AccountHealth / DepositHealth / AuditCustomers / Create CustomerCustomers / Activate CustomerAccounts / Open AccountDeposits / Submit DepositDeposits / Get Deposit By IdAccounts / Get Account By NumberAudits / List Audits By Correlation
Submit Depositsends bothIdempotency-KeyandX-Correlation-Id.- External requests in the collection send
X-Api-Key. Create Customeruses a pre-request script to generate unique values for local retesting.Get Deposit By Idcan be re-run until the transaction reachesSucceeded.Wait For Deposit Completionis intended for Postman Runner and Newman.List Audits By Correlationfilters by the correlation id generated for the deposit request.
Swagger UI remains available at:
http://localhost:5101/swaggerhttp://localhost:5102/swaggerhttp://localhost:5103/swaggerhttp://localhost:5104/swagger