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.
This is my favourite stuff. I think I have made it third time and I think I can make it any time. Its so much fun everytime. Okay whats with the Apple. I saw a similar menu on Apple'e website during my 2nd semester in SICSR and was so amazed with it that decided to make it on my own. And it came out so well that I can't explain the amount of satisfaction that it brought along. But due to some reason it got lost. My old pc problem. The second time I made it during the Patni Javascript training session. It didn't came out that well. So, now I decided to make it the way I made it earlier and here in Chennai, and Eureka. I have done it again. So, here is a short tutorial for it. The HTML First of all, the HTML markup. Nothing great. A wrapper container for the whole thing, a fixed header, and the main wrapper container for menu items and then the menu item blocks. Here is all of it. <div id= "main_container" > <div id= "header...
Comments
Post a Comment