API implementation for Samples, Subsamples, and ChemicalAnalyses 

Implementation includes access control. Tests are also provided to demonstrate the functionality.