Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是一个方法的例子:
updatePatientAddressByID(字符串 ID, 字符串地址)
任何帮助
您必须设计您的 URL,以便 Id 是路径段:
router.attach("/patients/{id}", PatientResource.class);
然后在你的 Restlet 实现中,你可以得到这个变量:
@Post public void store(String address) { Long id = (Long) getRequest().getAttributes().get("id"); ... do something with address ... }