avalanche-network-runner icon indicating copy to clipboard operation
avalanche-network-runner copied to clipboard

API changes suggestion from devrel

Open felipemadero opened this issue 1 year ago • 0 comments

From @cgcardona

We should rename getsnapshotnames to listsnapshots to match the naming convention of listblockchains, listrpcs and listsubnets

In the POST body of v1/control/attachpeer we should change the key from nodeName to name to match the syntax of addnode, pausenode, removenode, restartnode, and resumenode.

Instead of this

{
    "nodeName":"{{node_name}}"
}

This

{
    "name":"{{node_name}}"
}

Same thing in sendoutboundmessage. Rename nodeName to name.

felipemadero avatar Jul 21 '23 11:07 felipemadero