-
Solution: Full source: Question 1
-
Response:
[ { "discount": 0.27, "id": "camera-1", "name": "Camera IP 360 Độ 3MP IMOU TA32CP-L", "originalPrice": 650000, "price": 474500, "rating": 4.9, "sold": 142900, "thumbnail": "https://image-camera-1.png" }, { "discount": 0.2, "id": "camera-2", "name": "Camera IP 360 Độ 2MP TP-Link Tapo C200C", "originalPrice": 490000, "price": 392000, "rating": 5, "sold": 264000, "thumbnail": "https://image-camera-2.png" } ]
-
Solution: Full source: Question 2
-
Response:
{ "discount": 0.2, "id": "phone-1", "images": [ "https://phone-1-image-1.jpg", "https://phone-1-image-2.jpg", "https://phone-1-image-3.jpg" ], "name": "Điện thoại TECNO Pova 6 - RAM 8+8GB - 256GB", "originalPrice": 5430000, "price": 4344000, "rating": 4.9, "thumbnail": "https://phone-1.jpg", "versions": [ { "id": "phone-1-v-1", "name": "Gray", "originalPrice": 5250000, "thumbnail": "https://phone-1-version-1.jpg" } ] }
./
│ .gitattributes
│ .gitignore
│ mvnw
│ mvnw.cmd
│ pom.xml
│ README.md
│
├───.mvn
│ └───wrapper
│ maven-wrapper.properties
│
├───assets
│
└───src
└───main
├───java
│ └───com
│ └───cybersoft
│ └───json
│ │ SubmitBcJava11JsonApplication.java
│ │
│ ├───q1
│ │ ├───controller
│ │ ├───dto
│ │ ├───model
│ │ ├───repository
│ │ └───service
│ │
│ └───q2
│ ├───controller
│ ├───dto
│ ├───model
│ ├───repository
│ └───service
│
└───resources
└───application.properties- IDE: IntelliJ
- Java 21
Khang Nguyen

