Available translations





loading results
API Response Schema


This node represents the map for the API response. APIs send their data using a JSON object. The children of this node will map this JSON object so that the API Fetcher Bot knows how to extract the data you want.

Этот узел представляет карту для ответа API. API отправляют свои данные с помощью объекта JSON. Дочерние элементы этого узла будут отображать этот объект JSON, чтобы бот API Fetcher Bot знал, как извлекать нужные данные.

Bu düğüm, API yanıtı için haritayı temsil eder. API'ler verilerini bir JSON nesnesi kullanarak gönderir. Bu düğümün çocukları bu JSON nesnesini eşler, böylece API Getirici Botu istediğiniz verileri nasıl çıkaracağını bilir.
The API Map assumes the API Server will respond with string formatted in JSON. This means that the response will be a data structure of nestled objects and arrays. Users will need to map the response format into an API Response Schema by adding children to this node and to this node's children. All these descendants are of the same Node Type API Response Field.
API Map предполагает, что сервер API ответит строкой, отформатированной в JSON. Это означает, что ответ будет структурой данных вложенных объектов и массивов. Пользователям потребуется отобразить формат ответа в API Response Schema, добавив дочерние элементы к этому узлу и к дочерним элементам этого узла. Все эти потомки имеют один и тот же тип узла API Response Schema.
API Haritası, API Sunucusunun JSON'da biçimlendirilmiş dizeyle yanıt vereceğini varsayar. Bu, yanıtın yuvalanmış nesnelerin ve dizilerin bir veri yapısı olacağı anlamına gelir. Kullanıcıların, bu düğüme ve bu düğümün alt öğelerine alt öğeleri ekleyerek yanıt biçimini bir API Yanıt Şeması ile eşleştirmeleri gerekecektir. Tüm bu torunlar aynı Düğüm Tipi API Yanıt Alanına aittir.
Here is an example of an API's response JSON:
Вот пример JSON ответа API:
İşte bir API'nin JSON yanıtına bir örnek:
{
"status": {
"timestamp": "2018-06-02T22:51:28.209Z",
"elapsed": 10
},
"data": [
{
"id": "1e31218a-e44e-4285-820c-8282ee222035",
"symbol": "BTC",
"name": "Bitcoin",
"slug": "bitcoin",
"profile": {...},
"metrics": {...}
}
]
}
The main object is the first set of curly brackets { } enclosing everything. As you can see, underneath that there are two object properties named status and data. Status is an object and contains the header information. Data is an array and holds the actual data we are after. As you API Response Field nodes to your API Response Schema node you will be mapping an API response similar to this one.
Основным объектом является первый набор фигурных скобок {}, охватывающих все. Как видите, под ними находятся два свойства объекта с именами status и data. Статус - это объект, содержащий информацию заголовка. Данные - это массив, в котором хранятся фактические данные, которые нам нужны. По мере того, как вы используете узлы API Response Field на свой узел API Response Schema, вы будете отображать ответ API, аналогичный этому.
Ana nesne, her şeyi kapsayan ilk küme parantezleri { } kümesidir. Gördüğünüz gibi, bunun altında status ve data adında iki nesne özelliği var. Durum bir nesnedir ve başlık bilgilerini içerir. Veri bir dizidir ve peşinde olduğumuz gerçek verileri tutar. API Yanıt Şeması düğümünüze API Yanıt Alanı düğümleri olarak, buna benzer bir API yanıtı eşleyeceksiniz.
Tip: When reading documentation, or looking at raw data held in JSON, it is important to remember that curly brackets { } define objects while square brackets [ ] define arrays.
Tip: При чтении документации или просмотре необработанных данных, содержащихся в JSON, важно помнить, что фигурные скобки { } определяют объекты, а квадратные скобки [ ] определяют массивы.
Tip: İpucu: Belgeleri okurken veya JSON'da tutulan ham verilere bakarken, küme parantezlerinin { } nesneleri, köşeli parantezlerin [ ] dizileri tanımladığını hatırlamak önemlidir.
API Response Schema Configuration
Конфигурация API Response Schema
API Yanıt Şeması Yapılandırması
Properties
Свойства
Özellikleri
- nodePath: the response from the server might include some header type data in addition to the actual data requested. Since the response is a JSON object, then the actual data might be located somewhere within the structure of that object. This property allows you to declare the path to the actual data requested, so as to jump the header-like information.
- nodePath: ответ сервера может включать некоторые данные типа заголовка в дополнение к фактическим запрошенным данным. Поскольку ответ представляет собой объект JSON, фактические данные могут находиться где-нибудь в структуре этого объекта. Это свойство позволяет вам объявить путь к фактическим запрошенным данным, чтобы перейти к информации, подобной заголовку.
- nodePath: sunucudan gelen yanıt, istenen gerçek verilere ek olarak bazı başlık türü verileri içerebilir. Yanıt bir JSON nesnesi olduğundan, gerçek veriler o nesnenin yapısı içinde bir yerde bulunabilir. Bu özellik, başlık benzeri bilgileri atlamak için istenen gerçek verilere giden yolu bildirmenize olanak tanır.
Why do We Need to Jump the Header?
Зачем нам нужно перепрыгивать через Заголовок?
Neden Başlığı Atlamamız Gerekiyor?
In many cases it will be necessary to make several queries to the API Server in order to fetch all the data (think of pagination). Each page of data arrives at a certain location within the response data structure. That location is what we considered the Data Root.
Во многих случаях необходимо будет сделать несколько запросов к серверу API, чтобы получить все данные (подумайте о разбивке на страницы). Каждая страница данных поступает в определенное место в структуре данных ответа. Это место мы считали корнем данных Data Root.
Çoğu durumda, tüm verileri almak için API Sunucusuna birkaç sorgu yapmak gerekecektir (sayfalandırmayı düşünün). Her veri sayfası, yanıt veri yapısı içinde belirli bir konuma gelir. Bu konum, Veri Kökü olarak kabul ettiğimiz konumdur.
If your Endpoint does not support pagination, it is still a good practice to define which part of the JSON object is the Data Root.
Если ваша конечная точка не поддерживает разбиение на страницы, рекомендуется определить, какая часть объекта JSON является корнем данных.
Uç Noktanız sayfalandırmayı desteklemiyorsa, JSON nesnesinin hangi bölümünün Veri Kökü olduğunu tanımlamak yine de iyi bir uygulamadır.
Important: Most Record Properties will be referencing API Response Field nodes that are under the Data Root you defined, but there might be one or two that are not there. Rather these values may be under the response data structure in general, or at a section that could be considered a header. In that case, there is some special steps you need to follow. At the API Response Field Reference node config, you will need to set up a nodePath property as explained below.
Important: Большинство свойств Record Properties будут ссылаться на узлы API Response Field, которые находятся в заданном вами корне данных, но могут быть один или два, которых там нет. Скорее, эти значения могут находиться в структуре данных ответа в целом или в разделе, который можно рассматривать как заголовок. В этом случае вам необходимо выполнить некоторые особые действия. В конфигурации узла API Response Field Reference вам нужно будет настроить свойство nodePath, как описано ниже.
Important: Önemli: Çoğu Kayıt Özelliği, tanımladığınız Veri Kökü altındaki API Yanıt Alanı ( API Response Field ) düğümlerine başvurur, ancak orada olmayan bir veya iki tane olabilir. Bunun yerine bu değerler genel olarak yanıt veri yapısının altında veya başlık olarak kabul edilebilecek bir bölümde olabilir. Bu durumda, izlemeniz gereken bazı özel adımlar vardır. API Response Field Reference düğüm yapılandırmasında, aşağıda açıklandığı gibi bir nodePath özelliği ayarlamanız gerekecektir.
Check the API Response Field Reference node for details on how to setup this property.
Подробную информацию о том, как настроить это свойство, можно найти в узле API Response Field Reference.
Bu özelliğin nasıl kurulacağına ilişkin ayrıntılar için API Yanıt Alanı Referansı ( API Response Field Reference ) düğümüne bakın.
Initial Values
These are the Initial Values for API Response Schema configuration:
{
"nodePath": "apiResponseReceivedObject.data"
}
Examples
This is a list of properties featured by the API Response Schema configuration. Expanding a property shows sample values for the property extracted from the current Workspace.
API Response Schema Menu
The API Response Schema node has the following Node Menu items:
The Configure menu item has the following properties:
- action: Configure
- actionFunction:
uiObject.configEditor.activate
- label: Configure
- iconPathOn: configuration
- iconPathOff: configuration
The Add API Response Field menu item has the following properties:
- action: Add UI Object
- disableIfPropertyIsDefined: true
- propertyToCheckFor:
apiResponseFields
- label: Add API Response Field
- relatedUiObject: API Response Field
- actionFunction:
payload.executeAction
- actionProject: Visual-Scripting
- relatedUiObjectProject: Foundations
The Delete menu item has the following properties:
- action: Delete UI Object
- actionProject: Visual-Scripting
- askConfirmation: true
- confirmationLabel: Confirm to Delete
- label: Delete
- iconPathOn: delete-entity
- iconPathOff: delete-entity
- actionFunction:
payload.executeAction
Tip: When a menu item is grayed out, it means that API Response Schema already has the required child type that the menu item may add, and only that child is allowed for that case.
API Response Schema Children
The API Response Schema node has the following childrenNodesProperties:
The Api Response Fields node property features the following properties:
- name:
apiResponseFields
- type: node
- childType: API Response Field
- autoAdd: false
API Response Schema Attaching Rules
The following are the Node Attaching Rules that govern the attachment of API Response Schema with other nodes:
Compatible Types: