Added the ticket API functionality to the app