Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Example NodeJS

Example NodeJS serverless application.

Table Of Contents

Overview

NodeJS express app.

Endpoints

HTTP API.
GET requests pass data via URL query parameters.
All other HTTP methods pass data via JSON encoded bodies.
Responses are JSON formatted.

GET /time

Request: None

Response:

  • epoch (Number): Unix time

POST /calculate/add

Request:

  • lhs (Number): First number to add
  • rhs (Number): Second number to add

Response:

  • result (Number): Numbers added together

GET /health

Request: None

Response:

  • ok (Boolean): Indicates if server is okay

About

Example NodeJS serverless application.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages