# Functions
Count returns total number of beacon nodes 1-call beacon node service to get exiting node list 2-create X-Total-Count header with the length 3-return.
Create creates ethereum 2.0 beacon node from spec 1-Todo validate request body and return validation error 2-call beacon node service to create beacon node 2-marshall node to dto and format the response.
Delete deletes ethereum 2.0 beacon node by name 1-get node from locals which checked and assigned by ValidateNodeExist 2-call beacon node service to delete the node 3-return ok if deleted with no errors.
Get gets a single ethereum 2.0 beacon node by name 1-get the node validated from ValidateNodeExist method 2-marshall node to dto and format the response.
List returns all ethereum 2.0 beacon nodes 1-get the pagination qs default to 0 2-call service to return node models 3-make the pagination 3-marshall nodes to beacon node dto and format the response using NewResponse.
Stats returns a websocket that emits peer count and node syncing status.
Update updates ethereum 2.0 beacon node by name from spec 1-todo validate request body and return validation errors if exits 2-get node from locals which checked and assigned by ValidateNodeExist 3-call beacon node service to update node which returns *ethereum2v1alpha1.BeaconNode 4-marshall node to node dto and format the response.
ValidateBeaconNodeExist validate node by name exist acts as a validation for all handlers the needs to find beacon node by name 1-call beacon node service to check if node exits 2-return 404 if it's not 3-save the node to local with the key node to be used by the other handlers.