java - best way to do Spring + Jersey user based API callss / transactions? -


What's the best way to handle the following scenarios:

Suppose I have a user with information DB is:

User ID, name, age, email

and I have a restore API that can change it:

  @ POST Public Zero EditUserInfo (some debates) {// stuff}  

The user only has to handle most of his information (i.e. "update where userid = X") to change What would be the best way

Should the user ID be saved in the cookie and then should be drawn into a logic through a cookie?

Or is there a simpler way to handle this (or more secure way?)


Comments

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -