Aras Innovator Platform

Server methods

Aras Innovator’s server methods are exposed as OData actions. OData functions are not used. The Method call has the method namespace prepended to it to avoid conflicts with item types and property names. The client sends a POST request to the method’s URI to call it:

POST http://host/server/odata/method.CalculateCost

The Translator uses the Method item type if the request body is empty or doesn’t specify the payload type. The client specifies the payload type using the @odata.type annotation:

POST http://host/server/odata/method.DoSomething

{

"@odata.type": “http://host/server/odata/$metadata#Person”,

“name": “John Doe”,

“age": 36

}

The client can also append a method to a collection or item URL. In this case the item type and ID (if specified) is taken from the URI.

POST http://host/server/odata/Part(‘01AA…FF3D’)/method.DoSomething

{

“item_number": “P-001",

“description": “Very important part”

}