Reference Data APIs
This section lists and explains the Reference Data APIs. This feature is included in all three stacks namely K8, Azure and AWS. Reference data API is supported for the databases namely MONGO, POSTGRESQL, DYNAMO, MYSQL and MSSQL.
POST/reference/{type}/{refcode}
http://<<host>>:<<port>>/<<MS war Name>>/api/v1.0.0/reference/Country/IN
{
"value": "IN",
"description": "India"
}
{
"value": "IN",
"description": "India"
}
PUT/reference/{type}/{refcode}
http://<<host>>:<<port>>/<<MS war Name>>/api/v1.0.0/reference/Country/IN
{
"value": "IN",
"description": "NewIndia"
}
{
"value": "IN",
"description": "NewIndia"
}
GET/reference/{type}/{refcode}
http://<<host>>:<<port>>/<<MS war Name>>/api/v1.0.0/reference/Country/IN
{
"value": "IN",
"description": "NewIndia"
}
GET/reference/{type}
http://<<host>>:<<port>>/<<MS war Name>>/api/v1.0.0/reference/Country
{
“Items”: [
{
"value": "IN",
"description": "NewIndia"
},
{
"value": "UAE",
"description": "Unite Arab Emirates"
}
]
}
DELETE/reference/{type}/{refcode}
http://<<host>>:<<port>>/<<MS war Name>>/api/v1.0.0/reference/Country/IN
{
"value": "IN",
"description": "Delete Successful"
}
In this topic