Skip to content

(Prototype) API for interacting with Wagglenet's DynamoDB and Cognito infra

Notifications You must be signed in to change notification settings

WaggleNet/WaggleNetCloudAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WaggleNet Cloud API

API infrastructure to interact with AWS services (e.g DynamoDB and Cognito).

Requirements

Package requirements are specified in the src_src[:exports code]{requirements.txt}. You will also need to create a .env configuration file with the necessary AWS access keys/information.

--- /.env ---
COGNITO_CLIENT_ID=XXXXX

AWS_ACCESS_KEY_ID=XXXXX
AWS_SECRET_ACCESS_KEY=XXXX

These parameters are supplied fed into the script at startup by Flask’s dotenv implementation.

Functions

This API has auth capabilities to register/login users, such that an access key can be obtained to either make a request to DynamoDB or to make an authenticated request to the DynamoDB functions of this API. The endpoints have been segregated below into Cognito and DynamoDB functions.

Cognito

User Registration

Self-explanatory.

  • Endpoint: src_src[:exports code]{/signup}.
  • Methods: POST
  • Argument format: Send username/password in Auth header.
  • Other notes: username must be an email. Password must have 8 chars minimum, >=1 uppercase letter, >=1 number, >=1 special symbol. A character can be consecutively repeated a maximum of 2 times.

About

(Prototype) API for interacting with Wagglenet's DynamoDB and Cognito infra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages