Skip to content

fauna-labs/REST_serverless_fql_10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Serverless API with Fauna

This project provides a serverless API for managing an inventory system, built with AWS Lambda and Fauna. It allows basic CRUD operations on inventory items including creation, reading, updating, and deletion.

Following the tutorial for this project here.

Requirements

Setup

  • Clone the repository
  • Install dependencies with npm install
  • Setup Fauna account and create a database

Usage

The API provides the following endpoints:

  • Create Inventory Item: POST / - Adds a new item to the inventory.

  • Read All Inventory Items: GET / - Retrieves all items from the inventory.

  • Read Specific Inventory Item: GET /{id} - Retrieves a specific item by its ID.

  • Update Inventory Item: PUT /{id} - Updates the details of a specific item.

  • Delete Inventory Item: DELETE /{id} - Removes an item from the inventory.

Local Development

serverless offline

Deployment

serverless deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published