[英]Customize katharsis json response
我正在使用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中添加String字段,為此字段提供空值。 然后添加注釋@JsonApiLinksInformation。 Katharsis會將“” self“:” http:// localhost / table-name / A “替換為空字符串
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.