Introduce rest api

why getParam? can't we use getQuery or getPost?