def _get_dnabarcode_json(request, barcodeId): dnar = dnaBarcodeResource() dna = dnar.obj_get_list(name=barcodeId, request=request).order_by('index') dna_bundles = [dnar.build_bundle(obj=x, request=request) for x in dna] dna_json = dnar.serialize( None, [dnar.full_dehydrate(bundle) for bundle in dna_bundles], 'application/json') return dna_json
v1_api.register(api.GlobalConfigResource()) v1_api.register(api.ExperimentResource()) v1_api.register(api.ResultsResource()) v1_api.register(api.ReferenceGenomeResource()) v1_api.register(api.ObsoleteReferenceGenomeResource()) v1_api.register(api.LocationResource()) v1_api.register(api.RigResource()) v1_api.register(api.PluginResource()) v1_api.register(api.PluginResultResource()) v1_api.register(api.FileServerResource()) v1_api.register(api.TFMetricsResource()) v1_api.register(api.LibMetricsResource()) v1_api.register(api.AnalysisMetricsResource()) v1_api.register(api.QualityMetricsResource()) v1_api.register(api.RunTypeResource()) v1_api.register(api.dnaBarcodeResource()) v1_api.register(api.PlannedExperimentDbResource()) v1_api.register(api.PlannedExperimentResource()) v1_api.register(api.PublisherResource()) v1_api.register(api.ContentResource()) v1_api.register(api.ContentUploadResource()) v1_api.register(api.UserEventLogResource()) v1_api.register(api.KitInfoResource()) v1_api.register(api.KitPartResource()) v1_api.register(api.SequencingKitInfoResource()) v1_api.register(api.SequencingKitPartResource()) v1_api.register(api.ActiveSequencingKitInfoResource()) v1_api.register(api.ActivePGMSequencingKitInfoResource()) v1_api.register(api.ActiveProtonSequencingKitInfoResource()) v1_api.register(api.LibraryKitInfoResource())
v1_api.register(api.ExperimentResource()) v1_api.register(api.ResultsResource()) v1_api.register(api.ReferenceGenomeResource()) v1_api.register(api.ObsoleteReferenceGenomeResource()) v1_api.register(api.LocationResource()) v1_api.register(api.RigResource()) v1_api.register(api.PluginResource()) v1_api.register(api.PluginResultResource()) v1_api.register(api.PluginResultJobResource()) v1_api.register(api.FileServerResource()) v1_api.register(api.TFMetricsResource()) v1_api.register(api.LibMetricsResource()) v1_api.register(api.AnalysisMetricsResource()) v1_api.register(api.QualityMetricsResource()) v1_api.register(api.RunTypeResource()) v1_api.register(api.dnaBarcodeResource()) v1_api.register(api.PlannedExperimentDbResource()) v1_api.register(api.PlannedExperimentResource()) v1_api.register(api.PublisherResource()) v1_api.register(api.ContentResource()) v1_api.register(api.ContentUploadResource()) v1_api.register(api.UserEventLogResource()) v1_api.register(api.KitInfoResource()) v1_api.register(api.KitPartResource()) v1_api.register(api.SequencingKitInfoResource()) v1_api.register(api.SequencingKitPartResource()) v1_api.register(api.ActiveSequencingKitInfoResource()) v1_api.register(api.ActivePGMSequencingKitInfoResource()) v1_api.register(api.ActiveProtonSequencingKitInfoResource()) v1_api.register(api.LibraryKitInfoResource())
def _get_dnabarcode_json(request, barcodeId): dnar = dnaBarcodeResource() dna = dnar.obj_get_list(name=barcodeId, request=request).order_by('index') dna_bundles = [dnar.build_bundle(obj=x, request=request) for x in dna] dna_json = dnar.serialize(None, [dnar.full_dehydrate(bundle) for bundle in dna_bundles], 'application/json') return dna_json