当前位置:网站首页>Advantages and disadvantages of rest ful API
Advantages and disadvantages of rest ful API
2022-07-07 23:08:00 【Scale biubiu】
advantage :
1. Suitable for high openness API. In recent years, the popularity of mobile Internet has diversified front-end devices , The industry urgently needs a unified mechanism to regulate API Design , bring API Suitable for all kinds of front end devices ,REST Meet this need .
2. Separation of behavior and resources , Easier to understand .
3. Propose to use version number ( for example v1、v2), More specification .
shortcoming :
1. High requirements for back-end developers , Business logic is sometimes difficult to be abstracted as the addition, deletion, modification and query of resources .
2. Not friendly to front-end developers ,API The grain size is coarse , It is difficult to query data that meets special requirements , The same business is better than ordinary API More than once HTTP request .
————————————————
Copyright notice : This paper is about CSDN Blogger 「UNT」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/qq_34098903/article/details/81116103
Personal view : I think the above great Xia's writing is very concise , and APP After communicating with front-end colleagues , Or decide not to use restful style , It will increase the difficulty of interface docking , It is also easy to make mistakes in the agreement , Conventional get/post The way , Clearly define interface functions , It's more convenient , And for safety , The difference is not big , Signature mechanism + secret key + Timestamps can also filter some of the hazards , So I decided not to use it for the time being . As for version number , We also according to our own situation , Combined with the experience of everyone on the Internet , I have defined the rules . It can be well adapted and compatible .
边栏推荐
- OC variable parameter transfer
- Basic knowledge of binary tree
- Yarn cannot view the historical task log of yarn after enabling ACL user authentication. Solution
- Build an "immune" barrier in the cloud to prepare your data
- Transform XL translation
- This time, let's clear up: synchronous, asynchronous, blocking, non blocking
- iNFTnews | NFT技术的广泛应用及其存在的问题
- Unity与WebGL的相爱相杀
- Leetcode19. Delete the penultimate node of the linked list [double pointer]
- 行测-图形推理-6-相似图形类
猜你喜欢
随机推荐
Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
Microbial Health Network, How to restore Microbial Communities
Comparison of various development methods of applets - cross end? Low code? Native? Or cloud development?
[network] Introduction to C language
Take full control! Create a "leading cockpit" for smart city construction
LeetCode144. Preorder traversal of binary tree
Exploratory data analysis of heartbeat signal
7-18 simple simulation of banking business queue
安踏DTC | 安踏转型,构建不只有FILA的增长飞轮
Transform XL translation
Brush question 4
Ligne - raisonnement graphique - 4 - classe de lettres
Why is network i/o blocked?
Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!
OC variable parameter transfer
GBU1510-ASEMI电源专用15A整流桥GBU1510
Debezium series: binlogreader for source code reading
Some parameters of Haikang IPC
Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
Cases of agile innovation and transformation of consumer goods enterprises









