The APIkit OData Extension builds the OData API based on an odata.raml file that describes the OData entity data model (EDM) using supported EDM types. The odata.raml file is a RAML Library. Each DataType represents an EntityModel. For example:
#%RAML 1.0 Library
uses:
odata: !include libraries/odata.raml
types:
Employee:
properties:
id:
type: integer
(odata.key): bool
(odata.nullable): bool
name:
type: string
Annotate at least one of the properties on each entity using the annotation (odata.key).
These annotations pertain to each property:
(odata.precision): int
(odata.scale): int
Use the optional (odata.remote) annotation to provide the name of the entity in the remote data source:
types:
Employee:
(odata.remote): SAP_VBAK
properties:
...