Pregunta de entrevista de Tata Consultancy Services

How to create Rest Endpoint in Spring? How to call API from react?