wso2 / product-greg

Welcome to the WSO2 Governance Registry source code! For info on working with the WSO2 Governance Registry repository and contributing code, click the link below.
http://wso2.github.io/
Other
41 stars 95 forks source link

APIM Governance REST API GET response json has two "type" parameters #893

Open uthaiyashankar opened 5 years ago

uthaiyashankar commented 5 years ago

Steps to reproduce.

  1. Creating a policy using rest api.
  2. Get the created policy using GET request.
  3. You will get a response like below.
    
    {
    "assets": [
    {
    "name": "Blue Cross of Minnesota2",
    "id": "b8a7c27a-cda5-4fec-89ed-910d3a51276b",
    *"type": "partner",
    *"notes_notes": "Note2",
    "status": "New",
    "contract": "BAA",
    "description": "BCBSMN",
    *"type": "partners",
    *"axwayAccounts": [

{ "accountname": "BCBSMNPO_MFT", "loginname": "BCBSMNPO_MFT", "status": "New", "axwayid": "ID4798" } ,

{ "accountname": "BCBSMNPO_MFT", "loginname": "BCBSMNPO_MFT", "status": "New", "axwayid": "ID32324" } ], "self-link": "https://localhost:9443/governance/partners/b8a7c27a-cda5-4fec-89ed-910d3a51276b", "content-link": "https://localhost:9443/governance/partners/b8a7c27a-cda5-4fec-89ed-910d3a51276b/content" } ] }