Code examples for following post:
- Install Node.js
- Open cmd.exe and navigate to project's folder.
- Install project dependencies with following command
npm install
Run project with following command
npm start
There are several functionalities implemented in the stub. See linked posts for more details how to use them.
Database where you can add, get or remove persons with JSON showing RESTful web services functionality described in blog post. GET endpoints are: http://localhost:3000/person/all, http://localhost:3000/person/get/{id}, http://localhost:3000/person/remove. POST endpoint is: http://localhost:3000/person/save.
http://localhost:3000/api/version returns a configuration value that is read from external config file.