sub | Completed creating api to construct the network model