Exposing an application API to your presentation layer