Fully serverless CAPTCHA API created with API Gateway, Lambda, Dynamodb and Go

Overview

Lambcha

Fully serverless CAPTCHA API

diagram

Usage

Send a GET request to the endpoint

{
    "id": "20EcBHVy66sV6FV4KGbCWGnZjz3",
    "imageUrl": "endpoint/20EcBHVy66sV6FV4KGbCWGnZjz3"
}

Application shows the image hosted at the imageUrl and the user enters the code they see.

Example image:

code

The application sends a POST request with the details

{
    "id": "20EcBHVy66sV6FV4KGbCWGnZjz3",
    "code": "RJBGB6"
}

API returns an HTTP code with a message for the response.

HTTP 200
{
    "message": "OK"
}
HTTP 400
{
    "message": "INCORRECT"
}

TODO

  • improve api gateway error response formatting
  • secure behind api keys
  • make image length scale to code length automagically
  • return 404 for expired items that still exist in dynamodb
  • generate TTS files on demand using Amazon Polly
You might also like...
A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.
A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

GinGoExample - Implement rest api using gin and go and mongodb

GinGoExample Implement rest api using gin and go and mongodb Optimizations using Singlton pattern to avoid repetetive commiunication with mongodb . Fe

Go (Golang) API REST with Gin FrameworkGo (Golang) API REST with Gin Framework

go-rest-api-aml-service Go (Golang) API REST with Gin Framework 1. Project Description Build REST APIs to support AML service with the support of exte

Rental-api - A RESTful-API that allows developers to connect to data about rental properties

Rentals-API is a RESTful-API that allows developers to connect to data about rental properties.

Ecommerce-api - Rest api of e-commerce web application
Ecommerce-api - Rest api of e-commerce web application

E-commerce Rest API Swagger documentation to test api Domain diagram

License-API - Basic license based authentication API with discord account integration

License-API Basic license based authentication API with discord account integrat

Api-go-gin-viper - Simple representaion on how to implement CRUD functionality in API using Go programming language

Simple API implementaion in Go To Get Started Clone repo Run the command to clon

Simple vanilla Go CRUD application with mongoDB database with its mflix dataset that I use for my thesis about benchmarking REST API and GraphQL.

Go GraphQL Simple vanilla Go CRUD application with mongoDB database with its mflix dataset that I use for my thesis about benchmarking REST API and Gr

A social media API to handle users and their posts, written from scratch in Golang
A social media API to handle users and their posts, written from scratch in Golang

Initial Set-Up To start the project on your own machine you'll need Golang instlled, along with mongoDB. Once you've insured these requirements are me

Owner
Brad
Software engineer that likes AWS, Node and Go
Brad
A fully functional Ecommerce API in GO GIN Framework and mongoDB with JWT Authentication

Fully functional ECOMMERCE API USING GIN FRAMEWORK AND MONGODB -----Initial Release v2.30 ⚠️ Not tested the efficiency project structure Ecommerce ??

Joseph Hermis 20 Dec 11, 2022
A real-time serverless chat application with Go and Vue 3

sls-chat-app A real-time serverless chat application with Go and Vue 3. For the

James Kirk 16 Jul 17, 2022
E-commerce-project - RESTFUL API for TakTuku an E-Commerce App created for the purpose of study

About The Project RESTFUL API for TakTuku an E-Commerce App created for the purp

Muhamad Hilmi Hibatullah 2 Jul 23, 2022
A fully-featured REST API developed in Golang for an online book store.

A fully-featured REST API developed in Golang for an online book store.

Raphael Collin 15 Oct 20, 2022
A fully-featured REST API developed in Golang for an online book store.

E-book Store A fully-featured REST API developed in Golang for an online book store. API Documentation Features Authentication (Sign up, Login and Res

Raphael Collin 15 Oct 20, 2022
This is application for Book Keeping which implements fully-fledged REST API

This is application for Book Keeping which implements fully-fledged REST API #We are using Gorilla Mux

null 0 Dec 28, 2021
A collection of themes created by the Hugo community

Hugo themes A collection of themes created by the Hugo community. Builds to themes.gohugo.io. Having questions? Have a look at the FAQ first. Adding a

GoHugo.io 142 Dec 17, 2022
GoTrue is a small open-source API written in Golang, that can act as a self-standing API service for handling user registration and authentication for Jamstack projects.

GoTrue is a small open-source API written in Golang, that can act as a self-standing API service for handling user registration and authentication for Jamstack projects.

null 2 Dec 13, 2021
Go-todo-api - An example API project written Go and Fiber Framework

This is an example API project written Go and Fiber Framework. Test codes has been written for all controller functions. Environment variables are taken from config.yml.

Muhammed Doğan 1 Jan 24, 2022
Go-gin-mongo-api - A backend RESTful API built using golang, gin and mongoDB

go-gin-mongo-API This is a RESTful backend API which is developed using the gola

Humbe Jeffrey 6 Jul 19, 2022