当前位置:网站首页>Swagger authorization test
Swagger authorization test
2022-04-22 16:54:00 【liuerchong】
Preface
In the current front and back-end separation development mode ,api Documentation is the best way to communicate . therefore swagger It has become a hot tool .Swagger It is a normative and complete framework , Used to generate , describe , Invocation and visualization RestFul Style web service .
characteristic :
1. timeliness ( After the interface changes , Be able to timely and accurately inform the relevant front and back-end developers )
2. Normative ( And keep the interface normative , for instance , The address of the interface , Request mode , Parameters and their response formats and error messages )
3. Uniformity ( Interface information is consistent , It won't happen because the developers get different versions , And there are differences )
4. Testability ( Test directly on the interface document , In order to understand the business )
Use postman To test , When we have a lot of services , This method can be very cumbersome , So in this section, we pass swagger To conduct a communication test
Access address
Swagger Access address of each version :
3.+ Access address :
http://localhost:8081/{context-path}/swagger-ui/index.html
2.+ Access address :
http://localhost:8081/{context-path}/swagger-ui.html
verification


Login system , open F12 The request header will see the part shown in the figure
Copy JSESSIONID There's one in the back Token Part to swagger value part , Click on try out, Click again execute, The final execution was successful ; Then copy the main part of the request and click execute, The final execution was successful ;
版权声明
本文为[liuerchong]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221651520059.html
边栏推荐
- AQS source code reading
- openstack利用devstack安装,安装之后dashboard报错Internal Server Error
- Detailed chart of chatevents inspection record (x)
- BACKBONE,NECK,HEAD
- In 2023, Wuhan University of technology energy and power (085800) took the postgraduate entrance examination and landed. Experience guidance of predecessors in preparing for the examination
- Sqlalchemy过滤时间
- 蓝桥杯练习014
- 五一劳动节哪个理财产品收益高?
- 详述 CHARTEVENTS 检查记录表(十)
- Blue Bridge Cup practice 014
猜你喜欢
![[Ansys Workbench] Mechanical 界面显示模型树窗口和详细信息窗口](/img/75/d6da5800cf3d1952d1c052a189608a.png)
[Ansys Workbench] Mechanical 界面显示模型树窗口和详细信息窗口

《KNN与K-means从入门到实战》

leetcode:451. 根据字符出现频率排序

SDN学习之Opendaylight浅析(五)

AQS source code reading

Numpy Fundamentals (creation, index, common functions)

GlobalMapper20 如何批量的把shp转为kml并带上属性

MySQL日志

CrashSight 常规功能&特色功能介绍

Crashsight general function & feature function introduction
随机推荐
In 2023, Wuhan University of technology energy and power (085800) took the postgraduate entrance examination and landed. Experience guidance of predecessors in preparing for the examination
SDN学习之Opendaylight浅析(三)
Idea code refactoring tips (VIP collection version)
web安全工具Burp_suite安装及使用教程(专业版)
Agile practice | agile indicators to improve group predictability
leetcode:451. 根据字符出现频率排序
利用ip addr 操作网卡的ip
五一劳动节哪个理财产品收益高?
[Unity] 使用 Animation Rigging 制作瞄准 IK 1
蓝桥杯练习020
【面试普通人VS高手系列】请说一下网络四元组
【周报】4月17日
[句型] 二十四、特殊疑问句
SDN学习之Opendaylight浅析(五)
红杉中国带队,投了两位女创始人
leetcode:23. 合并K个升序链表
DevExpress WPF入门指南 - 运行时生成的POCO视图模型(一)
JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
frp反向代理
蓝桥杯练习012