当前位置:网站首页>Use the API port of the bridge of knowledge and action to provide resources for partners to access
Use the API port of the bridge of knowledge and action to provide resources for partners to access
2022-07-02 17:07:00 【Knowledge and practice EDI】
Suppose there's a scene like this , Current enterprises A Has established its own EDI System , As an enterprise B Partners of , It is necessary to often report to the enterprise A Request quotation and inventory information , And businesses B did not EDI System , Only through API How to get data , In order to make the enterprise B You can get the information you want in real time , No need for enterprise A Artificial intervention , How can the above requirements be realized in the bridge of knowledge and action ?
The answer is through the bridge of knowledge and action API port .API Ports can be customized at the bridge of knowledge and action API, For specific users and IP Address to access specific resources , The above requirements , You only need to maintain the accessible data in a specific database , adopt API Port Publishing , Then enterprise B You can call this API Get the information you want .
How should it be realized ? Let's look at the detailed steps . Or take the scene at the beginning of the article as an example , Demand is enterprise B Want to start from the enterprise A Get the inventory and price information of specific commodities .
API port configuration
First, enterprises A Relevant information needs to be synchronized to a specific database , The following is an example , The code of the item 、 describe 、 Price 、 The relevant information of inventory quantity has been synchronized to the test sql server In the database item_information In the table :
On the basis of the bridge of knowledge and action port list (core) Find... In the category API port , And drag it into the workflow and name it .
Click on API Port configuration , We can see that the connection tab configuration is very similar to the database port , Select the corresponding data source type , Good configuration IP、 Account and password 、 Database and other information , You can successfully establish a connection with the database .
After connecting to the database , We also need to specify resources that can be accessed externally , That is, externally accessible tables , stay 【 resources 】 Tab configure accessible tables 、 Allowed operations and field information . Operation contains GET,POST,PUT as well as DELETE, Current requirements only need to obtain data , So let's check PUT that will do .
After configuring resources , We need to set the access users , stay 【 user 】 Tab create user , Save the authentication token (Authtoken). For the first time , You can also see that the maximum number of requests and the maximum number of concurrent requests are configured here , Users can configure according to the actual situation .
In addition to the authentication of user tokens , You can also do it in 【 The server 】 Tab to set the accessible IP list , Control external calls from the perspective of the network , Only IP In the white list IP Address or address segment can access resources , Otherwise, an error message without permission will be returned .
The above is the bridge of all knowledge and action API Port configuration , After configuration , Need to put API The document and the user token saved in the previous step are sent to the caller , stay API In the document , You can see the information of resources and interfaces :
API call
Now let's simulate how the caller should call this released by Zhixing bridge API, This article USES the postman To simulate the operation of the call . And call the bridge of knowledge and action AdminAPI similar , Need to be in Headers Configure parameters at x-arcesb-authtoken, The value is the assigned user token , Method set to GET,URL And API Keep consistent in the document .
After configuration , Click on Send, Can be in response See the returned json data , Contains the fields in the configured resources , That is, the product information we need , We can get the price and inventory information of goods in real time .
What if you want to only receive information about materials ? Can pass URL Filter to achieve , Suppose we just want to get the product number T-A-2022X Product information , We can URL Configure to ( accord with RESTFul API The rules ):
http://localhost:8001/connector/Default/API_TEST/api.rsc/timmit_dbo_item_information?$filter=item_number eq ‘T-A-2022X’
stay B2B Electronic data interchange ,EDI Is more general 、 standard 、 More mature solutions , Transmission is more stable , It is a more comprehensive solution to connect with large overseas enterprises to realize data exchange and optimize the supply chain . But users inevitably have specific customization needs , here API Flexibility is reflected , It can be used to realize such small functions . In addition, it is promoting EDI When the connection , We also need to consider the IT Ability , For no IT Capable trading partners , Perhaps the most ideal solution is to use WebEDI, For having API Development ability but no EDI Trading partners with implementation capabilities , Then we need to use API Docking with it . There are many trading partners , How to connect them with a system ? The answer is the bridge of knowledge and action , Get through the data barrier between different trading partners for you .
The above is through the bridge of knowledge and action API Port Publishing API Methods , If you need to act as API The client calls the external interface , Please use REST Port configuration . If you know the bridge of knowledge and action API Any questions about the port , Welcome to contact Zhixing Software Consultant .
Extended reading :
adopt REST API Realization EDI&ERP Integration of
Admin API Use of the series of courses postman Tool to call Zhixing API
EDI still API, How should enterprises choose ?
originally EDI System Admin API
more EDI Information , see also : EDI What is it? ?
边栏推荐
- R及RStudio下载安装教程(超详细)
- 2、 Expansion of mock platform
- [error record] error -32000 received from application: there are no running service protocol
- Vscode setting delete line shortcut [easy to understand]
- Talk about an experience of job hopping and being rejected
- 剑指 Offer 24. 反转链表
- 亚马逊云科技 Community Builder 申请窗口开启
- 寒门再出贵子:江西穷县考出了省状元,做对了什么?
- Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
- 关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
猜你喜欢
Lampe respiratoire PWM
剑指 Offer 24. 反转链表
Error when uploading code to remote warehouse: remote origin already exists
The computer comes with software to make the background color of the picture transparent (matting white background)
DGraph: 大规模动态图数据集
PhD battle-11 preview | review and prospect backdoor attack and defense of neural network
OpenPose的使用
只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!
Seal Library - installation and introduction
相信自己,这次一把搞定JVM面试
随机推荐
uboot的作用和功能
Hard core! One configuration center for 8 classes!
OpenHarmony如何启动远程设备的FA
Masa framework - DDD design (1)
相信自己,这次一把搞定JVM面试
Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
Global and Chinese market of desktop hot melt equipment 2022-2028: Research Report on technology, participants, trends, market size and share
R及RStudio下载安装教程(超详细)
关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
TCP congestion control details | 2 background
john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
Go zero micro service practical series (VIII. How to handle tens of thousands of order requests per second)
酒仙网IPO被终止:曾拟募资10亿 红杉与东方富海是股东
什么是泛型?- 泛型入门篇
Usage of sprintf() function in C language
有赞和腾讯云、阿里云一同摘得“中国企业云科技服务商50强”[通俗易懂]
Use of openpose
Day 18 of leetcode dynamic planning introduction
L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])
[fluent] dart data type list set type (define set | initialize | generic usage | add elements after initialization | set generation function | set traversal)