This is a basic HTTP API server. An easy way to get started with Node.js server.
# Download this project
git clone https://github.com/superstruct-tech/http_server
# Build and Run
cd
npm install
npm start
# API Endpoint : http://127.0.0.1:3000
GET
: Returns "hello"
GET
: Returns User-Agent String
GET
: Returns a part of endpoint comming after 'b64/' encoded to base64 format
POST
: Returns repeated words count from the article
Request body:
{ "text": "I felt happy because I saw the others were happy and because I knew I should feel happy"}
Response body:
[{"word": "happy", "count": 3}]