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
b11efe33
Commit
b11efe33
authored
Apr 14, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed info endpoint to general-info
parent
1759ddf9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
13 deletions
+16
-13
ApiSpecification.md
Breeze.Documentation/ApiSpecification.md
+2
-2
Wallet.postman_collection.json
...Api.Tests/Postman requests/Wallet.postman_collection.json
+6
-3
WalletController.cs
Breeze/src/Breeze.Wallet/Controllers/WalletController.cs
+3
-3
WalletGeneralInfoModel.cs
Breeze/src/Breeze.Wallet/Models/WalletGeneralInfoModel.cs
+3
-3
IWalletWrapper.cs
Breeze/src/Breeze.Wallet/Wrappers/IWalletWrapper.cs
+1
-1
WalletWrapper.cs
Breeze/src/Breeze.Wallet/Wrappers/WalletWrapper.cs
+1
-1
No files found.
Breeze.Documentation/ApiSpecification.md
View file @
b11efe33
...
...
@@ -54,7 +54,7 @@ This error message comes at all request if the wallet is not loaded yet, except
## Key Management
```
GET /wallet/general - Displays general information on the wallet
GET /wallet/general
-info
- Displays general information on the wallet
GET /wallet/sensitive - Displays sensitive information on the wallet
GET /wallet/status - Displays dynamic information on the wallet
POST /wallet/create - Creates the wallet
...
...
@@ -86,7 +86,7 @@ POST /wallet/send-transaction - Attempts to send a transaction
# Details
## GET /wallet/general - Displays general information on the wallet
## GET /wallet/general
-info
- Displays general information on the wallet
### Responses
```
{
...
...
Breeze/src/Breeze.Api.Tests/Postman requests/Wallet.postman_collection.json
View file @
b11efe33
...
...
@@ -2,7 +2,7 @@
"variables"
:
[],
"info"
:
{
"name"
:
"Wallet"
,
"_postman_id"
:
"
88e42ac6-4e01-8ec4-c109-12a07b8722de
"
,
"_postman_id"
:
"
25ac0bc5-23f5-e00d-932f-a8fde7787e7a
"
,
"description"
:
"Requests relating to operations on the wallet"
,
"schema"
:
"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
...
...
@@ -90,7 +90,7 @@
{
"name"
:
"Get wallet Info"
,
"request"
:
{
"url"
:
"http://localhost:5000/api/v1/wallet/info?name=mywallet"
,
"url"
:
"http://localhost:5000/api/v1/wallet/
general-
info?name=mywallet"
,
"method"
:
"GET"
,
"header"
:
[
{
...
...
@@ -199,7 +199,10 @@
"description"
:
""
}
],
"body"
:
{},
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
""
},
"description"
:
"Gets all the wallets files stored in the default folder"
},
"response"
:
[]
...
...
Breeze/src/Breeze.Wallet/Controllers/WalletController.cs
View file @
b11efe33
...
...
@@ -135,9 +135,9 @@ namespace Breeze.Wallet.Controllers
/// </summary>
/// <param name="model">The name of the wallet.</param>
/// <returns></returns>
[
Route
(
"info"
)]
[
Route
(
"
general-
info"
)]
[
HttpGet
]
public
IActionResult
GetInfo
([
FromQuery
]
WalletName
model
)
public
IActionResult
Get
General
Info
([
FromQuery
]
WalletName
model
)
{
// checks the request is valid
if
(!
this
.
ModelState
.
IsValid
)
...
...
@@ -148,7 +148,7 @@ namespace Breeze.Wallet.Controllers
try
{
return
this
.
Json
(
this
.
walletWrapper
.
GetInfo
(
model
.
Name
));
return
this
.
Json
(
this
.
walletWrapper
.
Get
General
Info
(
model
.
Name
));
}
catch
(
Exception
e
)
...
...
Breeze/src/Breeze.Wallet/Models/WalletInfoModel.cs
→
Breeze/src/Breeze.Wallet/Models/Wallet
General
InfoModel.cs
View file @
b11efe33
...
...
@@ -6,10 +6,10 @@ using Newtonsoft.Json;
namespace
Breeze.Wallet.Models
{
public
class
WalletInfoModel
public
class
Wallet
General
InfoModel
{
[
JsonProperty
(
PropertyName
=
"
f
ilePath"
)]
public
string
FilePath
{
get
;
set
;
}
[
JsonProperty
(
PropertyName
=
"
walletF
ilePath"
)]
public
string
Wallet
FilePath
{
get
;
set
;
}
[
JsonProperty
(
PropertyName
=
"encryptedSeed"
)]
public
string
EncryptedSeed
{
get
;
set
;
}
...
...
Breeze/src/Breeze.Wallet/Wrappers/IWalletWrapper.cs
View file @
b11efe33
...
...
@@ -17,7 +17,7 @@ namespace Breeze.Wallet.Wrappers
WalletModel
Recover
(
string
password
,
string
folderPath
,
string
name
,
string
network
,
string
mnemonic
);
Wallet
InfoModel
Get
Info
(
string
walletName
);
Wallet
GeneralInfoModel
GetGeneral
Info
(
string
walletName
);
WalletBalanceModel
GetBalance
(
string
walletName
);
...
...
Breeze/src/Breeze.Wallet/Wrappers/WalletWrapper.cs
View file @
b11efe33
...
...
@@ -70,7 +70,7 @@ namespace Breeze.Wallet.Wrappers
};
}
public
Wallet
InfoModel
Get
Info
(
string
name
)
public
Wallet
GeneralInfoModel
GetGeneral
Info
(
string
name
)
{
throw
new
System
.
NotImplementedException
();
}
...
...
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