Implementation of a REST API service using Java Spring Boot and MongoDB. Unit tests have been implemented with Mockito and JUnit5 with TestRestTemplate, whereas Testcontainers have been used for the integration tests.
GET /crypto
POST /crypto
PUT /crypto/{name}
DELETE /crypto/{name}
GET /crypto/{name}
The DTO modeled is a basic representation of cryptocurrencies. It can be applied to any crypto coin and has the following attributes available:
- name (coin's abbreviation)
- price (coin's price in US dollars, $USD)
- type (payment, altcoin, NFT, DeFi)
- description (coin's funcionality description)
- launchDate (coin's launch date)
- lastTransactionDate (coin's last transaction date)
- image (coin's logo)