I need to map Contacts id to one of the attribute. Do we have any annotation for it?
I need to map id to another attribute in Contacts class. Like contactId map to id("id": "5210")
{
"data": [
{
"type": "contacts",
"id": "5210",
"attributes": {}
}
]
}
Class:
@JsonApi(type = "contacts")
public class Contact extends Resource {
private int contactId; // I want to map it to "id": "5210"
I need to map Contacts id to one of the attribute. Do we have any annotation for it?
I need to map id to another attribute in Contacts class. Like contactId map to id("id": "5210") { "data": [ { "type": "contacts", "id": "5210", "attributes": {} } ] }
Class: @JsonApi(type = "contacts") public class Contact extends Resource {
}