当前位置:网站首页>Apicloud studio3 API management and debugging tutorial
Apicloud studio3 API management and debugging tutorial
2022-07-05 13:06:00 【White and white 888】
brief introduction
Introduction to panel function area
Number according to the red number on the way , The corresponding functions are as follows :
- API、 Request variable definition panel switch
- Search box and new button
- API list ( Each folder in the list is called a category )
- according to API The generated code
- API details 、 From left to right are requests method、url And send request button
- request Area
- response Area
- Variable configuration panel
establish API
establish API There are two ways :
- Through the right side of the search box "+" Button to create : Move the mouse into the button to pop up the operation panel , Click New API Method , The editor will pop up API Name popup , Input API Name Click " determine " You can successfully create under the corresponding category
- Through the classification on the right "..." Button to create : Select a category , On the right side of the corresponding category "..." Button , Move the mouse to the right "..." The button will pop up the operation panel , Click New API Method , The editor will pop up API Name popup , Input API Name Click " determine " You can successfully create under the corresponding category
matters needing attention :
- Without classification , You need to go through the right side of the search box first "+" Button to create a classification , Then, normal API Create a process
- Through the right side of the search box "+" Button API It will be created under the currently selected category by default
Delete API/ classification
- Delete API: Select the one you want to delete API, Corresponding API It will appear on the right "..." Button , Move the mouse to the right "...", The corresponding operation panel will pop up , Click delete , A second confirmation box will pop up to avoid misoperation , Click the delete button , Can be deleted successfully
- Delete category : Select the category to delete , The corresponding category will appear on the right "..." Button , Move the mouse to the right "...", The corresponding operation panel will pop up , Click delete , A second confirmation box will pop up to avoid misoperation , Click OK to delete , Can be deleted successfully . If it exists under the changed classification API, You need to delete all categories API You can delete this category
see / modify API To configure
modify API Configuration information
Select the one that needs to be debugged or modified API, On the right side API The operation panel can see the current API Request information for 、 Request parameters , Click Send button , You can see the response details of the current configuration
Pictured here API Basic configuration :
- Set request type , Click the drop-down to select the corresponding request type
- Request address , Enter the corresponding API Request address
- Send request button , When the request parameters are configured , Click to send the request and get the response
request Configuration panel
query Configuration panel , Configure the required in each column query Parameters , The request will be sent with query Carry parameters in the form of
header Configuration panel , Enter the corresponding configuration , It will be configured to header in
To configure body Request body , Configure the request body in the corresponding request mode , According to the selected request type , stay body Carry the configured parameters in
response Response panel
It is mainly used to view API Return the data , You can choose the formatted data or the returned original data according to your preferences , The drop-down options on the right are the basis for formatting
see response Responsive header Information
modify API name
Select the API, The corresponding category will appear on the right "..." Button , Move the mouse to the right "...", Select Rename in the pop-up operation panel , Enter the name you want to modify and click ok
Configuration variables
Click variables tab Button , Switch to the variable operation panel , In the panel, click Key,Value Configure global variables in the form of , stay API When called , Use {Key} You can use the configured variables in the form of . Here's the picture
notes : Variable values cannot reference variables , as follows , It's wrong.
Generate API Code
Click " Generate API Code " Button , According to the existing API In the root directory apiModel Automatically generate available code in the folder , It contains three files , Namely apiModel.js、config.js and req.js
- apiModel.js file : Generate API Corresponding method , Used in projects , Import the file directly , As defined during debugging API Call the function name
Pictured ,① For reference ,② Call generated API Method ,③ Results the print , Prove successful call
- config.js file : Mainly preserved in API Variable information configured during debugging
- req.js: This file is the encapsulation of the request method
边栏推荐
- mysql拆分字符串做条件查询
- 将函数放在模块中
- Laravel document reading notes -mews/captcha use (verification code function)
- 滴滴开源DELTA:AI开发者可轻松训练自然语言模型
- [Nacos cloud native] the first step of reading the source code is to start Nacos locally
- #yyds干货盘点#js截取文件后缀名
- PyCharm安装第三方库图解
- 深度长文探讨Join运算的简化和提速
- From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
- RHCAS6
猜你喜欢
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
SAP UI5 FlexibleColumnLayout 控件介绍
Setting up sqli lab environment
Actual combat simulation │ JWT login authentication
Taobao product details API | get baby SKU, main map, evaluation and other API interfaces
stirring! 2022 open atom global open source summit registration is hot!
Introduction to sap ui5 flexiblecolumnlayout control
SAP ui5 objectpagelayout control usage sharing
Taobao short video, why the worse the effect
随机推荐
946. Verify stack sequence
How to protect user privacy without password authentication?
RHCSA5
【云原生】Nacos-TaskManager 任务管理的使用
A deep long article on the simplification and acceleration of join operation
Simple page request and parsing cases
insmod 提示 Invalid module format
【Nacos云原生】阅读源码第一步,本地启动Nacos
Super efficient! The secret of swagger Yapi
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
Reverse Polish notation
简单上手的页面请求和解析案例
RHCSA1
碎片化知识管理工具Memos
Rocky basics 1
同事半个月都没搞懂selenium,我半个小时就给他整明白!顺手秀了一波爬淘宝的操作[通俗易懂]
Notion 类笔记软件如何选择?Notion 、FlowUs 、Wolai 对比评测
ABAP editor in SAP segw transaction code
自然语言处理系列(一)入门概述
Rocky基础知识1