Files (OData+) - Intergraph Smart API Manager - 2020 (4.0) - Help

Intergraph Smart API Manager Help

Language
English
Product
Intergraph Smart API Manager
Search by Category
Help
Smart API Manager Version
4.0

Smart APIs use the Files resource to support the ability to retrieve any type of file associated with an application.

You will find the Files resource in two locations:

  • Bound to instances of an entity set.

  • Exposed as an entity set directly off of the <service root> URL.

For example, the SampleService Smart API does not contain Files at its service root:

https://sam.spclouddave.com/SampleService/Sppid/v2

But, if you look at the metadata document:

https://sam.spclouddave.com/SampleService/Sppid/v2/$metadata

you will find Files bound to the Pipe entity:

<EntityType Name="Pipe" BaseType="Com.Ingr.Sppid.V1.Equipment" OpenType="true">

.

<NavigationProperty Name="Files" Type="Collection(Com.Ingr.Core.V1.File)" ContainsTarget="true"/>

.

</EntityType>