Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
{
  "endpoints": {             
    "ExamplesGetSingleProductExamplesAllProducts": {
      "outputEntityDefinition": {
        "name": "ExampleProductOutputExampleAllProductsOutput",
        "isCollection" : true,
        "fields": {
          "id": {
            "type": "long"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A plain text description of the product."
          },
          "hasComplexPricing": {
            "type": "boolean",
            "description": "If true, this indicates you must add the product to the cart in order to get an accurate price."
          },
          "defaultPrice": {
            "type": "decimal"
          }    
      }
      //remaining metadata omitted
    }
  }
}

...