This project is part of FIWARE OPS infrastructure. It transforms API specifications into a defined format, applies some fixes and uploads the result to a specified GitHub repository under defined branches. It works as a service and can receive GitHub notifications as well as direct requests.
Transformation temporary disabled.
$ docker run -e TOKEN_GITHUB=${TOKEN_GITHUB} \
-p 0.0.0.0:${PORT}:${PORT} \
fiware/service.apispectransformer \
--ip 0.0.0.0 \
--port ${PORT} \
--config ${PATH_TO_CONFIG}
$ curl http://localhost:${PORT}/ping
- APIMATIC Transformer is used to transform API specifications, so you should provide a valid token with an environment variable TOKEN_APIMATIC.
- The result of transformation is uploaded to GitHub, so you should provide a valid token with an environment variable TOKEN_GITHUB.
- Sample config is located here.
Ping
$ curl http://localhost:${PORT}/ping
Get version
$ curl http://localhost:${PORT}/version
Test APIMATIC connection, temporary disabled
$ curl http://localhost:${PORT}/apimatic
Synchronize
$ curl -XPOST http://localhost:${PORT}/sync?id=${REPOSITORY}
This project works as an endpoint and it should receive notifications from GitHub, so you should configure the webhook in the GitHub repository:
- application/json
- only push events
- no secrets