Commit 09435caa authored by Jeremy Bokobza's avatar Jeremy Bokobza

Added postman test request for getWalletsFiles

parent 6e3e2d7f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"variables": [], "variables": [],
"info": { "info": {
"name": "Wallet", "name": "Wallet",
"_postman_id": "c9001498-0a8d-e095-7b3e-ba9f2b0df7e7", "_postman_id": "88e42ac6-4e01-8ec4-c109-12a07b8722de",
"description": "Requests relating to operations on the wallet", "description": "Requests relating to operations on the wallet",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
}, },
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
{ {
"name": "Create wallet - success", "name": "Create wallet - success",
"request": { "request": {
"url": "http://localhost:5000/api/v1/wallet/", "url": "http://localhost:5000/api/v1/wallet/create",
"method": "POST", "method": "POST",
"header": [ "header": [
{ {
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
{ {
"name": "Create wallet - validation errors", "name": "Create wallet - validation errors",
"request": { "request": {
"url": "http://localhost:5000/api/v1/wallet/", "url": "http://localhost:5000/api/v1/wallet/create",
"method": "POST", "method": "POST",
"header": [ "header": [
{ {
...@@ -99,7 +99,10 @@ ...@@ -99,7 +99,10 @@
"description": "" "description": ""
} }
], ],
"body": {}, "body": {
"mode": "raw",
"raw": ""
},
"description": "" "description": ""
}, },
"response": [] "response": []
...@@ -116,7 +119,10 @@ ...@@ -116,7 +119,10 @@
"description": "" "description": ""
} }
], ],
"body": {}, "body": {
"mode": "raw",
"raw": ""
},
"description": "" "description": ""
}, },
"response": [] "response": []
...@@ -133,7 +139,10 @@ ...@@ -133,7 +139,10 @@
"description": "" "description": ""
} }
], ],
"body": {}, "body": {
"mode": "raw",
"raw": ""
},
"description": "" "description": ""
}, },
"response": [] "response": []
...@@ -177,6 +186,23 @@ ...@@ -177,6 +186,23 @@
"description": "" "description": ""
}, },
"response": [] "response": []
},
{
"name": "Get wallets files",
"request": {
"url": "http://localhost:5000/api/v1/wallet/files",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {},
"description": "Gets all the wallets files stored in the default folder"
},
"response": []
} }
] ]
} }
\ No newline at end of file
...@@ -303,8 +303,12 @@ namespace Breeze.Wallet.Controllers ...@@ -303,8 +303,12 @@ namespace Breeze.Wallet.Controllers
} }
} }
/// <summary>
/// Get the default folder in which the wallets will be stored.
/// </summary>
/// <returns>The folder path for Windows, Linux or OSX systems.</returns>
private string GetDefaultFolderPath() private string GetDefaultFolderPath()
{ {
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{ {
return $@"{Environment.GetEnvironmentVariable("AppData")}\Breeze"; return $@"{Environment.GetEnvironmentVariable("AppData")}\Breeze";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment