Commit 1e4e4b36 authored by Ino Murko's avatar Ino Murko Committed by GitHub

Inomurko/fix openapi spec for dtl (#2547)

* valid openapi

* integer format

* 64 bit integer in requests
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent c2291926
...@@ -10,9 +10,11 @@ components: ...@@ -10,9 +10,11 @@ components:
type: object type: object
properties: properties:
blockNumber: blockNumber:
type: uint64 type: integer
format: "int64"
timestamp: timestamp:
type: uint64 type: integer
format: "int64"
blockHash: blockHash:
type: string type: string
EnqueueEntry: EnqueueEntry:
...@@ -131,22 +133,22 @@ components: ...@@ -131,22 +133,22 @@ components:
StateRootEntry: StateRootEntry:
type: object type: object
properties: properties:
index: index:
type: number type: number
batchIndex: batchIndex:
type: number type: number
value: value:
type: string type: string
StateRootResponse: StateRootResponse:
type: object type: object
properties: properties:
batch: batch:
type: object type: object
$ref: '#/components/schemas/BatchEntry' $ref: '#/components/schemas/BatchEntry'
stateRoot: stateRoot:
type: object type: object
$ref: '#/components/schemas/StateRootEntry' $ref: '#/components/schemas/StateRootEntry'
StateRootBatchResponse: StateRootBatchResponse:
type: object type: object
...@@ -178,9 +180,11 @@ paths: ...@@ -178,9 +180,11 @@ paths:
syncing: syncing:
type: boolean type: boolean
currentTransactionIndex: currentTransactionIndex:
type: uint64 type: integer
format: "int64"
highestKnownTransactionIndex: highestKnownTransactionIndex:
type: uint64 type: integer
format: "int64"
/eth/context/latest: /eth/context/latest:
get: get:
...@@ -198,6 +202,13 @@ paths: ...@@ -198,6 +202,13 @@ paths:
/eth/context/blocknumber/{number}: /eth/context/blocknumber/{number}:
get: get:
parameters:
- in: path
name: number
schema:
type: integer
format: "int64"
required: true
summary: Returns the Ethereum Layer one context at a specific height summary: Returns the Ethereum Layer one context at a specific height
description: | description: |
This returns the L1 blocknumber, block hash and timestamp corresponding to a specific This returns the L1 blocknumber, block hash and timestamp corresponding to a specific
...@@ -225,6 +236,13 @@ paths: ...@@ -225,6 +236,13 @@ paths:
/enqueue/index/{index}: /enqueue/index/{index}:
get: get:
parameters:
- in: path
name: index
schema:
type: integer
format: "int64"
required: true
summary: Returns the enqueued transaction by index summary: Returns the enqueued transaction by index
description: | description: |
This returns the Canonical Transaction Chain `enqueue()` by index This returns the Canonical Transaction Chain `enqueue()` by index
...@@ -252,6 +270,13 @@ paths: ...@@ -252,6 +270,13 @@ paths:
/transaction/index/{index}: /transaction/index/{index}:
get: get:
parameters:
- in: path
name: index
schema:
type: integer
format: "int64"
required: true
summary: Returns a Canonical Transaction Chain transaction by index summary: Returns a Canonical Transaction Chain transaction by index
description: | description: |
This returns a transaction that has been appended to the Canonical Transaction This returns a transaction that has been appended to the Canonical Transaction
...@@ -280,6 +305,13 @@ paths: ...@@ -280,6 +305,13 @@ paths:
/batch/transaction/index/{index}: /batch/transaction/index/{index}:
get: get:
parameters:
- in: path
name: index
schema:
type: integer
format: "int64"
required: true
summary: Returns the Batch to be appended to the Canonical Transaction Chain by index summary: Returns the Batch to be appended to the Canonical Transaction Chain by index
description: | description: |
This returns a batch that has been appended to the Canonical Transaction This returns a batch that has been appended to the Canonical Transaction
...@@ -307,6 +339,13 @@ paths: ...@@ -307,6 +339,13 @@ paths:
/stateroot/index/{index}: /stateroot/index/{index}:
get: get:
parameters:
- in: path
name: index
schema:
type: integer
format: "int64"
required: true
summary: Returns the state root by index summary: Returns the state root by index
description: | description: |
This returns a state root appended to the State Commitment Chain by index This returns a state root appended to the State Commitment Chain by index
...@@ -334,6 +373,13 @@ paths: ...@@ -334,6 +373,13 @@ paths:
/batch/stateroot/index/{index}: /batch/stateroot/index/{index}:
get: get:
summary: Returns the state root batch by index summary: Returns the state root batch by index
parameters:
- in: path
name: index
schema:
type: integer
format: "int64"
required: true
description: | description: |
This returns a state root batch appended to the State Commitment Chain by index This returns a state root batch appended to the State Commitment Chain by index
responses: responses:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment