Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
09435caa
Commit
09435caa
authored
Apr 13, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added postman test request for getWalletsFiles
parent
6e3e2d7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
7 deletions
+37
-7
Wallet.postman_collection.json
...Api.Tests/Postman requests/Wallet.postman_collection.json
+32
-6
WalletController.cs
Breeze/src/Breeze.Wallet/Controllers/WalletController.cs
+5
-1
No files found.
Breeze/src/Breeze.Api.Tests/Postman requests/Wallet.postman_collection.json
View file @
09435caa
...
@@ -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
Breeze/src/Breeze.Wallet/Controllers/WalletController.cs
View file @
09435caa
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment