Add edit-lab and get-labs api