NTT DATA Interview Question

Q: Write a rest endpoint to fetch data from the DB