开发者

How do I track users(clients) in a REST GET calls

We have a Public REST application which has a lot of GET's from the clients . We have a way to track the POST calls but we do not have a way to track where the user has come for the GET calls .

Our intention is to have some client specific business rules if we are able to decide where the call has com开发者_JAVA百科e from ?


Returning different responses to a GET based on where the request comes from is not a great idea. Could you not POST the tracking id to an endpoint and have it redirect to a GET of ResourceA for this client and ResourceB for another client.

If you only want to track the GET requests then you could use cookies to identify the client. However, I would not recommended using the cookies to drive business logic.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜