未调用自定义操作

时间:2019-04-13 16:53:52

标签: hapi hapi-fhir

我已经在我的HAPI FHIR资源中创建了一个自定义操作,但似乎没有被调用。

@RestController
public class AppointmentResourceProvider implements IResourceProvider {

    @Override
    public Class<Appointment> getResourceType() {
    return Appointment.class;
    }

   @Operation(name = "$myCustomOperation", idempotent = false)
    public Parameters myOperation(HttpServletRequest request, @IdParam IdType appointmentId){
...
}

}

通过邮递员调用:GET:http://localhost:8080/Appointment/ $ myCustomOperation / 123

结果

{
    "timestamp": "2019-04-13T16:50:27.275+0000",
    "status": 404,
    "error": "Not Found",
    "message": "Not Found",
    "path": "/Appointment/$myCustomOperation/123"
}

我是否缺少某些注册或应该进行自定义操作的注册?

0 个答案:

没有答案