Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imnotannamaria/nestjs-ds-micro-service
Microservice using DDD software design with tests.
https://github.com/imnotannamaria/nestjs-ds-micro-service
jest nestjs prisma
Last synced: about 10 hours ago
JSON representation
Microservice using DDD software design with tests.
- Host: GitHub
- URL: https://github.com/imnotannamaria/nestjs-ds-micro-service
- Owner: imnotannamaria
- Created: 2024-02-19T00:16:57.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-19T20:25:08.000Z (9 months ago)
- Last Synced: 2024-02-19T22:37:14.809Z (9 months ago)
- Topics: jest, nestjs, prisma
- Language: TypeScript
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 💻 Project features
- create a notification
- set a notification as read
- set notifiation as unread
- get all notification from recipient id
- get the count of notification from recipient id## 🎫 ROUTES
### CREATE NOTIFICATION
POST `http://localhost:3000/notifications/`
Create a new notification in the database.
##### BODY
```
{
"recipientId": "bd0d1551-f826-42f0-92d5-33c2c182ed56",
"content": "Just a test",
"category": "social"
}
```### READ A NOTIFICATION
Set a notification as read in the database.
PATCH `http://localhost:3000/notifications/recipientIdHere/read`
### UNREAD A NOTIFICATION
Set a notification as unread in the database.
PATCH `http://localhost:3000/notifications/recipientIdHere/unread`
### CANCEL A NOTIFICATION
Remove the notification created at date.
PATCH `http://localhost:3000/notifications/recipientIdHere/cancel`
### COUNT OF NOTIFICATION
Returns the count of all notification in the database.
GET `http://localhost:3000/notifications/count/from/recipientIdHere`
### GET NOTIFICATION BY RECIPIENT ID
Return a notification by recipient id.
GET `http://localhost:3000/notifications/from/recipientIdHere`