How to return Softdeletion value in entity when hit rest api

When hit rest api like that http://172.18.1.171:8080/cpreading/rest/v2/entities/cpreading$Customer?view=customer-view_2, softdeletion value should return in json

Why do you need this? If the “deleteTs” and “deletedBy” attributes are filled then this means that the entity is deleted and this entity will not be returned in the response anyway

We need this for Database Sync…

Standard REST API cannot return deleted entities. If you need to get a list of deleted entities with the REST API you’ll have to create your own REST controller that will query the database for deleted entities (for example using the setSoftDeletion() method of the LoadContext) and then serialize them to JSON (use may use EntitySerialization for that).