Hello,
I already finished it, I only need your hard-coded values.
I used Java 11 with Spring Boot.
As proof I already did it, I have attached below the responses (in the 1500 characters limit):
➜ ~ curl localhost:8080/logger_status
48:2C:6A:1E:59:3D%
➜ ~ curl localhost:8080/current_state | jq .
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 91 0 91 0 0 1444 0 --:--:-- --:--:-- --:--:-- 1444
{
"measurement1": "measurement1",
"measurement2": "measurement2",
"measurement3": "measurement3"
}
➜ ~ curl -vvv POST -H "Content-type: application/json" localhost:8080/new_shifts -d '{"any":"json","or":"another"}'
* Could not resolve host: POST
* Closing connection 0
curl: (6) Could not resolve host: POST
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8080 (#1)
> POST /new_shifts HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.64.1
> Accept: */*
> Content-type: application/json
> Content-Length: 29
>
* upload completely sent off: 29 out of 29 bytes
< HTTP/1.1 200
< Content-Length: 0
< Date: Sun, 07 Jun 2020 15:42:02 GMT
<
* Connection #1 to host localhost left intact
➜ ~ curl -vvv POST -H "Content-type: application/json" localhost:8080/new_timing -d '{"any":"json","or":"another"}'
also return 200