add json endpoints for single models