DBS Bank interview question

Create an rest endpoint with security in spring boot