I\'m new to sparkjava. I want to read my request params using spark java but I\'m not able to find the correct syntax. please help me out. Below is my route method and the clien
If you have an URL like : http://localhost:4567/smartapp/getDataViewModelConfig/456 use the following code :
get("/smartapp/getDataViewModelConfig/:id","application/json", ((request, response) -> { response.type("application/json") return request.params(":id"); }), gson::toJson);