# Functions
Count returns total number of nodes 1-call filecoin service to get exiting node list 2-create X-Total-Count header with the length 3-return.
Create creates Filecoin node from spec 1-Todo validate request body and return validation error 2-call filecoin service to create filecoin node 2-marshall node to dto and format the response.
Delete deletes Filecoin node by name 1-get node from locals which checked and assigned by ValidateNodeExist 2-call filecoin service to delete the node 3-return ok if deleted with no errors.
Get gets a single Filecoin node by name 1-get the node validated from ValidateNodeExist method 2-marshall node to dto and format the response.
List returns all Filecoin nodes 1-get the pagination qs default to 0 2-call service to return node models 3-make the pagination 3-marshall nodes to Filecoin dto and format the response using NewResponse.
Update updates Filecoin 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 filecoin service to update node which returns *filecoinv1alpha1.Node 4-marshall node to node dto and format the response.
ValidateNodeExist validate node by name exist acts as a validation for all handlers the needs to find filecoin node by name 1-call filecoin service to check if node exits 2-return Not found if it's not 3-save the node to local with the key node to be used by the other handlers.