how build custom json api controller for all registered users

how build custom json api controller for all registered users