Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lagcleaner specs #28

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions lagcleaner_specs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
openapi: 3.0.0
info:
title: Python to .Net
description: Still whitout description.
version: 0.25.1
servers:
- url: 'http://www.skycoin.net'
description: Main Skycoin server
- url: 'http://staging.node.skycoin.net'
description: Internal staging server for developer.
components:
securitySchemes:
CsrfTokenAuth:
type: apiKey
in: header
name: X-CSRF-TOKEN
schemas:
genericError:
description: This is a generic error that should be default response
type: object
properties:
code:
type: integer
format: int64
message:
type: string
paths:
# - 16
/api/transactions/history/to/{address}/observation:
post:
parameters:
- in: path
name: address
required: true
schema:
type: string
description: Address to which funds are transferred.

summary: Starts observation of the transactions.

description: Should starts observation of the transactions that transfer fund to the address, and affect the result of the [GET] /api/transactions/history/to/{address}.

security:
- CsrfTokenAuth: []

responses:
'200':
description: Successfully stored in observation list.

default:
$ref: '#/components/schemas/genericError'
# - 17
/api/transactions/history/from/{address}/observation:
post:
parameters:
- in: path
name: address
required: true
schema:
type: string
description: Address from which funds are transferred.

summary: Starts observation of the transactions.

description: Should starts observation of the transactions that transfer fund from the address, and affect the result of the [GET] /api/transactions/history/from/{address}.

security:
- CsrfTokenAuth: []

responses:
'200':
description: Successfully stored in observation list.

default:
$ref: '#/components/schemas/genericError'
# - 18
/api/transactions/broadcast/{operationId}:
delete:
parameters:
- in: path
name: operationId
required: true
schema:
type: string
description: Specified transaction from the broadcasted transactions.

summary: Remove an specified transaction from the broadcasted transactions.

description: Should remove specified transaction from the broadcasted transactions, and affect transactions returned by the [GET] /api/transactions/broadcast/{operatioId}.

security:
- CsrfTokenAuth: []

responses:
'200':
description: Successfully removed from broadcasted transactions list.

default:
$ref: '#/components/schemas/genericError'