Rest apis

Added REST API functionality for:
- app api