Simple REST services to demonstrate some use cases of SOAP service calls from restify
$ npm i
$ npm run start-dev
GET:
Get country name by country code:
eg. http:localhost:8080/countries/fr
Get country by currency code
eg. http:localhost:8080/countries/currencies/FRF
Get all currency,currency code for all countries
eg. http:localhost:8080/currencies/countries
Run test
$ npm test
$ docker build -t soap-restify-example .
$ docker run --rm -d -e LISTEN_ADDR=0.0.0.0:8080 -p 8080:8080 soap-restify-example:latest
-
SOAP Calls
- with securtity (OAuth, custom, etc...)
-
Config
- List minimal configuration ?
-
Logger
- Logger takes name, and log config
- Logger can log to syslog and to stdout.
- Logger have to contains the client identifier
-
Cache (Redis instance with reconnection management)
- JSON Cache Manager with ttl support (Cache JSON response)
-
Middlewares
- Middleware to log request and response
- Middleware for requestId
- Middleware to store user context into Redis cache
-
Healthcheck
- Create liveness route
- Create readyness route
- Check Redis instance availability
- Check WS (syca) availability
-
Unit/integration tests
-
Swagger
-
Security
- BouncyCastle equivalent
-
Metrics
- Prometheus
-
Docker
-
Continious integration
- Drone or Jenkins :)
-
Benchmark
- AWT vs Node