Exemple #1
0
    def put(self, id):
        args = self.reqparse.parse_args()
        output = update_record(TaxonInfo, id, args, "taxon_info")
        return output, 201

#POST
#curl -u ubiome:welovebacteria http://localhost:5000/api/v0/taxon_info -d "taxon=1&description_1=Streptococcus bacteria are among the most abundant in our microbiomes, and they are the predominant microbes in our mouths and throats.&description_2=Most streptococci are completely harmless and not even capable of causing disease in humans, but a handful of strains can be pathogenic, such as those which cause strep throat.&description_3=About a third of women have Streptococcus agalactiae (also known as Group B streptococcus or GBS) in their vaginal microbiomes.  Although this strain is largely harmless to adults, it can cause serious infections in newborns who acquire it during birth.  For this reason, third-trimester screening for GBS is a standard component of pre-natal care, moms who test GBS positive are given a prophylactic antibiotic right before delivery, and the babies are born free of infection." -X POST -v
#PUT 
#curl -u ubiome:welovebacteria http://localhost:5000/api/v0/taxon_info/1 -d "taxon=2&description_1=Streptococcus bacteria are among the most abundant in our microbiomes, and they are the predominant microbes in our mouths and throats.&description_2=Most streptococci are completely harmless and not even capable of causing disease in humans, but a handful of strains can be pathogenic, such as those which cause strep throat.&description_3=About a third of women have Streptococcus agalactiae (also known as Group B streptococcus or GBS) in their vaginal microbiomes.  Although this strain is largely harmless to adults, it can cause serious infections in newborns who acquire it during birth.  For this reason, third-trimester screening for GBS is a standard component of pre-natal care, moms who test GBS positive are given a prophylactic antibiotic right before delivery, and the babies are born free of infect" -X PUT -v
#curl -u ubiome:welovebacteria http://localhost:5000/api/v0/taxa (GET ALL)
#curl -u ubiome:welovebacteria http://localhost:5000/api/v0/taxa/2 (GET ONE)
#curl -u ubiome:welovebacteria http://localhost:5000/api/v0/taxon_info/1 -X DELETE -v
    def put(self, id):
        args = self.reqparse.parse_args()
        output = update_record(KitTypes, id, args, "kit_types")
        return output, 201


#POST
#curl -u user:uBiome http://localhost:5000/kit_types -d "name=Bowel Condition&description=This is the kit for the bowel condition uBiome.&welcome_screen=welcome screen styling text&finish_screen=finish screen styling text." -X POST -v
#PUT
#curl -u user:uBiome http://localhost:5000/kit_types/id -d "name=Bowel Condition&description=This is the kit for the bowel condition uBiome.&welcome_screen=welcome screen styling text&finish_screen=finish screen styling text." -X PUT -v
#curl -u user:uBiome http://localhost:5000/kit_types -d "name=Bowel Condition&description=This is the kit for the bowel condition uBiome.&welcome_screen=welcome screen styling text&finish_screen=finish screen styling text." -X POST -v
#curl -H "Authentication-Token: WyIxIiwiOGViNTEyZmJjYzVkM2I5ZDdiYWQ2NWM0NTBjNjVjYzQiXQ.Bzl7nA.SERdG_5T1lIs9ignG9MY6RmyKhw" http://localhost:5000/api/v0/kit_types (GET ALL)
#curl -u user:uBiome http://localhost:5000/api/v0/kit_types/2 (GET ONE)
#curl -u admin:uBiome http://localhost:5000/api/v0/kit_types/2 -X DELETE -v
Exemple #3
0
    def put(self, id):
        args = self.reqparse.parse_args()
        output = update_record(KitTypesQuestionsAnswers, id, args,
                               "kit_types_questions_answers")
        return output, 201


#POST
#curl -u user:uBiome http://localhost:5000/api/v0/kit_types_questions_answers -d "kit_types_questions_answer_option=1&kit=5&answer_int=0&answer_decimal=0&answer_text=5 ft, 8in" -X POST -v
#PUT
#curl -u user:uBiome http://localhost:5000/api/v0/kit_types_questions_answers/2 -d "kit_types_questions_answer_option=1&kit=5&answer_int=2&answer_decimal=2&answer_text=5 ft" -X PUT -v
#curl -u user:uBiome http://localhost:5000/api/v0/kit_types_questions_answers (GET ALL)
#curl -u user:uBiome http://localhost:5000/api/v0/kit_types_questions_answers/2 (GET ONE)
#curl -u user:uBiome http://localhost:5000/api/v0/kit_types_questions_answers/5 -X DELETE -v
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(LabPipelineTracing, id, args, "lab_pipeline_tracking")
     return output, 201
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(Taxa, id, args, "taxa")
     return output, 201
Exemple #6
0
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(Kits, id, args, "kits")
     return output, 201
Exemple #7
0
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(Samples, id, args, "samples")
     return output, 201
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(User, id, args, "user")
     return output, 201
Exemple #9
0
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(LabSampleLoading, id, args,
                            "lab_sample_loading")
     return output, 201
Exemple #10
0
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(Experiments, id, args, "experiments")
     return output, 201
Exemple #11
0
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(ResultsTaxoncount, id, args,
                            "results_taxoncount")
     return output, 201
 def put(self, id):
     args = self.reqparse.parse_args()
     output = update_record(KitTypesQuestions, id, args, "kit_types_questions")
     return output, 201