fields[...] seems not to be working

Created on 22 July 2016, over 8 years ago
Updated 5 August 2016, over 8 years ago

I'm trying the following query:

api/node/article?fields[article]=title&_format=api_json

But I'm always getting all the fields for articles. Is this broken or should be used in a different way?

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇷Argentina dagmar Argentina

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇵🇰Pakistan Allahnoor Turab

    How can we access nested fields like the address field?
    i want to fetch some of these nested fields not all
    "field_address": {
    "langcode": null,
    "country_code": "AU",
    "administrative_area": "WA",
    "locality": "South Hedland",
    "dependent_locality": null,
    "postal_code": "6722",
    "sorting_code": null,
    "address_line2": "Rd"
    }
    I tried ?fields[node--article]=field_address.country_code

Production build 0.71.5 2024