Added endpoint that returns json