- This Repo will validate the OPEN API - 3.0 Spec against the incoming request and will make sure we have the updated documentation all the time for reference.
- After the API is validated then the request will be proxy passed to localhost:8080.
- Build the node module manually
npm install
- Run a node proxy
node proxy.js
-
The port in which the proxyvalidator will run is 9090 by default.
-
Build using a docker container
docker build -t tagName:version .
- Run a docker image for testing
docker run -p 9090:9090 -d tagName:version
- Use yaml-merge to merge your api files, install dependency and merge files usig below commands
npm install -g @alexlafroscia/yaml-merge
yaml-merge file1 file2 file3 ... fileN > spec.yml
- To try it in kubernetes cluster we have a kubernetes deployment manifest which deploys the proxyvalodator in dev namespace, customize it according to your needs.Z
kubectl apply -f api-kubernetes.yml