eglx.rest supports access of REST services; primarily third-party REST services rather than EGL REST-RPC services.
Record EglService type Annotation
{
targets = [ ElementKind.functionMbr],
validationProxy =
"org.eclipse.edt.compiler.binding.
annotationType.EglServiceAnnotationTypeBinding"
}
serviceName string?;
requestCharset string = "UTF-8";
//default based on encoding
requestContentType string?;
responseCharset string?;
//default based on encoding
responseContentType string?;
end
|
Record Rest type Annotation
{
targets = [ ElementKind.functionMbr],
validationProxy = "org.eclipse.edt.compiler.binding.
annotationType.RestAnnotationTypeBinding"
}
method HttpMethod?;
uriTemplate string?;
requestFormat eglx.services.Encoding?;
requestCharset string = "UTF-8";
//default based on encoding
requestContentType string?;
responseFormat eglx.services.Encoding?;
responseCharset string?;
//default based on encoding
responseContentType string?;
end
For details, see REST annotation. |
Enumeration ServiceType TrueRest=1, EglRpc=2, EglDedicated=3 end |
| Target | Issue |
|---|---|
| Java | At this writing, service access is not supported. |
| JavaScript | No issues. |