api: added handler for app json schema.

Related to #412.