Skip to content

SonyVansha/apps-friends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Friends System Data

Backend - API Setup

The root folder for backend projects is backend.

Lambda Setup

All dependencies required by each Lambda function are located in the backend/layer folder and are bundled into a layer with name lks-layer, dont forget to attach the layer into lambda function.

Name Code Source Description
lks-token src/token.js This function is used to generate token and userId. It uses a maximum of 128MB of memory and has a maximum execution time of 5 seconds.
lks-read-friends src/lib, src/friendRead.js This function is used to display friends data from the database dynamodb. It uses a maximum of 128MB of memory and has a maximum execution time of 5 seconds.
lks-write-friends src/lib, src/friendWrite.js This function is used to save, update and delete friends data to the database dynamodb. It uses a maximum of 256MB of memory and has a maximum execution time of 5 seconds.

The following is a table of REST API endpoints required:

Resource Method CORS Service Type Execution
/friend POST Yes Lambda lks-write-friends
/friend GET Yes Lambda lks-read-friends
/friend PUT Yes Lambda lks-write-friends
/friend/{id} DELETE Yes Lambda lks-write-friends
/friend/{id} GET Yes Lambda lks-read-friends

API Endpoint

You can check the API endpoint documentation in here

About

LKS Cloud Computing KITS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published