/
A Complete Example
A Complete Example
Below is the complete metadata file for the example demonstrated in the previous sections.
{ "endpoints": { "ExamplesGetSingleProduct": { "businessLogic": { "allProductsRetrieval": { "executionType": "processFlow", "processFlowProperties": { "processFlowName": "Example Get Product Catalog", "processFlowParameters": { "ProductId": "@Request.ProductId" } } } }, "route": { "httpMethod": "GET", "segments": { "examples": { "isLiteral": true, "type": "string" }, "products": { "isLiteral": true, "type": "string" }, "productId": { "isLiteral": false, "type": "long" } } }, "outputEntityDefinition": { "name": "ExampleProductOutput", "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" } } }, "inputEntityDefinition": { "name": "ExampleGetSingleProductInput", "fields": { "productId": { "type": "long", "input": { "httpMethods": [ "GET" ], "source": "path" } } } }, "security": { "AllowAnonymous": { "type": "AllowAnonymous" } } } } }
Related content
Business Logic Metadata
Business Logic Metadata
More like this
Sample endpoint to leverage binary uploads for attachments
Sample endpoint to leverage binary uploads for attachments
Read with this
Input Entity Definitions
Input Entity Definitions
More like this
Understanding Web API and SOA
Understanding Web API and SOA
Read with this
Creating the Complex Process Flow Literature Product
Creating the Complex Process Flow Literature Product
More like this
SSO Documentation
SSO Documentation
Read with this
Copyright © 2014-2019 Aptify - Confidential and Proprietary