Skip to content

Getting started

The project "Experience API" it is primarily a intermediated layer between clients and enterprise services powered by GraphQL protocol and is tightly coupled to a specific user/touchpoint experience with fast and reliable access, it represents an implementation of Backend for Frontend design pattern (BFF).

Prerequisites

  • VC platform 3.0 or later
  • The platform is configured to use ElasticSearch engine

appsettings.json

"Search": {
    "Provider": "ElasticSearch",
    "Scope": "default",
    "ElasticSearch": {
        "Server": "localhost:9200",
        "User": "elastic",
        "Key": "",
        "EnableHttpCompression": ""
    },
    "OrderFullTextSearchEnabled": true
}
  1. The settings “Store full object in index modules” are enabled for catalog and pricing modules: image image

  2. Rebuild index

Test environment

The sample requests:

{
  product(id: "0f7a77cc1b9a46a29f6a159e5cd49ad1")
  {
    id
    name

    properties {
      name
      type
      values
    }
  }

  products(query: "sony" fuzzy: true filter: "price.USD:(400 TO 1000]")
  {
    totalCount
    items {
       name
       id
       prices (currency: "USD") {
        list
        currency
      }
    }
  }
}

Last update: February 1, 2024