Newer
Older

Riccardo Boero
committed
In powerShell first:
Remove-item alias:curl
Then
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET --data '{\"uuid\":\"72db31fa-ca93-482f-aad6-70d77ff55ed0\",\"criteria_weights\": [{\"criterion\":\"Health Improvement\",\"weight\":0.3},{\"criterion\":\"Good Taste\",\"weight\":0.3},{\"criterion\":\"Stamina Boost\",\"weight\":0.2},{\"criterion\":\"Body Damage\",\"weight\":0.2}],\"options\": [{\"label\":\"Hallucinating Mushroom\",\"scores\": [{\"criterion\":\"Health Improvement\",\"score\":0},{\"criterion\":\"Good Taste\",\"score\":0.1},{\"criterion\":\"Stamina Boost\",\"score\":2},{\"criterion\":\"Body Damage\",\"score\":-0.5}]},{\"label\":\"Aspirin Tablet\",\"scores\": [{\"criterion\":\"Health Improvement\",\"score\":0.5},{\"criterion\":\"Good Taste\",\"score\":0},{\"criterion\":\"Stamina Boost\",\"score\":0.1},{\"criterion\":\"Body Damage\",\"score\":0}]},{\"label\":\"Pizza Margherita\",\"scores\": [{\"criterion\":\"Health Improvement\",\"score\":0},{\"criterion\":\"Good Taste\",\"score\":10},{\"criterion\":\"Stamina Boost\",\"score\":0.3},{\"criterion\":\"Body Damage\",\"score\":-0}]},{\"label\":\"Espresso Shot\",\"scores\": [{\"criterion\":\"Health Improvement\",\"score\":0.2},{\"criterion\":\"Good Taste\",\"score\":4},{\"criterion\":\"Stamina Boost\",\"score\":1.2},{\"criterion\":\"Body Damage\",\"score\":-0}]}]}' "http://localhost:8080/ranking"
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.7.4/maven-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.7.4/maven-plugin/reference/html/#build-image)
* [Spring Web](https://docs.spring.io/spring-boot/docs/2.7.4/reference/htmlsingle/#web)
### Guides
The following guides illustrate how to use some features concretely:
* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/)
* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/)
* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/)