简体   繁体   中英

Modifying katharsis json response

I am using katharsis with spring boot. I want to change the 'id' key in json response with my table PK column name, following is the katharsis response

    {
     "type": "table-name",
     "id": "A",
     "attributes": {
     "description": "AAA"
    },
    "relationships": {

     },
     "links": {
       "self": "http://localhost/table-name/A"
     }
    }

I want to change the above "id": "A" with "coulmnName":"A".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM