A stateless micro-service in Node, which implements Authentication, JSON patching and Image Thumbnail Generation.
index.docker.io/ioedeveloper/micro-service:latest
- install node.js
- clone repository
- run
npm installto download and install all application dependencies. - run
npm startto start application on port 8001
- Make a POST request to http://localhost:8001/login with request body containing
usernameandpasswordto generate JSON Web Token for subsequent requests to protected routes. - Make a PATCH request to http://localhost:8001/applyjsonpatch with request body containing
jsonobjectand ajsonpatchobjectto apply patch to jsonobject and return result. - Make a POST request to http://localhost:8001/createthumbnail with request body containing
urlpointing to a public image. This request if successfull will resize the image and return a 50X50 thumbnail image.