Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4110

REST API response should return only id or full object?

$
0
0

At work every time I deal with creating CRUD api, I always return the full object for create and update.

Now I'm developing a personal project and I was wondering if it can be a good idea instead to return only id.

This means that if frontend need the full data, will call the exposed API findById.


Viewing all articles
Browse latest Browse all 4110

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>