DataProvider is a small Service caching and serving data into Key/Value format
mvn package
docker-compose up --build
curl -X POST localhost:8383/v1/key/data/value/provider
curl -i -H "Accept: application/json" -X GET localhost:8383/v1/key/data
We don't accept saving data being empty or having length exceeding 64 cheracters (403 HTTP status is returned)
Only port 8383 shall be exposed (NAT) to public IP (to hide mongo port)
- Stored Values are String, Ideally it shall be json
- Avoid passing Value in arguments.
- Use Put HTTP call to build progressively data.
- add custom repository class to add more functionalities to the native Mongo Repository or change default behavior
- extract logic/functional code (implemented in this version inside controller) to a Service implementation class.