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

Is it possible to configure Spring Data Rest to use id as references instead of URI?

$
0
0

The rest of my project was designed without hypermedia in mind. So association between entity is done via database unique id.

For example, an association is done via a

post /api/user/1/address/1

Whereas I think SDR wants me to do

post /api/user/1/address Content-Type:text/uri-list/api/address/1

But the problem is that I don't have URI for my old entity so I have to rewrite most of the project. Or don't use SDR. But I want to use SDR because going forward it saves me a lot of boiler plate code for new entity where they just need simple CRUD.


Viewing all articles
Browse latest Browse all 3630

Trending Articles