nodejs-authentication/app/v1/public/demo/nodejs-simple-authentication-v1.0.0.postman_collection.json
2025-03-11 10:51:27 +00:00

341 lines
6.9 KiB
JSON

{
"info": {
"_postman_id": "c02b2433-4fa7-4c96-a786-86b057d85440",
"name": "nodejs-simple-authentication-v1.0.0",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "18302721"
},
"item": [
{
"name": "auth",
"item": [
{
"name": "127.0.0.1:1010/v1/auth/signup",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"email\": \"demo@andrealmeida.net\",\n\t\"password\": \"Ab123456_?\",\n \"confirm_password\": \"Ab123456_?\"\n}"
},
"url": {
"raw": "127.0.0.1:1010/v1/auth/signup",
"host": [
"127",
"0",
"0",
"1"
],
"port": "1010",
"path": [
"v1",
"auth",
"signup"
]
},
"description": "Signup"
},
"response": []
},
{
"name": "127.0.0.1:1010/v1/auth/signin",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"auth_token\", jsonData.result.auth.token);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "Ab123456_?",
"type": "string"
},
{
"key": "username",
"value": "demo@andrealmeida.net",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "127.0.0.1:1010/v1/auth/signin",
"host": [
"127",
"0",
"0",
"1"
],
"port": "1010",
"path": [
"v1",
"auth",
"signin"
]
},
"description": "Signi"
},
"response": []
},
{
"name": "127.0.0.1:1010/v1/auth/requestpassword",
"event": [
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "",
"type": "string"
},
{
"key": "username",
"value": "",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"demo@andrealmeida.net\"\n}"
},
"url": {
"raw": "127.0.0.1:1010/v1/auth/requestpassword",
"host": [
"127",
"0",
"0",
"1"
],
"port": "1010",
"path": [
"v1",
"auth",
"requestpassword"
]
},
"description": "Signi"
},
"response": []
},
{
"name": "127.0.0.1:1010/v1/auth/recoverpassword",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"auth_token\", jsonData.result.auth.token);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "",
"type": "string"
},
{
"key": "username",
"value": "",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"recover_token\": \"2aeca380-2d5b-11ef-9104-b5963c8087bf_1718705505\",\n \"email\": \"demo@andrealmeida.net\",\n \"password\": \"Ab123456_?\",\n \"confirm_password\": \"Ab123456_?\"\n}"
},
"url": {
"raw": "127.0.0.1:1010/v1/auth/recoverpassword",
"host": [
"127",
"0",
"0",
"1"
],
"port": "1010",
"path": [
"v1",
"auth",
"recoverpassword"
]
},
"description": "Signi"
},
"response": []
},
{
"name": "127.0.0.1:1010/v1/auth/changepassword",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"auth_token\", jsonData.result.auth.token);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "",
"type": "string"
},
{
"key": "username",
"value": "",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "auth_token",
"value": "{{auth_token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"demo@andrealmeida.net\",\n \"password\": \"yurML3GjA82qxEKtZnRY$wT\",\n \"confirm_password\": \"yurML3GjA82qxEKtZnRY$wT\"\n}"
},
"url": {
"raw": "127.0.0.1:1010/v1/auth/changepassword",
"host": [
"127",
"0",
"0",
"1"
],
"port": "1010",
"path": [
"v1",
"auth",
"changepassword"
]
},
"description": "Signi"
},
"response": []
},
{
"name": "127.0.0.1:1010/v1/auth/deleteaccount",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "3fef4d95f3507668dc4535a3805f3abaafadb2d82b51d2f95ee4f0562807ea1b3885b6f4c1f67deb5fbe8f9624dcfbe0",
"type": "string"
}
]
},
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "auth_token",
"value": "{{auth_token}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "127.0.0.1:1010/v1/auth/deleteaccount",
"host": [
"127",
"0",
"0",
"1"
],
"port": "1010",
"path": [
"v1",
"auth",
"deleteaccount"
]
}
},
"response": []
}
]
}
]
}