Skip to content
Snippets Groups Projects
Commit 4f03fff5 authored by Ivan Ivanov's avatar Ivan Ivanov
Browse files

Included testing instructions for the rest service

parent 3933a95b
No related branches found
No related tags found
1 merge request!7Included testing instructions for the rest service
......@@ -14,6 +14,11 @@ $ make test
```
docker-compose up -d
```
## Testing the REST API
Testing the Rest API happens by using the endpoint which should be localhost:8080
```
curl -X POST -H 'Content-Type: application/json' -d @example.json localhost:8080
```
## Discussion
Designing the solution is made based on the assumption that the load will be a JSON file containing an array of all the entries needed to perform the calculations. The code can run in 2 modes:
- TEST: this mode allows you to test the utility using a sample JSON file from the local file system
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment