| | |
| | | private List<SecurityScheme> securitySchemes() { |
| | | List<SecurityScheme> apiKeyList = new ArrayList<SecurityScheme>(); |
| | | apiKeyList.add(new ApiKey("Authorization", "Authorization", In.HEADER.toValue())); |
| | | apiKeyList.add(new ApiKey("hospId", "hospId", In.HEADER.toValue())); |
| | | return apiKeyList; |
| | | } |
| | | |
| | |
| | | */ |
| | | private List<SecurityReference> defaultAuth() { |
| | | AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything"); |
| | | AuthorizationScope[] authorizationScopes = new AuthorizationScope[2]; |
| | | AuthorizationScope[] authorizationScopes = new AuthorizationScope[1]; |
| | | authorizationScopes[0] = authorizationScope; |
| | | // authorizationScopes[1] = authorizationScope; |
| | | List<SecurityReference> securityReferences = new ArrayList<>(); |
| | | securityReferences.add(new SecurityReference("Authorization", authorizationScopes)); |
| | | // securityReferences.add(new SecurityReference("hospId", authorizationScopes)); |
| | | securityReferences.add(new SecurityReference("hospId", authorizationScopes)); |
| | | return securityReferences; |
| | | } |
| | | |
| | |
| | | // 用ApiInfoBuilder进行定制 |
| | | return new ApiInfoBuilder() |
| | | // 设置标题 |
| | | .title("体检项目接口文档") |
| | | .title("体检系统区域版接口文档") |
| | | // 描述 |
| | | .description("西安路泰科技有限公司") |
| | | // 作者信息 |
| | | .contact(new Contact("李格&赵佳豪", null, null)) |
| | | .contact(new Contact("zwx&zjh", null, null)) |
| | | // 版本 |
| | | .version("版本号:" + ltkjConfig.getVersion()) |
| | | .build(); |