This article is about my research related to the question which I posted on Stackoverflow - https://stackoverflow.com/questions/44004602/return-client-specific-response-from-the-same-rest-endpoint-in-spring-4 I wanted a way to customize my response from a Spring Rest Controller based on the client which made the request. Client identification can be done via a lot of things, but I had to do it via the scopes. Now, the way I will have to eventually proceed is by creating separate end-points for the clients for unmentionable reasons whatsoever, but I couldn't help myself writing down here so that somebody might just find useful and a better use-case for it. So, here is what I wanted things to work. Let me draw a picture. That would really help to make you understand. Here are the three challenges for me to achieve this: How to get the scope in my code somewhere so that I can do something about it? I needed a way to to intercept/filter the JSON response that was sen...
I feel like I am not anyone's first choice. Neither their favourite. Even if people tell me I'm important to them or I mean a lot to them, I know there is always someone they prefer to be with. Someone they chose over me. And that's hurt... a lot.
No one can see the pain that we hide, They're happy for us to keep it inside, Our fear is our own; they don't want to know, Why should we involve them; why should it show. You live your whole life in confusion and fear, The need to feel something unbearably near, Half of you living, Half of you gone, And inside you know what your doing is wrong. The thing's that can help, the thing's that may heal, Are the flame or the blade and the sting of the steel, The destruction of skin means the death of your soul, But there's nowhere to run when your living alone.
Comments
Post a Comment