Skip to content

Commit

Permalink
[LazaroRaul] refs fibercrypto#24 Create initial specification for end…
Browse files Browse the repository at this point in the history
…point [api] Explorer URL
  • Loading branch information
e1Ru1o committed Feb 26, 2019
1 parent 4798854 commit 9c89154
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion LazaroRaul_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ paths:
signedTransaction:
type: string
description: The signed transaction returned by the [POST] /api/sign.

responses:
'200': # status code
description: Error code.
Expand All @@ -66,6 +66,34 @@ paths:
default:
$ref : '#/components/schemas/genericError'

/api/addresses/{address}/explorer-url:
get:
summary: Return one or many blockchain explorer URLs.
description: Should return one or many blockchain explorer URLs for the given address.
security:
- CsrfTokenAuth: []

parameters:
- name: address
in: path
description: Address for find blockchain explorer URLs
required: true
schema:
type: string

responses:
'200':
description: Blockchain explorer URL for the given address
content:
application/json:
schema:
type: array
items:
type: string
default:
$ref : '#/components/schemas/genericError'


# To remember :
# Every post method should use security schema.
# Feel free to use and reuse components
Expand Down

0 comments on commit 9c89154

Please sign in to comment.