Feature/json api

Adds the API for the app mvp