diff --git a/beacon_chain/rpc/rest_key_management_api.nim b/beacon_chain/rpc/rest_key_management_api.nim index e9544b77e..ac92d53eb 100644 --- a/beacon_chain/rpc/rest_key_management_api.nim +++ b/beacon_chain/rpc/rest_key_management_api.nim @@ -188,7 +188,7 @@ proc installKeymanagerHandlers*(router: var RestRouter, node: BeaconNode) = return RestApiResponse.jsonResponsePlain(response) # https://ethereum.github.io/keymanager-APIs/#/Remote%20Key%20Manager/ListRemoteKeys - router.api(MethodGet, "/api/eth/v1/remotekey") do () -> RestApiResponse: + router.api(MethodGet, "/api/eth/v1/remotekeys") do () -> RestApiResponse: let authStatus = checkAuthorization(request, node) if authStatus.isErr(): return RestApiResponse.jsonError(Http401, InvalidAuthorization, @@ -197,7 +197,7 @@ proc installKeymanagerHandlers*(router: var RestRouter, node: BeaconNode) = return RestApiResponse.jsonResponsePlain(response) # https://ethereum.github.io/keymanager-APIs/#/Remote%20Key%20Manager/ImportRemoteKeys - router.api(MethodPost, "/api/eth/v1/remotekey") do ( + router.api(MethodPost, "/api/eth/v1/remotekeys") do ( contentBody: Option[ContentBody]) -> RestApiResponse: let authStatus = checkAuthorization(request, node) if authStatus.isErr(): @@ -239,7 +239,7 @@ proc installKeymanagerHandlers*(router: var RestRouter, node: BeaconNode) = return RestApiResponse.jsonResponsePlain(response) # https://ethereum.github.io/keymanager-APIs/#/Remote%20Key%20Manager/DeleteRemoteKeys - router.api(MethodDelete, "/api/eth/v1/remotekey") do ( + router.api(MethodDelete, "/api/eth/v1/remotekeys") do ( contentBody: Option[ContentBody]) -> RestApiResponse: let authStatus = checkAuthorization(request, node) if authStatus.isErr(): @@ -294,15 +294,15 @@ proc installKeymanagerHandlers*(router: var RestRouter, node: BeaconNode) = router.redirect( MethodGet, - "/eth/v1/remotekey", - "/api/eth/v1/remotekey") + "/eth/v1/remotekeys", + "/api/eth/v1/remotekeys") router.redirect( MethodPost, - "/eth/v1/remotekey", - "/api/eth/v1/remotekey") + "/eth/v1/remotekeys", + "/api/eth/v1/remotekeys") router.redirect( MethodDelete, - "/eth/v1/remotekey", - "/api/eth/v1/remotekey") + "/eth/v1/remotekeys", + "/api/eth/v1/remotekeys") diff --git a/beacon_chain/spec/eth2_apis/rest_keymanager_calls.nim b/beacon_chain/spec/eth2_apis/rest_keymanager_calls.nim index cd801e0b6..35ca48614 100644 --- a/beacon_chain/spec/eth2_apis/rest_keymanager_calls.nim +++ b/beacon_chain/spec/eth2_apis/rest_keymanager_calls.nim @@ -54,18 +54,18 @@ proc listKeys*(client: RestClientRef, raiseUnknownStatusError(resp) proc listRemoteKeysPlain*(): RestPlainResponse {. - rest, endpoint: "/eth/v1/remotekey", + rest, endpoint: "/eth/v1/remotekeys", meth: MethodGet.} ## https://ethereum.github.io/keymanager-APIs/#/Remote%20Key%20Manager/ListRemoteKeys proc importRemoteKeysPlain*(body: ImportRemoteKeystoresBody ): RestPlainResponse {. - rest, endpoint: "/eth/v1/remotekey", + rest, endpoint: "/eth/v1/remotekeys", meth: MethodPost.} ## https://ethereum.github.io/keymanager-APIs/#/Remote%20Key%20Manager/ImportRemoteKeys proc deleteRemoteKeysPlain*(body: DeleteKeystoresBody): RestPlainResponse {. - rest, endpoint: "/eth/v1/remotekey", + rest, endpoint: "/eth/v1/remotekeys", meth: MethodDelete.} ## https://ethereum.github.io/keymanager-APIs/#/Remote%20Key%20Manager/DeleteRemoteKeys