diff --git a/api-test/frontend/src/business/definition/components/auth/ApiAuthConfig.vue b/api-test/frontend/src/business/definition/components/auth/ApiAuthConfig.vue index 5fec37b8ff..c02601db7b 100644 --- a/api-test/frontend/src/business/definition/components/auth/ApiAuthConfig.vue +++ b/api-test/frontend/src/business/definition/components/auth/ApiAuthConfig.vue @@ -68,6 +68,10 @@ export default { default: true, }, isReadOnly: Boolean, + isSwagger:{ + type: Boolean, + default: false, + } }, watch: { request() { @@ -75,11 +79,18 @@ export default { } }, created() { + if (this.isSwagger) { + this.options = this.swaggerOptions; + }else { + this.options = this.originalOptions; + } this.initData(); }, data() { return { - options: [{name: "No Auth"}, {name: "Basic Auth"}, {name: "Digest Auth"}], + originalOptions: [{name: "No Auth"}, {name: "Basic Auth"}, {name: "Digest Auth"}], + swaggerOptions:[{name: "No Auth"}, {name: "Basic Auth"}], + options: [], encryptOptions: [{id: false, name: this.$t('commons.encrypted')}], activeName: "verified", rule: {}, diff --git a/api-test/frontend/src/business/definition/components/import/ApiImport.vue b/api-test/frontend/src/business/definition/components/import/ApiImport.vue index 6a7512bc27..51e618af05 100644 --- a/api-test/frontend/src/business/definition/components/import/ApiImport.vue +++ b/api-test/frontend/src/business/definition/components/import/ApiImport.vue @@ -97,7 +97,7 @@
{{ $t('api_test.definition.request.auth_config') }}{{ $t('api_test.api_import.optional') }}:
- +