当前位置:网站首页>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? ?
边栏推荐
- Dgraph: large scale dynamic graph dataset
- 剑指 Offer 25. 合并两个排序的链表
- What will you do after digital IC Verification?
- Cell: Tsinghua Chenggong group revealed an odor of skin flora. Volatiles promote flavivirus to infect the host and attract mosquitoes
- Global and Chinese market of desktop hot melt equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- 电脑自带软件使图片底色变为透明(抠图白底)
- 关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
- System Verilog implements priority arbiter
- Global and Chinese market of oil analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
- [error record] the connection of the flutter device shows loading (disconnect | delete the shuttle/bin/cache/lockfile file)
猜你喜欢

超卓航科上市:募资9亿市值超60亿 成襄阳首家科创板企业

Error when uploading code to remote warehouse: remote origin already exists

七张图,学会做有价值的经营分析

PWM breathing lamp

AP and F107 data sources and processing
![[essay solicitation activity] Dear developer, RT thread community calls you to contribute](/img/31/11409606718e0f4837f4cc572172a3.png)
[essay solicitation activity] Dear developer, RT thread community calls you to contribute

Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation

机器学习-感知机模型

福元医药上交所上市:市值105亿 胡柏藩身价超40亿

易语言abcd排序
随机推荐
几行代码搞定RPC服务注册和发现
Machine learning perceptron model
Penetration tool - intranet permission maintenance -cobalt strike
[error record] error -32000 received from application: there are no running service protocol
国内比较好的OJ平台[通俗易懂]
AP and F107 data sources and processing
Hard core! One configuration center for 8 classes!
Seven charts, learn to do valuable business analysis
Method of C language self defining function
酒仙网IPO被终止:曾拟募资10亿 红杉与东方富海是股东
LeetCode 2. Add two numbers
畅玩集团冲刺港股:年营收2.89亿 刘辉有53.46%投票权
Yolov5 practice: teach object detection by hand
只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!
大厂面试总结大全
Amazon cloud technology community builder application window opens
Ap和F107数据来源及处理
寒门再出贵子:江西穷县考出了省状元,做对了什么?
[fluent] dart data type list set type (define set | initialize | generic usage | add elements after initialization | set generation function | set traversal)
P6774 [noi2020] tears in the era (block)