#views

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
nathan_czh's picture

Search API, Views and Services API

I am trying to use search API with the REST API provided with services. I have a view(as described below), a search index which indexes nodes, and a service endpoint. When i use the browser to directly access the view, the results are correct, but when I send a get request to the rest endpoint, I get something like

[
{
"price": null,
"description": null,
"title": "",
"image_url": "",
"company": "",
"hot_deal": null,
"nid": "0",
"name": "",
"uid": "0",
"html": null
}
]

The view:

$view = new view();
$view->name = 'search_products';

Read more
Subscribe with RSS Syndicate content