Skip to content
Snippets Groups Projects
Commit 438ed613 authored by Ivanov, Ivan (UG - Computer Science)'s avatar Ivanov, Ivan (UG - Computer Science)
Browse files

Merge branch 'readme' into 'master'

Included testing instructions for the rest service

See merge request !7
parents e524f7fe 4f03fff5
No related branches found
No related tags found
Loading
...@@ -14,6 +14,11 @@ $ make test ...@@ -14,6 +14,11 @@ $ make test
``` ```
docker-compose up -d 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 ## 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: 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 - 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