I may bo doing something wrong, but here's my problem:
I configure several fields to appear in a View, and they do appear in my view preview. But I can't get them to appear on my endpoint. They all seem to have the identifier "nid", so I'm only seeing the last one. Here are the details:

Query:

SELECT node.title AS node_title, node.nid AS nid, file_managed_field_data_field_biere_photo.uri AS file_managed_field_data_field_biere_photo_uri, 'node' AS field_data_field_biere_brasseur_node_entity_type, 'node' AS field_data_field_biere_categorie_node_entity_type, 'node' AS field_data_field_biere_alcool_node_entity_type, 'node' AS field_data_field_biere_description_brasseur_node_entity_type, 'node' AS field_data_field_biere_note_node_entity_type
FROM 
{node} node
LEFT JOIN {field_data_field_biere_photo} field_data_field_biere_photo ON node.nid = field_data_field_biere_photo.entity_id AND (field_data_field_biere_photo.entity_type = 'node' AND field_data_field_biere_photo.deleted = '0')
LEFT JOIN {file_managed} file_managed_field_data_field_biere_photo ON field_data_field_biere_photo.field_biere_photo_fid = file_managed_field_data_field_biere_photo.fid
WHERE (( (node.nid = '4' ) )AND(( (node.status = '1') AND (node.type IN  ('biere')) )))
ORDER BY node_title ASC

Preview:
La Saison du Tracteur Le Trou Du Diable Ale Forte http://localhost:8888/sites/default/files/arton377.jpeg 7.00% On trépigne en humant ses arômes complexes d'agrumes et de fruits de la passion qui dévoilent les prémisses d'une satisfaction future. La bouche offre les mêmes fruits, parallèlement au goût d’épices produits par une levure saison authentique. Il en résulte une bière désaltérante, combinant avec un charme certain le flair du Nouveau Monde et la rusticité du vieux continent. 5/5

Services Views render:

<result is_array="true">
<item>
<node_title>La Saison du Tracteur</node_title>
<nid>5/5</nid>
<file_managed_field_data_field_biere_photo_uri>
http://localhost:8888/sites/default/files/arton377.jpeg
</file_managed_field_data_field_biere_photo_uri>
</item>
</result>

Comments

benji101’s picture

Status: Active » Closed (fixed)

I figured out the problem. For people experiencing the same problem, here's what I did:

I created a new display of style "services" instead of using "page" with field display. I then set a custom label for each field, and boom, there they are.

chems’s picture

hello ,

i have the same problem , any solution

thx