bounswe / bounswe2017group6

InterestHub
http://34.209.230.231:8080/
6 stars 10 forks source link

while logging in API should also return users info beside token #325

Closed emreshome closed 6 years ago

emreshome commented 6 years ago

About

Since we have to keep users info in session, beside token API should return users info also. otherwise ./users/* endpoint requires authorization and we have to iterate over all users to find the user.

yhkalayci commented 6 years ago

Instead of that /me endpoint is added. With this endpoint, you can get the detailed information about user logged in.