I've got the following resource attached to my router:
Router router = new Router(getContext());
router.attach("/conditions", ConditionsResource.class);
router.attach("/facts", FactsResource.class);
router.attach("/risks", RisksResource.class);
router.attach("/riskEval", RiskEvaluationResource.class);
router.attach("/lastRiskEval/{personid}",
LastRiskEvaluationResource.class);
However, when I try to go to the LastRiskEvaluationResource without giving it a
person id, I get a 404.
I'm just running the http server locally, and so the url I'm using is:
http://localhost:8182/lastRiskEval/
However, I get a 404. I traced it down to where the Decoder.handle() tries to
getNext() and doesn't find the 'next' because when getting routes, it uses the
BEST method, but never matches my URI. I'm using 1.0.9, does anyone have a
clue on what I should try?
I've had this work before on another Application where I had
"/results/{personid}" and it'd work.
----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from
Cerner Corporation and are intended only for the addressee. The information
contained in this message is confidential and may constitute inside or
non-public information under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of such
information is strictly prohibited and may be unlawful. If you are not the
addressee, please promptly delete this message and notify the sender of the
delivery error by e-mail or you may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.