.net - I have to place two calls to web API, first for validating the user and second for retrieving user details if validation is successful -


i have place 2 calls web api, first validating user , second retrieving user details if validation successful. if client side app directly calls retrieveuserdetails (i.e. second call), how can prevent this? also, how achieve correct way of implementing this?

thanks in advance!

making 2 calls retrieve user details chatty way design feature. right way have 1 single call api , if validation fails api should respond proper error code client can respond accordingly.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -