Hi,
My rest api demands me to have multiple path params; for e.g.
/logs/<record_type>/<record_id>
Here I have two path params , "record_type" and "record_id".
When I hit with the url
http://localhost:4567/logs/abc/23, (here "abc" is record_type and "123" is record_id) it should invoke the particular route method but instead says , "route not configured".
If I have a single path param , then it works and get routed to proper method but multiple path param , it gets lost finding the route.
Your quick help is appreciated.
Regards,
Prashant
Here is my code;
get("/logs/:record_type/:record_id", (req, res) -> {
req.
String recordType = req.params(":record_type");
String recordId = req.params(":record_id");
AuditLogModel requestModel = new AuditLogModel();
requestModel.setRecordType(recordType);
requestModel.setRecordId(recordId);
return auditService.getAuditLog(requestModel);
}, json());