add remaining REST spec references

This adds spec references for a few APIs that were missing them so far,
in line with how spec references already exist for the other REST APIs.
This commit is contained in:
Etan Kissling 2021-09-29 12:43:30 +02:00 committed by zah
parent 06df40454f
commit 6aff2cd19a
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ proc getStateFinalityCheckpoints*(state_id: StateIdent
): RestResponse[GetStateFinalityCheckpointsResponse] {.
rest, endpoint: "/api/eth/v1/beacon/states/{state_id}/finality_checkpoints",
meth: MethodGet.}
## https://ethereum.github.io/beacon-APIs/#/Beacon/getStateFinalityCheckpoints
proc getStateValidators*(state_id: StateIdent,
id: seq[ValidatorIdent]
@ -93,6 +94,7 @@ proc getBlockPlain*(block_id: BlockIdent): RestPlainResponse {.
rest, endpoint: "/api/eth/v1/beacon/blocks/{block_id}",
accept: "application/octet-stream,application-json;q=0.9",
meth: MethodGet.}
## https://ethereum.github.io/beacon-APIs/#/Beacon/getBlock
proc getBlock*(client: RestClientRef, block_id: BlockIdent,
restAccept = ""): Future[ForkedSignedBeaconBlock] {.async.} =