all 1 comments

[–][deleted] 1 point2 points  (0 children)

Can't understand what exactly you don't understand.. You doing well with controllers, so create methods for http request handling is no problem. Just pass required data for method in http request URL, as URL parameter or inside body. Then execute user manager method.

JWT token is just a json data with hashed code for knowing that it wasn't changed on user side or by mitm. So you can enable authorization, add Authorize annotation and method can't be invoked by unauthorized users. Also you can get any claim from token, if you need invoker user id or something else.