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
7dcaa7b5
Commit
7dcaa7b5
authored
Mar 28, 2017
by
Jeremy Bokobza
Committed by
GitHub
Mar 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added versioning (#5)
* Rename Safe to Wallet * Added versioning to the Api
parent
d3b95586
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
6 deletions
+12
-6
Safe.postman_collection.json
...e.Api.Tests/Postman requests/Safe.postman_collection.json
+4
-4
NodeController.cs
Breeze/src/Breeze.Api/Controllers/NodeController.cs
+2
-1
Startup.cs
Breeze/src/Breeze.Api/Startup.cs
+2
-0
project.json
Breeze/src/Breeze.Api/project.json
+1
-0
WalletController.cs
Breeze/src/Breeze.Wallet/Controllers/WalletController.cs
+2
-1
project.json
Breeze/src/Breeze.Wallet/project.json
+1
-0
No files found.
Breeze/src/Breeze.Api.Tests/Postman requests/Safe.postman_collection.json
View file @
7dcaa7b5
...
...
@@ -10,7 +10,7 @@
{
"name"
:
"Create wallet - success"
,
"request"
:
{
"url"
:
"http://localhost:5000/api/wallet/"
,
"url"
:
"http://localhost:5000/api/
v1/
wallet/"
,
"method"
:
"POST"
,
"header"
:
[
{
...
...
@@ -30,7 +30,7 @@
{
"name"
:
"Create wallet - validation errors"
,
"request"
:
{
"url"
:
"http://localhost:5000/api/wallet/"
,
"url"
:
"http://localhost:5000/api/
v1/
wallet/"
,
"method"
:
"POST"
,
"header"
:
[
{
...
...
@@ -50,7 +50,7 @@
{
"name"
:
"Load wallet"
,
"request"
:
{
"url"
:
"http://localhost:5000/api/wallet/?password=123456&folderPath=MyWallets&name=myFirstWallet"
,
"url"
:
"http://localhost:5000/api/
v1/
wallet/?password=123456&folderPath=MyWallets&name=myFirstWallet"
,
"method"
:
"GET"
,
"header"
:
[
{
...
...
@@ -70,7 +70,7 @@
{
"name"
:
"Recover wallet"
,
"request"
:
{
"url"
:
"http://localhost:5000/api/wallet/recover"
,
"url"
:
"http://localhost:5000/api/
v1/
wallet/recover"
,
"method"
:
"POST"
,
"header"
:
[
{
...
...
Breeze/src/Breeze.Api/Controllers/NodeController.cs
View file @
7dcaa7b5
...
...
@@ -2,7 +2,8 @@
namespace
Breeze.Api.Controllers
{
[
Route
(
"api/[controller]"
)]
[
ApiVersion
(
"1.0"
)]
[
Route
(
"api/v{version:apiVersion}/[controller]"
)]
public
class
NodeController
:
Controller
{
[
Route
(
"connect"
)]
...
...
Breeze/src/Breeze.Api/Startup.cs
View file @
7dcaa7b5
...
...
@@ -28,6 +28,8 @@ namespace Breeze.Api
// add serializers for NBitcoin objects
.
AddJsonOptions
(
options
=>
NBitcoin
.
JsonConverters
.
Serializer
.
RegisterFrontConverters
(
options
.
SerializerSettings
))
.
AddControllers
(
services
);
services
.
AddApiVersioning
();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
...
...
Breeze/src/Breeze.Api/project.json
View file @
7dcaa7b5
{
"dependencies"
:
{
"Microsoft.AspNetCore.Mvc"
:
"1.1.2"
,
"Microsoft.AspNetCore.Mvc.Versioning"
:
"1.0.3"
,
"Microsoft.AspNetCore.Routing"
:
"1.1.1"
,
"Microsoft.AspNetCore.Server.IISIntegration"
:
"1.1.1"
,
"Microsoft.AspNetCore.Server.Kestrel"
:
"1.1.1"
,
...
...
Breeze/src/Breeze.Wallet/Controllers/WalletController.cs
View file @
7dcaa7b5
...
...
@@ -11,7 +11,8 @@ using Stratis.Bitcoin;
namespace
Breeze.Wallet.Controllers
{
[
Route
(
"api/[controller]"
)]
[
ApiVersion
(
"1.0"
)]
[
Route
(
"api/v{version:apiVersion}/[controller]"
)]
public
class
WalletController
:
Controller
{
private
readonly
IWalletWrapper
walletWrapper
;
...
...
Breeze/src/Breeze.Wallet/project.json
View file @
7dcaa7b5
...
...
@@ -3,6 +3,7 @@
"dependencies"
:
{
"HBitcoin"
:
"0.1.5"
,
"Microsoft.AspNetCore.Mvc.Versioning"
:
"1.0.3"
,
"NBitcoin"
:
"3.0.2.10"
,
"NETStandard.Library"
:
"1.6.1"
,
"Stratis.Bitcoin"
:
"1.0.1.2-alpha"
...
...
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