With this challenge we want to evaluate your skills and the quality of the code you write. You are expected to use SOLID principles. You can use any tools or library that you consider relevant.
- Java 17
Fork this repository, then develop an application that manages a single JSON file, kept in local storage. The JSON file represents an addition of two operands (“valueX” and “valueY”).
The application will allow the following requests:
- POST http request to upload a .json file, with the format of the
sample.json
provided (on the project root) and saves it. - PUT http request to modify the content of the stored .json file, changing the “valueX” and/or the “valueY” fields.
- GET http request to download the stored document, including a “result” field.
- DELETE http request to delete the document.
{
"valueX": 8,
"valueY": 5
}
{
"valueX": 8,
"valueY": 5,
"result": 13
}