Skip to content

Commit

Permalink
fix refs and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rkapka committed Sep 15, 2023
1 parent 883875e commit 11c327b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions apis/beacon/states/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ get:
Returns full BeaconState object for given stateId.
Depending on `Accept` header it can be returned either as json or as bytes serialized by SSZ
tags:
- Debug
- Beacon
parameters:
- name: state_id
in: path
required: true
$ref: '../../beacon-node-oapi.yaml#/components/parameters/StateId'
$ref: '../../../beacon-node-oapi.yaml#/components/parameters/StateId'
responses:
"200":
description: Success
headers:
Eth-Consensus-Version:
$ref: '../../beacon-node-oapi.yaml#/components/headers/Eth-Consensus-Version'
$ref: '../../../beacon-node-oapi.yaml#/components/headers/Eth-Consensus-Version'
content:
application/json:
schema:
Expand All @@ -28,16 +28,16 @@ get:
enum: [ phase0, altair, bellatrix, capella, deneb ]
example: "phase0"
execution_optimistic:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
finalized:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Finalized"
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized"
data:
oneOf:
- $ref: '../../beacon-node-oapi.yaml#/components/schemas/BeaconState'
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Altair.BeaconState"
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.BeaconState"
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Capella.BeaconState"
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Deneb.BeaconState"
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/BeaconState'
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Altair.BeaconState"
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.BeaconState"
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.BeaconState"
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.BeaconState"
application/octet-stream:
schema:
description: "SSZ serialized state bytes. Use Accept header to choose this response type"
Expand All @@ -46,7 +46,7 @@ get:
content:
application/json:
schema:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 400
message: "Invalid state ID: current"
Expand All @@ -55,10 +55,10 @@ get:
content:
application/json:
schema:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 404
message: "State not found"
"500":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'

0 comments on commit 11c327b

Please sign in to comment.