I have a Rest Api from which I have to retrieve the value which is after clusters in links->href which is '00000000000000000000000000000000'. so how to get that particular value?
[{
"analysisUnits": [
{
"links": [
{
"href": "http://127.0.0.1/api/v1/clusters/00000000000000000000000000000000/aus/e6ec00e6da1c46c2a1060b3b8ae54765",
"rel": "self"
}
],
"name": "OZL6106W",
"uuid": "e6ec00e6da1c46c2a1060b3b8ae54765"
}
],
"links": [
{
"href": "http://127.0.0.1/api/v1/clusters/00000000000000000000000000000000",
"rel": "self"
}
],
"name": "MTS Recording Cluster",
"recordingUnits": [],
"uuid": "00000000000000000000000000000000"}]
const link = data[0].links[0].href.split('/');console.log(link[link.length - 1])