ractise.halbuilder-json.4.1.1.source-code.exampleWithMultipleNestedSubresources.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of halbuilder-json Show documentation
Show all versions of halbuilder-json Show documentation
HAL+JSON serializer/deserializer extension to the HalBuilder Library
{
"_links" : {
"curies" : [ {
"href" : "https://example.com/apidocs/ns/{rel}",
"name" : "ns",
"templated" : true
}, {
"href" : "https://example.com/apidocs/phone/{rel}",
"name" : "phone",
"templated" : true
}, {
"href" : "https://example.com/apidocs/role/{rel}",
"name" : "role",
"templated" : true
} ],
"self" : {
"href" : "https://example.com/api/customer/123456"
},
"ns:parent" : {
"href" : "https://example.com/api/customer/1234",
"name" : "bob",
"title" : "The Parent",
"hreflang" : "en"
},
"ns:users" : {
"href" : "https://example.com/api/customer/123456?users"
}
},
"_embedded" : {
"ns:user" : [ {
"_links" : {
"self" : {
"href" : "https://example.com/user/11"
}
},
"age" : 32,
"expired" : false,
"id" : 11,
"name" : "Example User",
"optional" : true,
"_embedded" : {
"phone:cell" : {
"_links" : {
"self" : {
"href" : "https://example.com/phone/1"
}
},
"id" : 1,
"number" : "555-666-7890"
}
}
}, {
"_links" : {
"self" : {
"href" : "https://example.com/user/12"
}
},
"age" : 32,
"expired" : false,
"id" : 12,
"name" : "Example User",
"optional" : true
} ]
}
}