aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2021-01-02 11:26:11 +0100
committerMartin Stockhammer <martin_s@apache.org>2021-01-02 11:26:11 +0100
commitbefb43799ebf958241e69b75b00835994f40fa7d (patch)
treeb50783222f6e7ada6852440eda17d55d8f371d87 /archiva-modules/archiva-web
parentcbfd3f256f0efd67f56f2654ad105c42f1e27dcf (diff)
downloadarchiva-befb43799ebf958241e69b75b00835994f40fa7d.tar.gz
archiva-befb43799ebf958241e69b75b00835994f40fa7d.zip
Switching to alias definition for test bean
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/archiva/openapi-configuration.yaml41
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/openapi-configuration.yaml16
2 files changed, 41 insertions, 16 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/archiva/openapi-configuration.yaml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/archiva/openapi-configuration.yaml
new file mode 100644
index 000000000..7ddbdb92e
--- /dev/null
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/archiva/openapi-configuration.yaml
@@ -0,0 +1,41 @@
+resourcePackages:
+ - org.apache.archiva.rest.api.services.v2
+ - org.apache.archiva.rest.api.model.v2
+
+prettyPrint: true
+cacheTTL: 0
+openAPI:
+ components:
+ securitySchemes:
+ BearerAuth:
+ type: http
+ scheme: bearer
+ bearerFormat: JWT
+ BasicAuth:
+ type: http
+ scheme: basic
+
+ servers:
+ - url: /archiva/api/v2/archiva
+ description: Base URL Version 2 API
+ - url: /archiva/archivaServices
+ description: Base URL Version 1 API (deprecated)
+ tags:
+ - name: v2
+ description: Version 2 REST API
+ - name: v2/Security
+ description: Authentication operations for Login and token refresh
+ - name: v1
+ description: Version 1 REST API (deprecated)
+
+ info:
+ version: '3.0'
+ title: Apache Archiva REST API
+ description: 'This is the Apache Archiva REST API documentation'
+ termsOfService: https://archiva.apache.org
+ contact:
+ email: users@archiva.apache.org
+ url: https://archiva.apache.org/index.html
+ license:
+ name: Apache 2.0
+ url: http://www.apache.org/licenses/LICENSE-2.0.html \ No newline at end of file
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/openapi-configuration.yaml b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/openapi-configuration.yaml
deleted file mode 100644
index 80917c951..000000000
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/resources/openapi-configuration.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
-resourcePackages:
- - org.apache.archiva.rest.api
-prettyPrint: true
-cacheTTL: 0
-openAPI:
- info:
- version: '3.0'
- title: Apache Archiva REST API
- description: 'This is the Apache Archiva REST API documentation'
- termsOfService: https://archiva.apache.org
- contact:
- email: dev@archiva.apache.org
- url: https://archiva.apache.org/index.html
- license:
- name: Apache 2.0
- url: http://www.apache.org/licenses/LICENSE-2.0.html \ No newline at end of file