/soap-restify-example

Simple REST services to demonstrate some use cases of SOAP service calls from restify

Primary LanguageJavaScript

soap-restify-example

Simple REST services to demonstrate some use cases of SOAP service calls from restify

Installation

$ npm i

Start server

$ npm run start-dev

Api

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

Testing

Run test

$ npm test

Docker

Build image:

$ docker build -t soap-restify-example  .

Run container

$ docker run --rm -d -e LISTEN_ADDR=0.0.0.0:8080 -p 8080:8080 soap-restify-example:latest

To do

  • 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