Skip to content

slmnsh/prisma-audit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prisma Auditing

This example is for database audit logs

Users are idenfied based on Authorization headers

Setup

npm install

Running Server

npm run dev

Making Requests

List Users

curl localhost:3000/users

Create User

curl localhost:3000/users \
-X POST \
-H "Authorization: Bearer foo" \
-H "Content-Type: application/json" \
-d '{ "email": "[email protected]", "name": "John Doe" }'

Update User

curl localhost:3000/users/1 \
-X PATCH \
-H "Authorization: Bearer foo" \
-H "Content-Type: application/json" \
-d '{ "name": "Jane Doe" }'

Delete User

curl localhost:3000/users/1 \
-X DELETE \
-H "Authorization: Bearer foo"

About

Database Auditing using Prisma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published