added API for facets
Merge remote-tracking branch 'devel/restApi_for_facets'

* devel/restApi_for_facets:
  added API for facets