Saturday 1 August 2015

SAPNTGW - EXPAND_JSON Test Response

{
  
"d" : {
    
"results" : [
      {
        
"__metadata" : {
          
"id" "http://devdgw-ci.sap.umb.vqss.com:8001/sap/opu/odata/sap/ZMA_EMPS_SRV/Emp_DataSet('00000001')",
          
"uri" "http://devdgw-ci.sap.umb.vqss.com:8001/sap/opu/odata/sap/ZMA_EMPS_SRV/Emp_DataSet('00000001')",
          
"type" "ZMA_EMPS_SRV.Emp_Data"
        },
        
"Employee" "00000001",
        
"EmployeeName" "Employee1",
        
"Dependent_Dataset" : {
          
"results" : [
            {
              
"__metadata" : {
                
"id" "http://devdgw-ci.sap.umb.vqss.com:8001/sap/opu/odata/sap/ZMA_EMPS_SRV/Dependent_DataSet(Employee='00000001',DepNo='001')",
                
"uri" "http://devdgw-ci.sap.umb.vqss.com:8001/sap/opu/odata/sap/ZMA_EMPS_SRV/Dependent_DataSet(Employee='00000001',DepNo='001')",
                
"type" "ZMA_EMPS_SRV.Dependent_Data"
              },
              
"Employee" "00000001",
              
"DepNo" "001",
              
"DepType" "0001",
              
"DependentName" "Dependent1"
            },
            {
              
"__metadata" : {
                
"id" "http://devdgw-ci.sap.umb.vqss.com:8001/sap/opu/odata/sap/ZMA_EMPS_SRV/Dependent_DataSet(Employee='00000001',DepNo='002')",
                
"uri" "http://devdgw-ci.sap.umb.vqss.com:8001/sap/opu/odata/sap/ZMA_EMPS_SRV/Dependent_DataSet(Employee='00000001',DepNo='002')",
                
"type" "ZMA_EMPS_SRV.Dependent_Data"
              },
              
"Employee" "00000001",
              
"DepNo" "002",
              
"DepType" "0001",
              
"DependentName" "Dependent2"
            },
            {
              
"__metadata" : {
                
"id" "http://devdgw-ci.sap.umb.vqss.com:8001/sap/opu/odata/sap/ZMA_EMPS_SRV/Dependent_DataSet(Employee='00000001',DepNo='004')",
                
"uri" "http://devdgw-ci.sap.umb.vqss.com:8001/sap/opu/odata/sap/ZMA_EMPS_SRV/Dependent_DataSet(Employee='00000001',DepNo='004')",
                
"type" "ZMA_EMPS_SRV.Dependent_Data"
              },
              
"Employee" "00000001",
              
"DepNo" "004",
              
"DepType" "0001",
              
"DependentName" "Dependent3"

            }
          ]
        }
      }
    ]
  }
}

No comments:

Post a Comment