How to set common api response structure for all APIs

You could check the ctx.request.route which I think would allow you exclude common Admin routes or you could go the whitelist method if you have a limited number of models and only perform the logic on your own models