Skip to content

About

Database Auditing using Prisma

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

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": "foo@example.com", "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

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages