Wires-API-AUTH
Closed this issue · 1 comments
NubeDev commented
- Add auth end point
- Add an end point for backing up the nodes database
See postman docs
{
"info": {
"_postman_id": "1f706d09-e7e3-42a6-aeea-2bf8495364cd",
"name": "WIRES-API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "ADD-USER",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"admin\",\n \"password\": \"N00BWires\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1313/api/auth/user",
"protocol": "http",
"host": [
"localhost"
],
"port": "1313",
"path": [
"api",
"auth",
"user"
]
}
},
"response": []
},
{
"name": "LOGIN",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"admin\",\n \"password\": \"N00BWires\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1313/api/auth/login",
"protocol": "http",
"host": [
"localhost"
],
"port": "1313",
"path": [
"api",
"auth",
"login"
]
}
},
"response": []
},
{
"name": "NODE-BACKUP",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWF0IjoxNjA4NjY2NjExLCJleHAiOjE2MDg2ODQ2MTF9.v_xSAGlAYO8lDIMdkQE3OUsArUczNLpacCJzWG6-Qjs",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:1313/api/platform/wires/download/nodes",
"protocol": "http",
"host": [
"localhost"
],
"port": "1313",
"path": [
"api",
"platform",
"wires",
"download",
"nodes"
]
}
},
"response": []
}
]
}
RaiBnod commented
Already done!