Broadcom Live API Creator 5.x : How to hide host information from "next_batch" attribute in the response
search cancel

Broadcom Live API Creator 5.x : How to hide host information from "next_batch" attribute in the response

book

Article ID: 225480

calendar_today

Updated On:

Products

CA Live API Creator

Issue/Introduction

LAC administrator may considerate the option to hide host's information/identify (either hostname or IP) within the returning response.  

Environment

Broadcom Live API Creator 5.x and higher

Cause

LAC, by default, shows hostname or IP in the "next_batch" attribute within the returning response.  

Resolution

There are multiple solutions to the problem:

Solution A: Go to API Properties > Settings and "uncheck" the Include metadata section in responses (See Screen shot below)

Solution B: Remove Metadata from individual response by adding the url query parameter nometa=true to each request.

This will remove the metadata section from that particular request.

For example http://apitestserver.local:8080/rest/default/ndbon/v1/main:product?nometa=true 

Solution C: Modify specific attributes from response metadata, example provided here: https://github.com/EspressoLogicCafe/Examples/tree/master/ResponseEventToHideHostIP

In this example our developer have created a Response Event(HideHostIp), this Response Event inspects the response and masks the hostIP for href and removes the links.
Customer can modify this example to suit their needs.

Attachments