Swagger deploymnet for the project API documentation.
kubectl and access to a kubernetes cluster is required.
For the Kubernetes deployment first of all, the Istio setup must be running
git clone <link-to-repo>
cd swagger-GH
To set up the swagger with the keycloak api we need to apply the configmap
kubectl apply -f YAMLs/001_keycloak-api-configmap.yaml
Then apply the swagger deployment with the number of replicas needed
kubectl apply -f YAMLs/002_swagger-deployment.yaml
To set up the service and the virtual service for Istio run
kubectl apply -f YAMLs/003_swagger-service.yaml
kubectl apply -f YAMLs/004_swagger-vs.yaml
In order to add or modify new swagger pages the YAMLs/002_swagger-deployment.yaml must be modify in the following section
...
- name: API_URLS
value: >-
[
... ,
{url:'<url to the yaml>',name:'Example swagger name'}
]
...
There an endpoint avaible on <base-url>/swagger-fosps where you can access the different swaggers pages avaible.
Nothing noticed yet.
In case you find a problem or you need extra help, please use the issues tab to report the issue.
To contribute, fork this repository and send a pull request with the changes squashed.
This project is distributed under the terms of the Apache License, Version 2.0 (AL2). The license applies to this file and other files in the GitHub repository hosting this file.
Copyright 2022 Universidad Politécnica de Madrid
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Alejo Esteban (@10alejospain)