Enterspeed Struct Source is an Azure function that takes content from Struct and ingests into Enterspeed. The Azure function exposes an url that can be used when setting up a webhook in Struct.
To test the function locally you must do the following:
- Setup configuration
- Copy the
example_local.settings.json
file and rename the copy tolocal.settings.json
- Fil out the empty settings like API keys and urls for Enterspeed and Struct
- Copy the
- Start the Azure function in Visual Studio or what ever editor you are using
- Expose the local url of the Azure function to the Internet
- Create a free account on https://ngrok.com/
- Download ngrok and setup ngrok https://ngrok.com/download
- Start a tunnel on the port where the Azure function is running with the following command promt:
ngrok http 7071
- Setup a webhook in Struct
- Setup a webhook in Struct using the ngrok url
- Publish a product or asset from Struct to push it to Enterspeed
You can seed data by making a GET request to one of the following endpoints:
/api/SeedAll
/api/SeedGlobalLists
/api/SeedAssets
/api/SeedCategories
/api/SeedVariants
/api/SeedProducts
- Make Attributes to camelCase
- Attribute values are loaded twice for products and maybe other types as well (
ProductEnterspeedIngestService
andEnterspeedPropertyService
)