Skip to content

[feat] Pulling multiple locales #20

Closed
@zernie

Description

@zernie

Generated typings don't support pulling multiple locales for content types with the Enable localization of this field field option.

For example:

/spaces/space/environments/master/entries?locale=*&content_type=test&access_token=access_token

will return the following json:

{
  "sys": {
    "type": "Array"
  },
  "total": 1,
  "skip": 0,
  "limit": 100,
  "items": [
    {
      "sys": {
        "space": {
          "sys": {
            "type": "Link",
            "linkType": "Space",
            "id": "123"
          }
        },
        "type": "Entry",
        "id": "id",
        "contentType": {
          "sys": {
            "type": "Link",
            "linkType": "ContentType",
            "id": "test"
          }
        },
        "revision": 1,
        "createdAt": "2016-09-13T20:29:10.193Z",
        "updatedAt": "2019-05-09T18:25:51.873Z",
        "environment": {
          "sys": {
            "id": "master",
            "type": "Link",
            "linkType": "Environment"
          }
        }
      },
      "fields": {
        "id": {
          "en-US": "1", // NOT SUPPORTED
          "fr-FR": "2",
        },
      }
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions