About bh4r4th
a Software Professional creating, developing and debugging solutions.
Hey 👋
I am a Software Professional who get high by coding better logics with simplest solutions. Started this page to express my creative thoughts and share some of my works.
Wrote lots of code with languages like ReactJs, NodeJs, Typescript, Python3 and Kotlin/Java. At the moment actively working on Kotlin+Maven+Spring-boot based projects.
I love being versatile and believe in "Problem First and Solutions Next". Actively contributing and answering on StackOverflow.
Please do reach me for healthy discussion and help support me with my work
Recent supporters
Posts
Scenario: After user logged into front-end application, user might wish to change their password. So, they click a button which redirect to fusionauth update password form. I am using a community edition (a free version) of fusionauth which do not have an out of the box solution. So, after reading through lot of documentation I achieved this in following way: My Controller Method: @GetMapping("/us...
FusionAuth: Change password flow
Oct 26, 2022
684 views
This is an interesting topic, Until recently, I used mark my old endpoints in @RestController with @Deprecated method. When I checked how it look like on client end, to my surprise I couldn't even tell the endpoint is actually deprecated. Then I went digging in common conventions, so most suggested to add Warning header to response without changing the status code. I love using spring, so I create...
Interceptor: @Deprecated warning in response
Oct 13, 2022
499 views
While I was creating a new RESTful API which serves internal and external users, I came across this problem where I have to exclude some of the fields from data classes when returning the response for external users. Before complicating this problem with usage of Spring Filters or Interceptors that can be applied to http request. I thought, why not make use of Jackson filters. Here we go, how I so...
Filter REST response using @JsonFilter: Kotlin + Spring boot + Jackson + @JsonFilter
Sep 21, 2022
2002 views

