Rest API - HATEOAS and Linking
If a REST API response includes:
What is the correct way to access the orders link in JavaScript from this JSON object named
{
"user": {
"id": 10,
"links": {
"orders": {"href": "/users/10/orders"}
}
}
}What is the correct way to access the orders link in JavaScript from this JSON object named
response?