I’ve published an example web API built with ExpressJS. Check the documentation for detailed getting started and usage instructions, the source code is available on GitHub; the TLDR (quick-start) is as follows…

Clone

mkdir -vp ~/git/hub/web-dev-examples

cd ~/git/hub/web-dev-examples

git clone git@github.com:web-dev-examples/api-list-path

Install Dependencies

cd ~/git/hub/web-dev-examples/api-list-path

npm install

Usage

Start the server via NPM run target…

npm run start

With a web-browser navigate to http://localhost:8080 for example front-end interaction.

Or use Curl to send HTTP POST requests…

curl --data 'path=.' --url 'http://localhost:8080/list'