create api and configure to accepts user info params