A proof of concept api proxy built on top of Spring Boot.
Spinnaker aims to make it easy for users to integrate with pre-existing internal systems.
A common style of integration requires changes to both a Javascript UI and one or more JVM-based backend services.
This proxy eliminates the need for boiler plate APIs that do nothing more than marshall requests to/from the gateway service and your internal system.
It supports:
- declarative configuration format (no code needed!)
- authentication via client certificates
- proxying of GET requests (POST forthcoming)
See application.yml
proxies:
- id: flickr
uri: https://api.flickr.com
- id: spinnaker
uri: https://api.spinnaker:7103
keyStore: /path/to/my/keystore.jks
keyStorePasswordFile: /path/to/my/password.txt
curl http://localhost:8080/proxies/flickr/services/feeds/photos_public.gne?format=json
{
"status": "ok",
"code": 200,
"result": {
"proxiedUrl": "https://api.flickr.com/services/feeds/photos_public.gne?format=json",
"response": "jsonFlickrFeed(...)",
"responseContentType": "application/javascript;"
}
}