Skip to content

Commit

Permalink
Change TAP protocol 'status', rename it to 'delivery_status' (because…
Browse files Browse the repository at this point in the history
… it's 'delivery_status' and can't be confused with tap-gw 'status' field for the message) (#17)
  • Loading branch information
Arkadiy Korotaev authored and monkeypants committed Apr 29, 2017
1 parent 046bdd5 commit 3546008
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
20 changes: 10 additions & 10 deletions docs/2.0/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ausdigital-idp/1 | Version 1 of the [AusDigtial](http://ausdigital.org) [IDP](ht
Copyright (c) 2016 the Editor and Contributors. All rights reserved.

This Specification is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software Foundation;
terms of the GNU General Public License as published by the Free Software Foundation;
either version 3 of the License, or (at your option) any later version.

This Specification is distributed in the hope that it will be useful, but WITHOUT ANY
Expand Down Expand Up @@ -80,7 +80,7 @@ protocol specified in this document. The TAP is an autonomous agent in business-
document exchange.

A TAP might be provided by a commercial ledger service, or maintained as part of an
independent business system.
independent business system.

The TAP specification has two parts. The main part (ausdigital-tap/2) defines the protocol all peers
must follow (and interfaces they must provide) to send and receive business documents. The
Expand All @@ -98,9 +98,9 @@ repository. Future semantic payloads may be supported without change to the prot

All TAPs depend on the following Services:

* ausdigital-dcl/1
* ausdigital-dcp/1
* ausdigital-nry/1
* ausdigital-dcl/1
* ausdigital-dcp/1
* ausdigital-nry/1

TAPGW providers also depend on the
ausdigital-idp/1. TAPs do not need to
Expand Down Expand Up @@ -131,7 +131,7 @@ When a valid message is received, the TAP issues an HTTP 200 status and returns
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX",
"attributes": {
"uuid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX",
"status": "in_transit"
"deliveryStatus": "in_transit"
}
}
}
Expand All @@ -142,7 +142,7 @@ See the TAP Protocol Details chapter for more information.

# TAP Protocol Details

The TAP Protocol is a very simple REST API. One business sends a message directly to another business' TAP endpoint (discovered via the DCP):
The TAP Protocol is a very simple REST API. One business sends a message directly to another business TAP endpoint (discovered via the DCP):

* The sender uses the HTTP POST verb (over HTTPS) to send the signed message to a TAP.
* The TAP replies with a HATEOS-style list of callback URLs.
Expand Down Expand Up @@ -300,8 +300,8 @@ if __name__ == "__main__":
```
{
"cyphertext": "string",
"hash": "string",
"sender": "string",
"hash": "string",
"sender": "string",
"reference": "string"
}
```
Expand Down Expand Up @@ -354,7 +354,7 @@ TODO:

* explain callback URLs
* explain callback semantic URLs


# Related Material

Expand Down
36 changes: 17 additions & 19 deletions docs/2.0/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"title":"Transaction Access Point (TAP) protocol interfaces",
"description":"The \"Transaction Access Point\" (TAP) specification defines a standard protocol for RESTful exchange of e-business documents between ledger systems"
},
"schemes":[
"schemes": [
"https"
],
"basePath":"/",
"produces":[
"produces": [
"application/json"
],
"securityDefinitions":{
"JWTToken":{
"type":"apiKey",
"name":"Authorization",
"description":"JWT token value prepended by JWT, for example: JWT XXXXX.YYYYYYYYYYYYYYYYYYYYYYY.ZZZZZZ You can get your JWT for testpoint.io services at https://idp.testpoint.io/.",
"description":"JWT prepended by `JWT` string, for example: `JWT XXX`. You can get your JWT for testpoint.io services at https://idp.testpoint.io/.",
"in":"header"
}
},
Expand All @@ -25,31 +25,31 @@
"name":"tapURL",
"in":"path",
"description":"Any TAP URL.",
"required":true,
"required": true,
"type":"string"
},
"message":{
"name":"message",
"in":"formData",
"description":"The message file. Must be a valid json document. Shema - https://github.com/ausdigital/ausdigital-tap/blob/master/docs/2.0/schema.json",
"required":true,
"required": true,
"type":"file"
},
"signature":{
"name":"signature",
"in":"formData",
"description":"The signature file. Must have .sig extension.",
"required":true,
"description":"The signature file.",
"required": true,
"type":"file"
},
"contentTypeMPHeader":{
"name":"Content-Type",
"in":"header",
"description":"content type multipart/form-data header",
"required":true,
"required": true,
"type":"string",
"default":"multipart/form-data",
"enum":[
"enum": [
"multipart/form-data"
]
}
Expand Down Expand Up @@ -95,23 +95,21 @@
"paths":{
"/{tapURL}":{
"post":{
"tags":[
"tags": [
"TAP message"
],
"summary":"Post TAP message to any TAP URL",
"summary":"Post TAP message to given TAP URL",
"description":"Post TAP message. Payload must be a TAP message with a signature. TAP URL could be any valid URL",
"operationId":"postTAPMessage",
"consumes":[
"consumes": [
"multipart/form-data"
],
"security":[
"security": [
{
"JWTToken":[

]
"JWTToken": []
}
],
"parameters":[
"parameters": [
{
"$ref":"#/parameters/tapURL"
},
Expand Down Expand Up @@ -142,7 +140,7 @@
"$ref":"#/definitions/TAPMessageData"
},
"examples":{
"application/json":"{\n \"data\": {\n \"type\": \"TapMessage\",\n \"id\": \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX\",\n \"attributes\": {\n \"uuid\": \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX\",\n \"status\": \"in_transit\"\n }\n }\n}"
"application/json":"{\n \"data\":{\n \"type\": \"TapMessage\",\n \"id\": \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX\",\n \"attributes\":{\n \"uuid\": \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX\",\n \"deliveryStatus\": \"in_transit\"\n }\n }\n}"
}
},
"400":{
Expand Down Expand Up @@ -192,7 +190,7 @@
"status":{
"type":"string",
"description":"The Message status, one of the four values is allowed.",
"enum":[
"enum": [
"processing",
"in_transit",
"sent",
Expand Down

0 comments on commit 3546008

Please sign in to comment.