我正在使用katharsis,我想自定义响应,以下是katharsis响应。
{
"type": "table-name",
"id": "A",
"attributes": {
"description": "AAA"
},
"relationships": {
},
"links": {
"self": "http://localhost/table-name/A"
}
}
如何移除链接下的"self": "http://localhost/table-name/A" ?
在Katharsis Dto中添加字符串字段,并为该字段赋空值。然后添加注释@JsonApiLinksInformation。Katharsis将把"self": "http://localhost/table-name/A"替换为空字符串