当前位置:网站首页>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? ?
边栏推荐
- Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
- 伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO
- LeetCode 2. 两数相加
- 基于Impala的高性能数仓实践之执行引擎模块
- Day 18 of leetcode dynamic planning introduction
- [leetcode] 14. Préfixe public le plus long
- Dgraph: large scale dynamic graph dataset
- Xiaopeng P7 had an accident on rainy days, and the airbag did not pop up. Official response: the impact strength did not meet the ejection requirements
- 基于多元时间序列对高考预测分析案例
- The computer comes with software to make the background color of the picture transparent (matting white background)
猜你喜欢
剑指 Offer 25. 合并两个排序的链表
隐私计算技术创新及产业实践研讨会:学习
Tech Talk 活动预告 | 基于Amazon KVS打造智能视觉产品
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
社交元宇宙平台Soul冲刺港股:年营收12.8亿 腾讯是股东
对接保时捷及3PL EDI案例
Error when uploading code to remote warehouse: remote origin already exists
TCP server communication process (important)
【云原生】简单谈谈海量数据采集组件Flume的理解
Hard core! One configuration center for 8 classes!
随机推荐
串口控制舵机转动
小鹏P7雨天出事故安全气囊没有弹出 官方回应:撞击力度未达到弹出要求
Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
超卓航科上市:募资9亿市值超60亿 成襄阳首家科创板企业
C语言自定义函数的方法
Understand one article: four types of data index system
go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
The macrogenome microbiome knowledge you want is all here (2022.7)
TCP server communication process (important)
国内比较好的OJ平台[通俗易懂]
Masa framework - DDD design (1)
Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
Talk about an experience of job hopping and being rejected
只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!
What is generics- Introduction to generics
使用知行之桥的API端口,提供资源供合作伙伴访问
VMware install win10 image
2322. Remove the minimum fraction of edges from the tree (XOR and & Simulation)
Lampe respiratoire PWM
Interview summary of large factories