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>