-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
24 lines (24 loc) · 1.32 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"name": "simple-sendgrid-mock-server",
"version": "2.3.0",
"description": "Simple Sendgrid Mock Server",
"main": "server.js",
"scripts": {
"start": "node server",
"lint": "prettier server.js --write",
"sample-request": "curl -X POST -H 'Authorization: Bearer secret' -H \"Content-Type: application/json\" -d '{\"personalizations\": [{\"to\": [{\"email\": \"example@example.com\"}]}],\"from\": {\"email\": \"example@example.com\"},\"subject\": \"Hello, World!\",\"content\": [{\"type\": \"text/plain\", \"value\": \"Heya!\"}]}' http://localhost:3030/v3/mail/send",
"sample-request-with-file": "curl -X POST -H 'Authorization: Bearer secret' -H \"Content-Type: application/json\" -d '{\"personalizations\": [{\"to\": [{\"email\": \"example@example.com\"}]}],\"from\": {\"email\": \"example@example.com\"},\"subject\": \"Hello, World!\",\"content\": [{\"type\": \"text/plain\", \"value\": \"Request with file!\"}], \"attachments\": [{\"content\": \"aGVsbG8K\", \"type\": \"text/plain\", \"filename\": \"attachment.txt\"}]}' http://localhost:3030/v3/mail/send"
},
"author": "yudppp",
"license": "MIT",
"dependencies": {
"body-parser": "^1.20.1",
"cookie-parser": "^1.4.3",
"express": "^4.18.2",
"express-session": "^1.15.6",
"pug": "^3.0.1"
},
"devDependencies": {
"prettier": "^1.15.3"
}
}