first REST endpoint implemented
implementing JSON endpoints