Добрый день,
У меня есть задача организации записи данных в базу по результатам http request по api в соседний сервис. Мой workflow выглядит достаточно просто:
результат http request:
{
"status": 200,
"statusText": "OK",
"headers": {
"server": "nginx",
"date": "Tue, 17 Jun 2025 05:14:47 GMT",
"content-type": "application/json",
"content-length": "99",
"connection": "keep-alive",
"x-s2s-server": "s2sauth-common-api, group-e.portal-xs",
"x-s2s-response-by": "backend/proxied",
"x-request-id": "db03b401550240ed4f55727c5a8f4e6a",
"x-s2s-request-id-mirrored": "db03b401550240ed4f55727c5a8f4e6a",
"access-control-max-age": "100",
"access-control-allow-methods": "HEAD, GET",
"access-control-allow-headers": "Content-Type, Authorization",
"access-control-allow-origin": "*",
"x-s2s-selector-func-route": "e",
"x-ratelimit-remaining": "9",
"status-no-id": "lsb-other-4c-15-04.xc.wb.ru",
"strict-transport-security": "max-age=31536000; preload;",
"x-content-type-options": "nosniff"
},
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": [
"xhr",
"http",
"fetch"
],
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 5000,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/json",
"Authorization": "Bearer secret",
"User-Agent": "axios/1.9.0",
"Accept-Encoding": "gzip, compress, deflate, br"
},
"url": "https://common-api.wildberries.ru/api/v1/seller-info",
"method": "get",
"params": {},
"allowAbsoluteUrls": true
},
"data": {
"name": "ИП Силина",
"sid": "1e3d95c4-aaef-4065-8dd0-90fdd9f4019d",
"tradeMark": "Flair Home"
}
}
В базу мне нужно записать:
“name”: “ИП Силина”,
“sid”: “1e3d95c4-aaef-4065-8dd0-90fdd9f4019d”,
“tradeMark”: “Flair Home”
Настройка Create record выглядит так:
Как мне указать корректно что из http request писать в БД?
Мучаюсь с вопросом 10й час. Возможно, нужно вообще как-то по другому организовать наполнение БД по API?