Skip to content

Instantly share code, notes, and snippets.

@gminero
Last active October 2, 2019 18:04
Show Gist options
  • Save gminero/b378562fc4ad9ac99af7de936c9515cc to your computer and use it in GitHub Desktop.
Save gminero/b378562fc4ad9ac99af7de936c9515cc to your computer and use it in GitHub Desktop.
Generic REST configuration for indexing fluidtopics
{
"Services": [
{
"Url": "https://discover.fluidtopics.com",
"Endpoints": [
{
"Path": "/api/khub/maps",
"Method": "GET",
"ItemType": "FluidTopicArticles",
"Uri": "%[coveo_url]",
"ClickableUri": "%[coveo_url]",
"Title": "%[title]",
"Metadata": {
"type": "maps",
"id": "%[id]"
},
"SubItems": [
{
"Path": "/api/khub/maps/%[coveo_parent.id]",
"Method": "GET",
"ItemType": "map",
"Uri": "%[coveo_url]%[readerUrl]",
"ClickableUri": "%[coveo_url]%[readerUrl]",
"Title": "%[title]",
"Metadata": {
"id": "%[id]",
"language": "%[lang]"
},
"SubItems": [
{
"Path": "/api/khub/maps/%[coveo_parent.id]/topics",
"Method": "GET",
"ItemType": "topics",
"Uri": "%[coveo_url]%[readerUrl]",
"ClickableUri": "%[coveo_url]%[readerUrl]",
"Title": "%[title]",
"Metadata": {
"parentId": "%[coveo_parent.id]",
"id": "%[id]",
"contenturl": "%[contentApiEndpoint]",
"fluidtopics": "%[breadcrumb]",
"language": "%[coveo_parent.language]"
}
}
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment