I use the write API Integration Field and everything works fine (post/write). My question is how to display in Prismic UI the data from the "blob" node ? As I can see I only have acces to "Title" and "Description" in my custom type which use my Integration Field.
Here is what is send :
Welcome back to the Prismic Forum, and thanks for reaching out to us.
The title and the description of the item will only be available in the Prismic UI. The data from the blob node appears in the Prismic API response. You can see this data in the REST API browser when you hit the URL of your repository like this: https://your-repository-name.prismic.io/api/v2
I will let my @features-team know about this for future improvements as It's not currently possible to display the blob node in the Prismic UI.
Please find more detail about the integration field in the setup article.
Let me know if you have any further questions related to it.
Hi, I'm using an integration field in a content type to provide dynamic select values from an external endpoint.
When I fetch the content, contrary to what specified in documentation (Set up Integration Fields - Prismic), I'm only getting the title and description properties of the integration field intead of the full object that should be something like this:
{
"id": "my_item_id",
"title": "Item Title",
"description" : "Description of the item.",
"image_url" : "http://...",
"last_update" : 1509364426938,
"blob": {
"sku": "827",
"title": "First Item",
"description": "Description of first item...",
"image_url": "https://..."
}
}
I need to get also the id and blob, how can I have all the integration field properties in response?
Do I have to set some property in the query? Is there a fetchLinks functionality also for integration fields?
Hi
Priyanka,
My question is a little bit different.
I'm not asking to show the blob object in the Prismic UI but in the API response instead.
Why there are so many properties if when I fetch API's I'm only gettting title and description in the response payload?
I apologize for not answering precisely. There is no fetchLinks functionality for integration fields. You will get the title, description, and blob data under the API response's integration field API ID. Specifically, blob will not be mentioned in the API response.
For example, here is an API response of simple IF:
Can you see blob data in the Rest API browser? You can check Rest API browser by hitting the URL: your-repo-name.prismic.io/api/v2 Learn more about Rest API browser.
Can you share the Prismic repo with me? You can send me a private message to me.
So I have checked your IF endpoint. Your Custom API format must be compatible with Integration Fields. You need to add SKU, Id, image_url under the blob object. Learn more about how to create a Custom API format. .