Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save marcusviniciusfa/609c76f9421e71d9bc280c0303cf83dd to your computer and use it in GitHub Desktop.

Select an option

Save marcusviniciusfa/609c76f9421e71d9bc280c0303cf83dd to your computer and use it in GitHub Desktop.
notifications-service_request-collection
{
"log":{
"version":"1.2",
"creator":{
"name":"Insomnia REST Client",
"version":"insomnia.desktop.app:v2022.7.0"
},
"entries":[
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":19.64,
"request":{
"method":"POST",
"url":"http://localhost:3000/notifications",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"Content-Type",
"value":"application/json"
}
],
"queryString":[
],
"postData":{
"mimeType":"application/json",
"text":"{\n\t\"recipientId\": \"f3453340-9d0a-4077-a9df-db0de9dbf3ec\",\n\t\"content\": \"qqqqqq\",\n\t\"category\": \"www\"\n}",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":201,
"statusText":"Created",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"151"
},
{
"name":"ETag",
"value":"W/\"97-x7KJYoWrgflzA9kWjKz6SN9isv4\""
},
{
"name":"Date",
"value":"Thu, 15 Dec 2022 19:51:03 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":151,
"mimeType":"application/json; charset=utf-8",
"text":"{\"notification\":{\"id\":\"69de5cd9-a537-4f29-8839-d72bd3de232b\",\"content\":\"qqqqqq\",\"category\":\"www\",\"recipientId\":\"4f053544-dfa8-4536-8e9d-07084355e0c5\"}}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":19.64,
"receive":0,
"ssl":-1
},
"comment":"create"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":26.378,
"request":{
"method":"PATCH",
"url":"http://localhost:3000/notifications/69de5cd9-a537-4f29-8839-d72bd3de232b/cancel",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"OK",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Date",
"value":"Thu, 15 Dec 2022 20:04:46 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
},
{
"name":"Content-Length",
"value":"0"
}
],
"content":{
"size":0,
"mimeType":"",
"text":""
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":26.378,
"receive":0,
"ssl":-1
},
"comment":"cancel"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":22.615,
"request":{
"method":"PATCH",
"url":"http://localhost:3000/notifications/69de5cd9-a537-4f29-8839-d72bd3de232b/read",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"OK",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Date",
"value":"Thu, 15 Dec 2022 20:05:03 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
},
{
"name":"Content-Length",
"value":"0"
}
],
"content":{
"size":0,
"mimeType":"",
"text":""
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":22.615,
"receive":0,
"ssl":-1
},
"comment":"read"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":45.668,
"request":{
"method":"PATCH",
"url":"http://localhost:3000/notifications/69de5cd9-a537-4f29-8839-d72bd3de232b/unread",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"OK",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Date",
"value":"Thu, 15 Dec 2022 20:09:35 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
},
{
"name":"Content-Length",
"value":"0"
}
],
"content":{
"size":0,
"mimeType":"",
"text":""
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":45.668,
"receive":0,
"ssl":-1
},
"comment":"unread"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":31.455,
"request":{
"method":"GET",
"url":"http://localhost:3000/notifications/count/from/4f053544-dfa8-4536-8e9d-07084355e0c5",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"OK",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"11"
},
{
"name":"ETag",
"value":"W/\"b-qA97yBec1rrOyf2eVsYdWwFPOso\""
},
{
"name":"Date",
"value":"Thu, 15 Dec 2022 20:11:29 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":11,
"mimeType":"application/json; charset=utf-8",
"text":"{\"count\":1}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":31.455,
"receive":0,
"ssl":-1
},
"comment":"count from recipient"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":22.403,
"request":{
"method":"GET",
"url":"http://localhost:3000/notifications/from/4f053544-dfa8-4536-8e9d-07084355e0c5",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"OK",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"154"
},
{
"name":"ETag",
"value":"W/\"9a-YBqncU6Fr1STHQpovwfBUxBWfwo\""
},
{
"name":"Date",
"value":"Thu, 15 Dec 2022 20:12:25 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":154,
"mimeType":"application/json; charset=utf-8",
"text":"{\"notifications\":[{\"id\":\"69de5cd9-a537-4f29-8839-d72bd3de232b\",\"content\":\"qqqqqq\",\"category\":\"www\",\"recipientId\":\"4f053544-dfa8-4536-8e9d-07084355e0c5\"}]}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":22.403,
"receive":0,
"ssl":-1
},
"comment":"get from recipient"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":758.081,
"request":{
"method":"GET",
"url":"https://gjqcjg4ic7.execute-api.us-east-1.amazonaws.com/prod/products",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"content-type",
"value":"application/json"
},
{
"name":"content-length",
"value":"31"
},
{
"name":"date",
"value":"Sat, 03 Dec 2022 21:35:44 GMT"
},
{
"name":"x-amzn-requestid",
"value":"6629820b-c6cb-4ce9-90ff-6be0f5d6153c"
},
{
"name":"x-amz-apigw-id",
"value":"clsfhFAAoAMF6Mg="
},
{
"name":"x-amzn-trace-id",
"value":"Root=1-638bc12f-2528cb5a77a1da0611a64543;Sampled=0"
},
{
"name":"x-cache",
"value":"Miss from cloudfront"
},
{
"name":"via",
"value":"1.1 c59efe844fd614ff20a756172908fed0.cloudfront.net (CloudFront)"
},
{
"name":"x-amz-cf-pop",
"value":"GRU1-C1"
},
{
"name":"x-amz-cf-id",
"value":"Wyu0EGWjVeUH14mD9HanEv3k1JgERC47uEJgNBvN5NHoMFTB0LohWg=="
}
],
"content":{
"size":31,
"mimeType":"application/json",
"text":"{\"message\":\"GET Products - OK\"}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":758.081,
"receive":0,
"ssl":-1
},
"comment":"find products"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":434.113,
"request":{
"method":"GET",
"url":"https://gjqcjg4ic7.execute-api.us-east-1.amazonaws.com/prod/products/1",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"content-type",
"value":"application/json"
},
{
"name":"content-length",
"value":"30"
},
{
"name":"date",
"value":"Sat, 03 Dec 2022 21:35:49 GMT"
},
{
"name":"x-amzn-requestid",
"value":"15de6a9a-4c5e-4adc-806d-38278a8fadc8"
},
{
"name":"x-amz-apigw-id",
"value":"clsgUHIXIAMFVEQ="
},
{
"name":"x-amzn-trace-id",
"value":"Root=1-638bc135-2a37a41612d5419245bef3f1;Sampled=0"
},
{
"name":"x-cache",
"value":"Miss from cloudfront"
},
{
"name":"via",
"value":"1.1 c59efe844fd614ff20a756172908fed0.cloudfront.net (CloudFront)"
},
{
"name":"x-amz-cf-pop",
"value":"GRU1-C1"
},
{
"name":"x-amz-cf-id",
"value":"Z6nED-8zLZrqM1ziRYtJ0e2I2C8jilKG7Gegw1y9ItZHwBSf3-HSMg=="
}
],
"content":{
"size":30,
"mimeType":"application/json",
"text":"{\"message\":\"GET Product - OK\"}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":434.113,
"receive":0,
"ssl":-1
},
"comment":"find product"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":977.2180000000001,
"request":{
"method":"POST",
"url":"https://gjqcjg4ic7.execute-api.us-east-1.amazonaws.com/prod/products",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":201,
"statusText":"",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"content-type",
"value":"application/json"
},
{
"name":"content-length",
"value":"32"
},
{
"name":"date",
"value":"Sat, 03 Dec 2022 21:35:35 GMT"
},
{
"name":"x-amzn-requestid",
"value":"bd2d827d-a4e0-40a0-8f3a-54614b71449e"
},
{
"name":"x-amz-apigw-id",
"value":"clseNFOooAMFzHA="
},
{
"name":"x-amzn-trace-id",
"value":"Root=1-638bc127-505cc11e28909def4ca1a37b;Sampled=0"
},
{
"name":"x-cache",
"value":"Miss from cloudfront"
},
{
"name":"via",
"value":"1.1 c59efe844fd614ff20a756172908fed0.cloudfront.net (CloudFront)"
},
{
"name":"x-amz-cf-pop",
"value":"GRU1-C1"
},
{
"name":"x-amz-cf-id",
"value":"3BZPVQYHCpg4oXhPhkPLZF_LZ1Ld9TLSNay39fqTX35VNNyzM9Cjkg=="
}
],
"content":{
"size":32,
"mimeType":"application/json",
"text":"{\"message\":\"POST Products - OK\"}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":977.2180000000001,
"receive":0,
"ssl":-1
},
"comment":"create product"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":194.432,
"request":{
"method":"PUT",
"url":"https://gjqcjg4ic7.execute-api.us-east-1.amazonaws.com/prod/products/1",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"content-type",
"value":"application/json"
},
{
"name":"content-length",
"value":"30"
},
{
"name":"date",
"value":"Sat, 03 Dec 2022 21:35:54 GMT"
},
{
"name":"x-amzn-requestid",
"value":"1e916542-7481-447b-af57-c02f92d8f4ae"
},
{
"name":"x-amz-apigw-id",
"value":"clshIGi7oAMFQ1A="
},
{
"name":"x-amzn-trace-id",
"value":"Root=1-638bc13a-424b26b57195f1360efdf5c2;Sampled=0"
},
{
"name":"x-cache",
"value":"Miss from cloudfront"
},
{
"name":"via",
"value":"1.1 c59efe844fd614ff20a756172908fed0.cloudfront.net (CloudFront)"
},
{
"name":"x-amz-cf-pop",
"value":"GRU1-C1"
},
{
"name":"x-amz-cf-id",
"value":"HPrN_wu2OTXrNVS8dUZFo86kaQfl71K8jUZovM_CnLblYUhpn_Ekgw=="
}
],
"content":{
"size":30,
"mimeType":"application/json",
"text":"{\"message\":\"PUT Product - OK\"}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":194.432,
"receive":0,
"ssl":-1
},
"comment":"update product"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":414.59200000000004,
"request":{
"method":"DELETE",
"url":"https://gjqcjg4ic7.execute-api.us-east-1.amazonaws.com/prod/products/1",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":204,
"statusText":"",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"date",
"value":"Sat, 03 Dec 2022 21:35:59 GMT"
},
{
"name":"x-amzn-requestid",
"value":"4803a49b-c9c4-4a8d-8a8a-512e62b8b821"
},
{
"name":"x-amz-apigw-id",
"value":"clsh9FxVoAMFo4A="
},
{
"name":"x-amzn-trace-id",
"value":"Root=1-638bc13f-5190bc7837091fef7cf1c893;Sampled=0"
},
{
"name":"x-cache",
"value":"Miss from cloudfront"
},
{
"name":"via",
"value":"1.1 c59efe844fd614ff20a756172908fed0.cloudfront.net (CloudFront)"
},
{
"name":"x-amz-cf-pop",
"value":"GRU1-C1"
},
{
"name":"x-amz-cf-id",
"value":"nIdbjraxn96GJbRV-kiypeeaQDRfDhmz9yln-jtS-TAceUp7PaAMJQ=="
}
],
"content":{
"size":0,
"mimeType":"",
"text":""
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":414.59200000000004,
"receive":0,
"ssl":-1
},
"comment":"delete product"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":93.38000000000001,
"request":{
"method":"POST",
"url":"http://localhost:3000/roles",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"Content-Type",
"value":"application/json"
}
],
"queryString":[
],
"postData":{
"mimeType":"application/json",
"text":"{\n\t\"name\": \"adm11\"\n}",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":400,
"statusText":"Bad Request",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Access-Control-Allow-Origin",
"value":"*"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"50"
},
{
"name":"ETag",
"value":"W/\"32-X4kk8MWxFdrR/qJSQK3TMeyYHRU\""
},
{
"name":"Date",
"value":"Sun, 27 Nov 2022 00:15:07 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":50,
"mimeType":"application/json; charset=utf-8",
"text":"{\"status\":\"error\",\"message\":\"Role already exists\"}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":93.38000000000001,
"receive":0,
"ssl":-1
},
"comment":"create"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":14.133,
"request":{
"method":"GET",
"url":"http://localhost:3000/roles?page=1&limit=10",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"OK",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Access-Control-Allow-Origin",
"value":"*"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"1119"
},
{
"name":"ETag",
"value":"W/\"45f-DUS6IG1gmQmtg/EzgmM9+3Hj1Ng\""
},
{
"name":"Date",
"value":"Sun, 27 Nov 2022 03:10:42 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":1119,
"mimeType":"application/json; charset=utf-8",
"text":"{\"per_page\":10,\"current_page\":1,\"total\":11,\"data\":[{\"id\":\"66aea603-39f8-47bd-b844-1416727f2688\",\"created_at\":\"2022-11-21T02:42:20.353Z\",\"name\":\"adm121\"},{\"id\":\"fc01c20c-6fd0-4f03-a4cf-749b1a58564f\",\"created_at\":\"2022-11-21T02:47:11.905Z\",\"name\":\"content manager 2\"},{\"id\":\"0db9b630-8c9a-418b-9370-eab58ce4d2da\",\"created_at\":\"2022-11-21T02:49:16.631Z\",\"name\":\"content manager 3\"},{\"id\":\"4169a502-a63b-4a13-8e5e-d28f89f70d27\",\"created_at\":\"2022-11-21T03:48:26.851Z\",\"name\":\"content manager 4\"},{\"id\":\"e32c79c2-d4c7-4014-9c23-c1949b2f1474\",\"created_at\":\"2022-11-21T03:48:30.380Z\",\"name\":\"content manager 5\"},{\"id\":\"abf23165-79e9-4687-8f6a-0c2c0db5e460\",\"created_at\":\"2022-11-21T03:48:34.115Z\",\"name\":\"content manager 6\"},{\"id\":\"7b73d514-fc9e-4d60-96fb-befd1f9cc388\",\"created_at\":\"2022-11-25T21:13:14.607Z\",\"name\":\"adm3\"},{\"id\":\"29ebace3-2873-4054-9f8d-e77bd0cf1083\",\"created_at\":\"2022-11-25T21:14:07.834Z\",\"name\":\"adm4\"},{\"id\":\"3e84fa28-2e87-40a3-a6af-8b1333d05ea8\",\"created_at\":\"2022-11-26T09:58:17.561Z\",\"name\":\"adm5\"},{\"id\":\"fe7bf986-42b0-478c-bf06-d7e1f5260451\",\"created_at\":\"2022-11-26T11:04:01.426Z\",\"name\":\"adm6\"}]}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":14.133,
"receive":0,
"ssl":-1
},
"comment":"findAll"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":12.963000000000001,
"request":{
"method":"GET",
"url":"http://localhost:3000/roles/66aea603-39f8-47bd-b844-1416727f268",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":400,
"statusText":"Bad Request",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Access-Control-Allow-Origin",
"value":"*"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"139"
},
{
"name":"ETag",
"value":"W/\"8b-e5QkZukhyHvANLdCFRnSxLTshUk\""
},
{
"name":"Date",
"value":"Sun, 27 Nov 2022 00:25:30 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":139,
"mimeType":"application/json; charset=utf-8",
"text":"{\"status\":\"error\",\"message\":\"data/id must match pattern \\\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\\\"\"}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":12.963000000000001,
"receive":0,
"ssl":-1
},
"comment":"findOne"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":40.899,
"request":{
"method":"PUT",
"url":"http://localhost:3000/roles/",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"Content-Type",
"value":"application/json"
}
],
"queryString":[
],
"postData":{
"mimeType":"application/json",
"text":"{\n\t\"name\": \"adm121\"\n}",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":404,
"statusText":"Not Found",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Access-Control-Allow-Origin",
"value":"*"
},
{
"name":"Content-Security-Policy",
"value":"default-src 'none'"
},
{
"name":"X-Content-Type-Options",
"value":"nosniff"
},
{
"name":"Content-Type",
"value":"text/html; charset=utf-8"
},
{
"name":"Content-Length",
"value":"145"
},
{
"name":"Date",
"value":"Sun, 27 Nov 2022 01:11:30 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":145,
"mimeType":"text/html; charset=utf-8",
"text":"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot PUT /roles/</pre>\n</body>\n</html>\n"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":40.899,
"receive":0,
"ssl":-1
},
"comment":"update"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":23.299,
"request":{
"method":"DELETE",
"url":"http://localhost:3000/roles",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":404,
"statusText":"Not Found",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Access-Control-Allow-Origin",
"value":"*"
},
{
"name":"Content-Security-Policy",
"value":"default-src 'none'"
},
{
"name":"X-Content-Type-Options",
"value":"nosniff"
},
{
"name":"Content-Type",
"value":"text/html; charset=utf-8"
},
{
"name":"Content-Length",
"value":"147"
},
{
"name":"Date",
"value":"Sun, 27 Nov 2022 01:09:22 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":147,
"mimeType":"text/html; charset=utf-8",
"text":"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot DELETE /roles</pre>\n</body>\n</html>\n"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":23.299,
"receive":0,
"ssl":-1
},
"comment":"delete"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":1.5839999999999999,
"request":{
"method":"GET",
"url":"http://localhost:3000/projects",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":200,
"statusText":"OK",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"199"
},
{
"name":"ETag",
"value":"W/\"c7-LOYXptAcpJ1Z+b3fopG+0UppM3Y\""
},
{
"name":"Date",
"value":"Sat, 12 Nov 2022 06:05:38 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":199,
"mimeType":"application/json; charset=utf-8",
"text":"[{\"id\":\"9300da88-1069-4297-b04d-4b75f3a3016e\",\"name\":\"APIs NodeJS com TypeScript\",\"owner\":\"Marcus\"},{\"id\":\"0636d051-21c7-4886-81bd-80c92310b12d\",\"name\":\"APIs NodeJS com TypeScript\",\"owner\":\"Marcus\"}]"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":1.5839999999999999,
"receive":0,
"ssl":-1
},
"comment":"findAll"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":0,
"request":{
"method":"GET",
"url":"http://localhost:3000/projects",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":0,
"statusText":"",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"content":{
"size":0,
"mimeType":""
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":0,
"receive":0,
"ssl":-1
},
"comment":"findOne"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":2.322,
"request":{
"method":"POST",
"url":"http://localhost:3000/projects",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"Content-Type",
"value":"application/json"
}
],
"queryString":[
],
"postData":{
"mimeType":"application/json",
"text":"{\n\t\"name\": \"APIs NodeJS com TypeScript\",\n\t\"owner\": \"Marcus\"\n}",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":201,
"statusText":"Created",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"98"
},
{
"name":"ETag",
"value":"W/\"62-hQ1zizE22ttJ+c/hFadciXkR2BM\""
},
{
"name":"Date",
"value":"Sat, 12 Nov 2022 06:05:12 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":98,
"mimeType":"application/json; charset=utf-8",
"text":"{\"id\":\"0636d051-21c7-4886-81bd-80c92310b12d\",\"name\":\"APIs NodeJS com TypeScript\",\"owner\":\"Marcus\"}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":2.322,
"receive":0,
"ssl":-1
},
"comment":"add"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":2.4090000000000003,
"request":{
"method":"DELETE",
"url":"http://localhost:3000/projects/246e6410-e826-4ada-aa9c-750c16b243f2",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
],
"queryString":[
],
"postData":{
"mimeType":"",
"text":"",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":204,
"statusText":"No Content",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Date",
"value":"Sat, 12 Nov 2022 06:05:35 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":0,
"mimeType":"",
"text":""
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":2.4090000000000003,
"receive":0,
"ssl":-1
},
"comment":"remove"
},
{
"startedDateTime":"2022-12-15T23:30:23.277Z",
"time":6.9239999999999995,
"request":{
"method":"PUT",
"url":"http://localhost:3000/projects/246e6410-e826-4ada-aa9c-750c16b243f2",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"Content-Type",
"value":"application/json"
}
],
"queryString":[
],
"postData":{
"mimeType":"application/json",
"text":"{\n\t\"name\": \"Test\",\n\t\"owner\": \"Vinicius\"\n}",
"params":[
]
},
"headersSize":-1,
"bodySize":-1,
"settingEncodeUrl":true
},
"response":{
"status":404,
"statusText":"Not Found",
"httpVersion":"HTTP/1.1",
"cookies":[
],
"headers":[
{
"name":"X-Powered-By",
"value":"Express"
},
{
"name":"Content-Type",
"value":"application/json; charset=utf-8"
},
{
"name":"Content-Length",
"value":"29"
},
{
"name":"ETag",
"value":"W/\"1d-WrCC67h8kPllBnfhIr0fj6r5tX0\""
},
{
"name":"Date",
"value":"Sat, 12 Nov 2022 05:41:46 GMT"
},
{
"name":"Connection",
"value":"keep-alive"
},
{
"name":"Keep-Alive",
"value":"timeout=5"
}
],
"content":{
"size":29,
"mimeType":"application/json; charset=utf-8",
"text":"{\"error\":\"Project not found\"}"
},
"redirectURL":"",
"headersSize":-1,
"bodySize":-1
},
"cache":{
},
"timings":{
"blocked":-1,
"dns":-1,
"connect":-1,
"send":0,
"wait":6.9239999999999995,
"receive":0,
"ssl":-1
},
"comment":"updateAllFields"
}
]
}
}
{
"_type":"export",
"__export_format":4,
"__export_date":"2022-12-15T23:29:58.875Z",
"__export_source":"insomnia.desktop.app:v2022.7.0",
"resources":[
{
"_id":"req_a05d99c7b04c4f898beb1e3cf6879dba",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1671146964627,
"created":1670983156351,
"url":"{{ _.base_url }}/notifications",
"name":"create",
"description":"",
"method":"POST",
"body":{
"mimeType":"application/json",
"text":"{\n\t\"recipientId\": \"{% uuid 'v4' %}\",\n\t\"content\": \"qqqqqq\",\n\t\"category\": \"www\"\n}"
},
"parameters":[
],
"headers":[
{
"name":"Content-Type",
"value":"application/json"
}
],
"authentication":{
},
"metaSortKey":-1670983006340,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"wrk_29293414b0b145789c038b0d8c1eb310",
"parentId":null,
"modified":1671146758584,
"created":1670982995364,
"name":"notifications-service",
"description":"",
"scope":"collection",
"_type":"workspace"
},
{
"_id":"req_359468aa44294218b07b349b9de58a6d",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1671146798822,
"created":1671133506054,
"url":"{{ _.base_url }}/notifications/{% response 'body', 'req_a05d99c7b04c4f898beb1e3cf6879dba', 'b64::JC5ub3RpZmljYXRpb24uaWQ=::46b', 'no-history', 60 %}/cancel",
"name":"cancel",
"description":"",
"method":"PATCH",
"body":{
},
"parameters":[
],
"headers":[
],
"authentication":{
},
"metaSortKey":-1670983006290,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"req_a6dbb6f4e03e40f4a686f4cfece8732f",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1671146801283,
"created":1671134696342,
"url":"{{ _.base_url }}/notifications/{% response 'body', 'req_a05d99c7b04c4f898beb1e3cf6879dba', 'b64::JC5ub3RpZmljYXRpb24uaWQ=::46b', 'no-history', 60 %}/read",
"name":"read",
"description":"",
"method":"PATCH",
"body":{
},
"parameters":[
],
"headers":[
],
"authentication":{
},
"metaSortKey":-1670983006240,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"req_7c029723d52d4fb6a3d2e07b613998fc",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1671146803711,
"created":1671134717443,
"url":"{{ _.base_url }}/notifications/{% response 'body', 'req_a05d99c7b04c4f898beb1e3cf6879dba', 'b64::JC5ub3RpZmljYXRpb24uaWQ=::46b', 'no-history', 60 %}/unread",
"name":"unread",
"description":"",
"method":"PATCH",
"body":{
},
"parameters":[
],
"headers":[
],
"authentication":{
},
"metaSortKey":-1670983006190,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"req_93ab86eaab1f45c1a353705de5e26536",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1671146805469,
"created":1671134891951,
"url":"{{ _.base_url }}/notifications/count/from/{% response 'body', 'req_a05d99c7b04c4f898beb1e3cf6879dba', 'b64::JC5ub3RpZmljYXRpb24ucmVjaXBpZW50SWQ=::46b', 'never', 60 %}",
"name":"count from recipient",
"description":"",
"method":"GET",
"body":{
},
"parameters":[
],
"headers":[
],
"authentication":{
},
"metaSortKey":-1670983006140,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"req_314e938c6d2e422f9bcec042c41e5e48",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1671146806987,
"created":1671135127212,
"url":"{{ _.base_url }}/notifications/from/{% response 'body', 'req_a05d99c7b04c4f898beb1e3cf6879dba', 'b64::JC5ub3RpZmljYXRpb24ucmVjaXBpZW50SWQ=::46b', 'never', 60 %}",
"name":"get from recipient",
"description":"",
"method":"GET",
"body":{
},
"parameters":[
],
"headers":[
],
"authentication":{
},
"metaSortKey":-1670983006090,
"isPrivate":false,
"settingStoreCookies":true,
"settingSendCookies":true,
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingRebuildPath":true,
"settingFollowRedirects":"global",
"_type":"request"
},
{
"_id":"env_6c3fcd96aa5fdb80aec997c9bbc05c97f775376e",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1670983054553,
"created":1670982995368,
"name":"Base Environment",
"data":{
},
"dataPropertyOrder":{
},
"color":null,
"isPrivate":false,
"metaSortKey":1670982995368,
"_type":"environment"
},
{
"_id":"env_839aa825979314698ae3aa1bd73bd947ad34091f",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1670983054553,
"created":1670982995368,
"name":"Base Environment",
"data":{
},
"dataPropertyOrder":{
},
"color":null,
"isPrivate":false,
"metaSortKey":1670982995368,
"_type":"environment"
},
{
"_id":"jar_6c3fcd96aa5fdb80aec997c9bbc05c97f775376e",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1670982995369,
"created":1670982995369,
"name":"Default Jar",
"cookies":[
],
"_type":"cookie_jar"
},
{
"_id":"spc_202f5dccc0414d14997a96a093574500",
"parentId":"wrk_29293414b0b145789c038b0d8c1eb310",
"modified":1670982995365,
"created":1670982995365,
"fileName":"ignite-lab-nodejs",
"contents":"",
"contentType":"yaml",
"_type":"api_spec"
},
{
"_id":"env_53703a17bf87481690c9351a459d1c0d",
"parentId":"env_839aa825979314698ae3aa1bd73bd947ad34091f",
"modified":1671146932550,
"created":1670983047827,
"name":"Development",
"data":{
"base_url":"http://localhost:3000"
},
"dataPropertyOrder":{
"&":[
"base_url"
]
},
"color":"#7d69cb",
"isPrivate":false,
"metaSortKey":1670983047827,
"_type":"environment"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment