Skip to content

klajbard/serverless-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless GO Crud playground

Go functions interacting with DynamoDB to satisfy CRUD Rest API requests

Examples

Get All

curl 'https://@functionid.execute-api.eu-central-1.amazonaws.com/dev/animals' \
  -H 'content-type: application/json;charset=UTF-8'

PUT

curl -X PUT 'https://@functionid.execute-api.eu-central-1.amazonaws.com/dev/animal' \
  -H 'authorization: Bearer @auth-token' \
  -H 'content-type: application/json;charset=UTF-8' \
  --data-raw '{"name":"Fickó","description":"Nagyon csibész kutyus","status":true,"breed":"Keverék","birth":1676211491}'

Get

curl 'https://@functionid.execute-api.eu-central-1.amazonaws.com/dev/animal?id=003' \
  -H 'content-type: application/json;charset=UTF-8'

Delete

curl -X DELETE 'https://@functionid.execute-api.eu-central-1.amazonaws.com/dev/animal?id=003' \
  -H 'authorization: Bearer @auth-token' \
  -H 'content-type: application/json;charset=UTF-8'

Patch

curl -X PATCH 'https://@functionid.execute-api.eu-central-1.amazonaws.com/dev/animal?id=003' \
  -H 'authorization: Bearer @auth-token' \
  -H 'content-type: application/json;charset=UTF-8'
  --data-raw '{"status":false}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published