You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by ki...@apache.org on 2019/08/30 05:43:37 UTC
[incubator-milagro-dta] branch bugfix_btcopenApi updated (5c0f75e
-> 4e3ed42)
This is an automated email from the ASF dual-hosted git repository.
kittohoward pushed a change to branch bugfix_btcopenApi
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-dta.git.
from 5c0f75e illegal whitespace in yaml
new e474508 fixes bitcoinwallet open api
new 4e3ed42 fixes bitcoinwallet open api
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
pkg/bitcoinplugin/open-api.yaml | 109 ++++++----------------------------------
1 file changed, 15 insertions(+), 94 deletions(-)
[incubator-milagro-dta] 01/02: fixes bitcoinwallet open api
Posted by ki...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kittohoward pushed a commit to branch bugfix_btcopenApi
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-dta.git
commit e4745086e264f267fa65ea089cd7941ba9f0f4dc
Author: howardkitto <ki...@gmail.com>
AuthorDate: Fri Aug 30 06:32:05 2019 +0100
fixes bitcoinwallet open api
---
pkg/bitcoinplugin/open-api.yaml | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/pkg/bitcoinplugin/open-api.yaml b/pkg/bitcoinplugin/open-api.yaml
index 7066aae..0b5de9b 100644
--- a/pkg/bitcoinplugin/open-api.yaml
+++ b/pkg/bitcoinplugin/open-api.yaml
@@ -21,8 +21,7 @@ paths:
type: object
properties:
beneficiaryIDDocumentCID:
- type: string
- example: QmfWg5GffUEzwahd9hkvdnqTGQs5PfusoEpx3kSDSdG4ze
+ type: string
extension:
type: object
properties:
@@ -117,11 +116,9 @@ paths:
type: object
properties:
orderReference:
- type: string
- example: 087a8a28-c420-11e9-b960-acde48001122
+ type: string
beneficiaryIDDocumentCID:
- type: string
- example: QmfWg5GffUEzwahd9hkvdnqTGQs5PfusoEpx3kSDSdG4ze
+ type: string
responses:
'200':
description: Succesful Operation
@@ -143,16 +140,17 @@ components:
OrderResponse:
type: object
properties:
- orderPart1CID:
- type: string
- orderPart2CID:
- type: string
orderReference:
type: string
commitment:
type: string
createdAt:
type: string
+ extension:
+ type: object
+ properties:
+ address:
+ type: string
OrderListResponse:
type: object
properties:
@@ -179,11 +177,14 @@ components:
type: string
orderReference:
type: string
+ extension:
+ type: object
+ properties:
+ address:
+ type: string
tags:
- name: order
description: Communication between Principals and Master Fiduciaries
externalDocs:
url: 'https://milagro.apache.org/docs/milagro-intro/'
- description: Apache Milagro Docs
-
-
+ description: Apache Milagro Docs
\ No newline at end of file
[incubator-milagro-dta] 02/02: fixes bitcoinwallet open api
Posted by ki...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kittohoward pushed a commit to branch bugfix_btcopenApi
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-dta.git
commit 4e3ed42e472096290bf9dbcb0b6c9e999d8c8fcc
Author: howardkitto <ki...@gmail.com>
AuthorDate: Fri Aug 30 06:43:24 2019 +0100
fixes bitcoinwallet open api
---
pkg/bitcoinplugin/open-api.yaml | 88 ++---------------------------------------
1 file changed, 4 insertions(+), 84 deletions(-)
diff --git a/pkg/bitcoinplugin/open-api.yaml b/pkg/bitcoinplugin/open-api.yaml
index 0b5de9b..92d8f9b 100644
--- a/pkg/bitcoinplugin/open-api.yaml
+++ b/pkg/bitcoinplugin/open-api.yaml
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: Apache Milagro D-TA Bitcoin Plugin
- description: Returns a Bitcoin Address
+ description: Returns a Bitcoin Address. This specification only shows endpoints that vary from the standard Milagro REST API
contact:
email: dev@milagro.apache.org
license:
@@ -26,7 +26,7 @@ paths:
type: object
properties:
coin:
- type: string
+ type: string
example: "0"
responses:
'200':
@@ -40,70 +40,7 @@ paths:
content:
text/plain:
schema:
- type: string
- get:
- summary: Get a list of orders managed by this D-TA
- tags:
- - order
- parameters:
- - name: page
- in: query
- description: current page
- schema:
- type: integer
- default: 0
- - name: perPage
- in: query
- description: number of items to show
- schema:
- type: integer
- default: 10
- - name: sortBy
- in: query
- description: Sort By field. Prefix with "-" for descending
- schema:
- type: string
- enum:
- - dateCreatedAsc
- - dateCreatedDesc
- responses:
- '200':
- description: Succesful Operation
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/OrderListResponse'
- '400':
- description: Invalid Request
- content:
- text/plain:
- schema:
- type: string
- /v1/order/{OrderReference}:
- get:
- summary: Get details of an order
- tags:
- - order
- parameters:
- - name: OrderReference
- in: path
- description: Reference for a single order
- required: true
- schema:
- type: string
- responses:
- '200':
- description: Succesful Operation
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GetOrderResponse'
- '400':
- description: Invalid Request
- content:
- text/plain:
- schema:
- type: string
+ type: string
/v1/order/secret:
post:
summary: Returns the Bitcoin secret key that can be used to sign transactions
@@ -150,24 +87,7 @@ components:
type: object
properties:
address:
- type: string
- OrderListResponse:
- type: object
- properties:
- orderReference:
- type: array
- items:
- type: string
- GetOrderResponse:
- type: object
- properties:
- order:
- type: object
- properties:
- order:
- type: string
- timeStamp:
- type: integer
+ type: string
OrderSecretResponse:
type: object
properties: