Add API for registering apps with REST endpoint