Rest APIs

- Made previous created API's more strict
- Added REST API functionality for:
  - app API
  - tenant API


No need for validation here as callback is optional