Dear All,

I created a simple function import
@EdmFunctionImport(name = "CheckATP", returnType = @ReturnType(type = 
Type.SIMPLE, isCollection = false),
  httpMethod = HttpMethod.GET)
  public String CheckATP(
      @EdmFunctionImportParameter(name = "version",
          facets = @EdmFacets(maxLength = 2)) final String version) {


      return version;
  }

Also registered the same in the EDM Extensions
https://olingo.apache.org/doc/odata2/tutorials/jpafunctionimport.html

I see that in my metadata I do have function import

Metadata:
<FunctionImport Name="CheckATP" ReturnType="Edm.String" m:HttpMethod="GET">
<Parameter Name="version" Type="Edm.String" Nullable="true" MaxLength="2"/>
</FunctionImport>

Call to the endpoint




Reply via email to