Should I return the whole created object in POST or just return the id of that object ?

When I creating a post method I find myself repeat what I did in GetById Should I just return the Id and the Front End make a second request ? This will make the code cleaner and less likely to produce bugs
1 Reply
SG97
SG972y ago
Why not just return the created entity?