From 4b4d293907270fd4ded2917f59171e06b9cb7889 Mon Sep 17 00:00:00 2001 From: Keoni Gandall Date: Mon, 25 Dec 2023 23:17:43 -0800 Subject: [PATCH] add blanks for everything --- api/api/api.go | 243 ++- api/gen/dnadesign-server.gen.go | 3586 +++++++++++++++++++++++++------ api/gen/dnadesign-types.gen.go | 322 ++- api/spec.yaml | 27 - 4 files changed, 3359 insertions(+), 819 deletions(-) diff --git a/api/api/api.go b/api/api/api.go index 487135a..61c8833 100644 --- a/api/api/api.go +++ b/api/api/api.go @@ -96,7 +96,7 @@ func InitializeApp() App { app.Router.HandleFunc("/", indexHandler) app.Router.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.FS(subFS)))) app.Router.HandleFunc("/scalar/", scalarHandler(jsonSwagger)) - app.Router.HandleFunc("/api.json", func(w http.ResponseWriter, r *http.Request) { _, _ = w.Write(jsonSwagger) }) + app.Router.HandleFunc("/spec.json", func(w http.ResponseWriter, r *http.Request) { _, _ = w.Write(jsonSwagger) }) // Lua handlers. app.Router.HandleFunc("/api/execute_lua", appImpl.PostExecuteLua) @@ -115,7 +115,7 @@ func InitializeApp() App { app.Router.HandleFunc("/api/pcr/simple_pcr", appImpl.PostPcrSimplePcr) // Synthesis handlers. - app.Router.HandleFunc("/api/synthesis/fragment", appImpl.PostSynthesisFragment) + app.Router.HandleFunc("/api/synthesis/fragment", appImpl.PostCloningFragment) return app } @@ -165,9 +165,9 @@ func (app *App) ExecuteLua(data string, attachments []gen.Attachment) (string, s L.SetGlobal("translate", L.NewFunction(app.LuaCdsTranslate)) // Add simulate functions - L.SetGlobal("fragment", L.NewFunction(app.LuaSimulateFragment)) - L.SetGlobal("complex_pcr", L.NewFunction(app.LuaSimulateComplexPcr)) - L.SetGlobal("pcr", L.NewFunction(app.LuaSimulatePcr)) + L.SetGlobal("fragment", L.NewFunction(app.LuaCloningFragment)) + L.SetGlobal("complex_pcr", L.NewFunction(app.LuaPcrComplexPcr)) + L.SetGlobal("pcr", L.NewFunction(app.LuaPcrSimplePcr)) // Execute the Lua script if err := L.DoString(data); err != nil { @@ -267,6 +267,7 @@ func (app *App) LuaIoFastaParse(L *lua.LState) int { func (app *App) PostIoFastaWrite(ctx context.Context, request gen.PostIoFastaWriteRequestObject) (gen.PostIoFastaWriteResponseObject, error) { return nil, nil } +func (app *App) LuaIoFastaWrite(L *lua.LState) int { return 0 } func (app *App) PostIoGenbankParse(ctx context.Context, request gen.PostIoGenbankParseRequestObject) (gen.PostIoGenbankParseResponseObject, error) { genbankString := *request.Body @@ -298,14 +299,47 @@ func (app *App) LuaIoGenbankParse(L *lua.LState) int { func (app *App) PostIoGenbankWrite(ctx context.Context, request gen.PostIoGenbankWriteRequestObject) (gen.PostIoGenbankWriteResponseObject, error) { return nil, nil } +func (app *App) LuaIoGenbankWrite(L *lua.LState) int { return 0 } func (app *App) PostIoFastqParse(ctx context.Context, request gen.PostIoFastqParseRequestObject) (gen.PostIoFastqParseResponseObject, error) { return nil, nil } +func (app *App) LuaIoFastqParse(L *lua.LState) int { return 0 } func (app *App) PostIoFastqWrite(ctx context.Context, request gen.PostIoFastqWriteRequestObject) (gen.PostIoFastqWriteResponseObject, error) { return nil, nil } +func (app *App) LuaIoFastqWrite(L *lua.LState) int { return 0 } + +func (app *App) PostIoSlow5Parse(ctx context.Context, request gen.PostIoSlow5ParseRequestObject) (gen.PostIoSlow5ParseResponseObject, error) { + return nil, nil +} +func (app *App) LuaIoSlow5Parse(L *lua.LState) int { return 0 } + +func (app *App) PostIoSlow5Write(ctx context.Context, request gen.PostIoSlow5WriteRequestObject) (gen.PostIoSlow5WriteResponseObject, error) { + return nil, nil +} +func (app *App) LuaIoSlow5Write(L *lua.LState) int { return 0 } + +func (app *App) PostIoSlow5SvbCompress(ctx context.Context, request gen.PostIoSlow5SvbCompressRequestObject) (gen.PostIoSlow5SvbCompressResponseObject, error) { + return nil, nil +} +func (app *App) LuaIoSlow5SvbCompress(L *lua.LState) int { return 0 } + +func (app *App) PostIoSlow5SvbDecompress(ctx context.Context, request gen.PostIoSlow5SvbDecompressRequestObject) (gen.PostIoSlow5SvbDecompressResponseObject, error) { + return nil, nil +} +func (app *App) LuaIoSlow5SvbDecompress(L *lua.LState) int { return 0 } + +func (app *App) PostIoPileupParse(ctx context.Context, request gen.PostIoPileupParseRequestObject) (gen.PostIoPileupParseResponseObject, error) { + return nil, nil +} +func (app *App) LuaIoPileupParse(L *lua.LState) int { return 0 } + +func (app *App) PostIoPileupWrite(ctx context.Context, request gen.PostIoPileupWriteRequestObject) (gen.PostIoPileupWriteResponseObject, error) { + return nil, nil +} +func (app *App) LuaIoPileupWrite(L *lua.LState) int { return 0 } /* ***************************************************************************** @@ -457,8 +491,8 @@ func (app *App) PostPcrComplexPcr(ctx context.Context, request gen.PostPcrComple return gen.PostPcrComplexPcr200JSONResponse(amplicons), nil } -// LuaSimulateComplexPcr implements complex pcr in lua. -func (app *App) LuaSimulateComplexPcr(L *lua.LState) int { +// LuaPcrComplexPcr implements complex pcr in lua. +func (app *App) LuaPcrComplexPcr(L *lua.LState) int { templates, err := luaStringArrayToGoSlice(L, 1) if err != nil { L.RaiseError(err.Error()) @@ -494,8 +528,8 @@ func (app *App) PostPcrSimplePcr(ctx context.Context, request gen.PostPcrSimpleP return gen.PostPcrSimplePcr200JSONResponse(amplicons[0]), nil } -// LuaSimulatePcr implements pcr in lua -func (app *App) LuaSimulatePcr(L *lua.LState) int { +// LuaPcrSimplePcr implements pcr in lua +func (app *App) LuaPcrSimplePcr(L *lua.LState) int { template := L.ToString(1) forwardPrimer := L.ToString(2) reversePrimer := L.ToString(3) @@ -514,18 +548,27 @@ func (app *App) LuaSimulatePcr(L *lua.LState) int { func (app *App) PostPcrPrimersDebruijnBarcodes(ctx context.Context, request gen.PostPcrPrimersDebruijnBarcodesRequestObject) (gen.PostPcrPrimersDebruijnBarcodesResponseObject, error) { return nil, nil } +func (app *App) LuaPcrPrimersDebruijnBarcodes(L *lua.LState) int { return 0 } func (app *App) PostPcrPrimersMarmurDoty(ctx context.Context, request gen.PostPcrPrimersMarmurDotyRequestObject) (gen.PostPcrPrimersMarmurDotyResponseObject, error) { return nil, nil } +func (app *App) LuaPcrPrimersMarmurDoty(L *lua.LState) int { return 0 } func (app *App) PostPcrPrimersSantaLucia(ctx context.Context, request gen.PostPcrPrimersSantaLuciaRequestObject) (gen.PostPcrPrimersSantaLuciaResponseObject, error) { return nil, nil } +func (app *App) LuaPcrPrimersSantaLucia(L *lua.LState) int { return 0 } func (app *App) PostPcrPrimersMeltingTemperature(ctx context.Context, request gen.PostPcrPrimersMeltingTemperatureRequestObject) (gen.PostPcrPrimersMeltingTemperatureResponseObject, error) { return nil, nil } +func (app *App) LuaPcrPrimersMeltingTemperature(L *lua.LState) int { return 0 } + +func (app *App) PostPcrPrimersDesignPrimers(ctx context.Context, request gen.PostPcrPrimersDesignPrimersRequestObject) (gen.PostPcrPrimersDesignPrimersResponseObject, error) { + return nil, nil +} +func (app *App) LuaPcrPrimersDesignPrimers(L *lua.LState) int { return 0 } /* ***************************************************************************** @@ -538,13 +581,16 @@ func (app *App) PostPcrPrimersMeltingTemperature(ctx context.Context, request ge func (app *App) PostCloningGoldengate(ctx context.Context, request gen.PostCloningGoldengateRequestObject) (gen.PostCloningGoldengateResponseObject, error) { return nil, nil } +func (app *App) LuaCloningGoldengate(L *lua.LState) int { return 0 } func (app *App) PostCloningLigate(ctx context.Context, request gen.PostCloningLigateRequestObject) (gen.PostCloningLigateResponseObject, error) { return nil, nil } +func (app *App) LuaCloningLigate(L *lua.LState) int { return 0 } func (app *App) PostCloningRestrictionDigest(ctx context.Context, request gen.PostCloningRestrictionDigestRequestObject) (gen.PostCloningRestrictionDigestResponseObject, error) { return nil, nil } -func (app *App) PostSynthesisFragment(ctx context.Context, request gen.PostSynthesisFragmentRequestObject) (gen.PostSynthesisFragmentResponseObject, error) { +func (app *App) LuaCloningRestrictionDigest(L *lua.LState) int { return 0 } +func (app *App) PostCloningFragment(ctx context.Context, request gen.PostCloningFragmentRequestObject) (gen.PostCloningFragmentResponseObject, error) { var excludeOverhangs []string overhangs := *request.Body.ExcludeOverhangs if overhangs != nil { @@ -552,13 +598,13 @@ func (app *App) PostSynthesisFragment(ctx context.Context, request gen.PostSynth } fragments, efficiency, err := fragment.Fragment(request.Body.Sequence, request.Body.MinFragmentSize, request.Body.MaxFragmentSize, excludeOverhangs) if err != nil { - return gen.PostSynthesisFragment500TextResponse(fmt.Sprintf("Got internal server error: %s", err)), nil + return gen.PostCloningFragment500TextResponse(fmt.Sprintf("Got internal server error: %s", err)), nil } - return gen.PostSynthesisFragment200JSONResponse{Fragments: fragments, Efficiency: float32(efficiency)}, nil + return gen.PostCloningFragment200JSONResponse{Fragments: fragments, Efficiency: float32(efficiency)}, nil } -// LuaSimulateFragment implements fragment in lua. -func (app *App) LuaSimulateFragment(L *lua.LState) int { +// LuaCloningFragment implements fragment in lua. +func (app *App) LuaCloningFragment(L *lua.LState) int { sequence := L.ToString(1) minFragmentSize := L.ToInt(2) maxFragmentSize := L.ToInt(3) @@ -591,17 +637,20 @@ func (app *App) LuaSimulateFragment(L *lua.LState) int { ***************************************************************************** */ -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -// -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -// -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} +func (app *App) PostFoldingZuker(ctx context.Context, request gen.PostFoldingZukerRequestObject) (gen.PostFoldingZukerResponseObject, error) { + return nil, nil +} +func (app *App) LuaFoldingZuker(L *lua.LState) int { return 0 } + +func (app *App) PostFoldingLinearfoldContraFoldV2(ctx context.Context, request gen.PostFoldingLinearfoldContraFoldV2RequestObject) (gen.PostFoldingLinearfoldContraFoldV2ResponseObject, error) { + return nil, nil +} +func (app *App) LuaFoldingLinearfoldContraFoldV2(L *lua.LState) int { return 0 } + +func (app *App) PostFoldingLinearfoldViennaRnaFold(ctx context.Context, request gen.PostFoldingLinearfoldViennaRnaFoldRequestObject) (gen.PostFoldingLinearfoldViennaRnaFoldResponseObject, error) { + return nil, nil +} +func (app *App) LuaFoldingLinearfoldViennaRnaFold(L *lua.LState) int { return 0 } /* ***************************************************************************** @@ -611,12 +660,15 @@ func (app *App) LuaSimulateFragment(L *lua.LState) int { ***************************************************************************** */ -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} +func (app *App) PostSeqhash(ctx context.Context, request gen.PostSeqhashRequestObject) (gen.PostSeqhashResponseObject, error) { + return nil, nil +} +func (app *App) LuaSeqhash(L *lua.LState) int { return 0 } + +func (app *App) PostSeqhashFragment(ctx context.Context, request gen.PostSeqhashFragmentRequestObject) (gen.PostSeqhashFragmentResponseObject, error) { + return nil, nil +} +func (app *App) LuaSeqhashFragment(L *lua.LState) int { return 0 } /* ***************************************************************************** @@ -626,24 +678,35 @@ func (app *App) LuaSimulateFragment(L *lua.LState) int { ***************************************************************************** */ -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} +func (app *App) PostCodonTablesFromGenbank(ctx context.Context, request gen.PostCodonTablesFromGenbankRequestObject) (gen.PostCodonTablesFromGenbankResponseObject, error) { + return nil, nil +} +func (app *App) LuaCodonTablesFromGenbank(L *lua.LState) int { return 0 } + +func (app *App) PostCodonTablesNew(ctx context.Context, request gen.PostCodonTablesNewRequestObject) (gen.PostCodonTablesNewResponseObject, error) { + return nil, nil +} +func (app *App) LuaCodonTablesNew(L *lua.LState) int { return 0 } + +func (app *App) PostCodonTablesCompromiseTables(ctx context.Context, request gen.PostCodonTablesCompromiseTablesRequestObject) (gen.PostCodonTablesCompromiseTablesResponseObject, error) { + return nil, nil +} +func (app *App) LuaCodonTablesCompromiseTables(L *lua.LState) int { return 0 } + +func (app *App) PostCodonTablesAddTables(ctx context.Context, request gen.PostCodonTablesAddTablesRequestObject) (gen.PostCodonTablesAddTablesResponseObject, error) { + return nil, nil +} +func (app *App) LuaCodonTablesAddTables(L *lua.LState) int { return 0 } + +func (app *App) GetCodonTablesDefaultOrganisms(ctx context.Context, request gen.GetCodonTablesDefaultOrganismsRequestObject) (gen.GetCodonTablesDefaultOrganismsResponseObject, error) { + return nil, nil +} +func (app *App) LuaCodonTablesDefaultOrganisms(L *lua.LState) int { return 0 } + +func (app *App) PostCodonTablesGetOrganismTable(ctx context.Context, request gen.PostCodonTablesGetOrganismTableRequestObject) (gen.PostCodonTablesGetOrganismTableResponseObject, error) { + return nil, nil +} +func (app *App) LuaCodonTablesGetOrganismTable(L *lua.LState) int { return 0 } /* ***************************************************************************** @@ -653,18 +716,25 @@ func (app *App) LuaSimulateFragment(L *lua.LState) int { ***************************************************************************** */ -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} +func (app *App) PostAlignNeedlemanWunsch(ctx context.Context, request gen.PostAlignNeedlemanWunschRequestObject) (gen.PostAlignNeedlemanWunschResponseObject, error) { + return nil, nil +} +func (app *App) LuaAlignNeedlemanWunsch(L *lua.LState) int { return 0 } + +func (app *App) PostAlignSmithWaterman(ctx context.Context, request gen.PostAlignSmithWatermanRequestObject) (gen.PostAlignSmithWatermanResponseObject, error) { + return nil, nil +} +func (app *App) LuaAlignSmithWaterman(L *lua.LState) int { return 0 } + +func (app *App) PostAlignMash(ctx context.Context, request gen.PostAlignMashRequestObject) (gen.PostAlignMashResponseObject, error) { + return nil, nil +} +func (app *App) LuaPostAlignMash(L *lua.LState) int { return 0 } + +func (app *App) PostAlignMashMany(ctx context.Context, request gen.PostAlignMashManyRequestObject) (gen.PostAlignMashManyResponseObject, error) { + return nil, nil +} +func (app *App) LuaAlignMashMany(L *lua.LState) int { return 0 } /* ***************************************************************************** @@ -674,15 +744,15 @@ func (app *App) LuaSimulateFragment(L *lua.LState) int { ***************************************************************************** */ -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} +func (app *App) PostUtilsReverseComplement(ctx context.Context, request gen.PostUtilsReverseComplementRequestObject) (gen.PostUtilsReverseComplementResponseObject, error) { + return nil, nil +} +func (app *App) Lua(L *lua.LState) int { return 0 } + +func (app *App) PostUtilsIsPalindromic(ctx context.Context, request gen.PostUtilsIsPalindromicRequestObject) (gen.PostUtilsIsPalindromicResponseObject, error) { + return nil, nil +} +func (app *App) LuaUtilsIsPalindromic(L *lua.LState) int { return 0 } /* ***************************************************************************** @@ -692,15 +762,30 @@ func (app *App) LuaSimulateFragment(L *lua.LState) int { ***************************************************************************** */ +func (app *App) PostRandomRandomDna(ctx context.Context, request gen.PostRandomRandomDnaRequestObject) (gen.PostRandomRandomDnaResponseObject, error) { + return nil, nil +} +func (app *App) LuaRandomRandomDna(L *lua.LState) int { return 0 } + +func (app *App) PostRandomRandomRna(ctx context.Context, request gen.PostRandomRandomRnaRequestObject) (gen.PostRandomRandomRnaResponseObject, error) { + return nil, nil +} +func (app *App) LuaRandomRandomRna(L *lua.LState) int { return 0 } + +func (app *App) PostRandomRandomProtein(ctx context.Context, request gen.PostRandomRandomProteinRequestObject) (gen.PostRandomRandomProteinResponseObject, error) { + return nil, nil +} +func (app *App) LuaRandomRandomProtein(L *lua.LState) int { return 0 } + +/* +***************************************************************************** + +# Template for functions + +***************************************************************************** +*/ +//func (app *App) Lua(L *lua.LState) int { return 0 } //func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { // return nil, nil //} -// -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -// -//func (app *App) x(ctx context.Context, request gen.RequestObject) (gen.ResponseObject, error) { -// return nil, nil -//} -// +//func (app *App) Lua(L *lua.LState) int { return 0 } diff --git a/api/gen/dnadesign-server.gen.go b/api/gen/dnadesign-server.gen.go index 198df07..c1d5a62 100644 --- a/api/gen/dnadesign-server.gen.go +++ b/api/gen/dnadesign-server.gen.go @@ -23,6 +23,18 @@ import ( // ServerInterface represents all server handlers. type ServerInterface interface { + // Calculate Mash Distance + // (POST /align/mash) + PostAlignMash(w http.ResponseWriter, r *http.Request) + // Calculate Mash Distance Against Many Sequences + // (POST /align/mash_many) + PostAlignMashMany(w http.ResponseWriter, r *http.Request) + // Perform Needleman-Wunsch Alignment + // (POST /align/needleman_wunsch) + PostAlignNeedlemanWunsch(w http.ResponseWriter, r *http.Request) + // Perform Smith-Waterman Alignment + // (POST /align/smith_waterman) + PostAlignSmithWaterman(w http.ResponseWriter, r *http.Request) // Fix CDS // (POST /cds/fix) PostCdsFix(w http.ResponseWriter, r *http.Request) @@ -32,7 +44,10 @@ type ServerInterface interface { // Translate CDS // (POST /cds/translate) PostCdsTranslate(w http.ResponseWriter, r *http.Request) - // Simulate Golden Gate assembly + // Fragment DNA for GoldenGate + // (POST /cloning/fragment) + PostCloningFragment(w http.ResponseWriter, r *http.Request) + // Simulate GoldenGate assembly // (POST /cloning/goldengate) PostCloningGoldengate(w http.ResponseWriter, r *http.Request) // Simulate ligation @@ -41,9 +56,36 @@ type ServerInterface interface { // Simulate restriction digest // (POST /cloning/restriction_digest) PostCloningRestrictionDigest(w http.ResponseWriter, r *http.Request) + // Add Two Codon Tables + // (POST /codon_tables/add_tables) + PostCodonTablesAddTables(w http.ResponseWriter, r *http.Request) + // Create Compromise Codon Table + // (POST /codon_tables/compromise_tables) + PostCodonTablesCompromiseTables(w http.ResponseWriter, r *http.Request) + // Get Default Organism Names + // (GET /codon_tables/default_organisms) + GetCodonTablesDefaultOrganisms(w http.ResponseWriter, r *http.Request) + // Create Weighted Codon Table from Genbank Record + // (POST /codon_tables/from_genbank) + PostCodonTablesFromGenbank(w http.ResponseWriter, r *http.Request) + // Get Codon Table for an Organism + // (POST /codon_tables/get_organism_table) + PostCodonTablesGetOrganismTable(w http.ResponseWriter, r *http.Request) + // Create New Codon Table + // (POST /codon_tables/new) + PostCodonTablesNew(w http.ResponseWriter, r *http.Request) // Run a lua script // (POST /execute_lua) PostExecuteLua(w http.ResponseWriter, r *http.Request) + // Contra Fold V2 + // (POST /folding/linearfold/contra_fold_v2) + PostFoldingLinearfoldContraFoldV2(w http.ResponseWriter, r *http.Request) + // Vienna RNA Fold + // (POST /folding/linearfold/vienna_rna_fold) + PostFoldingLinearfoldViennaRnaFold(w http.ResponseWriter, r *http.Request) + // Zuker Folding + // (POST /folding/zuker) + PostFoldingZuker(w http.ResponseWriter, r *http.Request) // Parse FASTA data // (POST /io/fasta/parse) PostIoFastaParse(w http.ResponseWriter, r *http.Request) @@ -62,12 +104,33 @@ type ServerInterface interface { // Write Genbank data // (POST /io/genbank/write) PostIoGenbankWrite(w http.ResponseWriter, r *http.Request) + // Parse Pileup Data + // (POST /io/pileup/parse) + PostIoPileupParse(w http.ResponseWriter, r *http.Request) + // Write Pileup Data + // (POST /io/pileup/write) + PostIoPileupWrite(w http.ResponseWriter, r *http.Request) + // Parse slow5 Data + // (POST /io/slow5/parse) + PostIoSlow5Parse(w http.ResponseWriter, r *http.Request) + // Compress Raw Signal with SVB + // (POST /io/slow5/svb_compress) + PostIoSlow5SvbCompress(w http.ResponseWriter, r *http.Request) + // Decompress Raw Signal with SVB + // (POST /io/slow5/svb_decompress) + PostIoSlow5SvbDecompress(w http.ResponseWriter, r *http.Request) + // Write slow5 Data + // (POST /io/slow5/write) + PostIoSlow5Write(w http.ResponseWriter, r *http.Request) // Simulate PCR // (POST /pcr/complex_pcr) PostPcrComplexPcr(w http.ResponseWriter, r *http.Request) // Generate De Bruijn sequence-based barcodes // (POST /pcr/primers/debruijn_barcodes) PostPcrPrimersDebruijnBarcodes(w http.ResponseWriter, r *http.Request) + // Design PCR Primers + // (POST /pcr/primers/design_primers) + PostPcrPrimersDesignPrimers(w http.ResponseWriter, r *http.Request) // Calculate Melting Temperature using Marmur Doty method // (POST /pcr/primers/marmur_doty) PostPcrPrimersMarmurDoty(w http.ResponseWriter, r *http.Request) @@ -80,15 +143,57 @@ type ServerInterface interface { // Simulate a simple PCR // (POST /pcr/simple_pcr) PostPcrSimplePcr(w http.ResponseWriter, r *http.Request) - // Fragment CDS - // (POST /synthesis/fragment) - PostSynthesisFragment(w http.ResponseWriter, r *http.Request) + // Generate Random DNA Sequence + // (POST /random/random_dna) + PostRandomRandomDna(w http.ResponseWriter, r *http.Request) + // Generate Random Protein Sequence + // (POST /random/random_protein) + PostRandomRandomProtein(w http.ResponseWriter, r *http.Request) + // Generate Random RNA Sequence + // (POST /random/random_rna) + PostRandomRandomRna(w http.ResponseWriter, r *http.Request) + // Sequence Hashing + // (POST /seqhash) + PostSeqhash(w http.ResponseWriter, r *http.Request) + // Sequence Hashing for Fragment + // (POST /seqhash_fragment) + PostSeqhashFragment(w http.ResponseWriter, r *http.Request) + // Check if Sequence is Palindromic + // (POST /utils/is_palindromic) + PostUtilsIsPalindromic(w http.ResponseWriter, r *http.Request) + // Reverse Complement of DNA Sequence + // (POST /utils/reverse_complement) + PostUtilsReverseComplement(w http.ResponseWriter, r *http.Request) } // Unimplemented server implementation that returns http.StatusNotImplemented for each endpoint. type Unimplemented struct{} +// Calculate Mash Distance +// (POST /align/mash) +func (_ Unimplemented) PostAlignMash(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Calculate Mash Distance Against Many Sequences +// (POST /align/mash_many) +func (_ Unimplemented) PostAlignMashMany(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Perform Needleman-Wunsch Alignment +// (POST /align/needleman_wunsch) +func (_ Unimplemented) PostAlignNeedlemanWunsch(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Perform Smith-Waterman Alignment +// (POST /align/smith_waterman) +func (_ Unimplemented) PostAlignSmithWaterman(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + // Fix CDS // (POST /cds/fix) func (_ Unimplemented) PostCdsFix(w http.ResponseWriter, r *http.Request) { @@ -107,7 +212,13 @@ func (_ Unimplemented) PostCdsTranslate(w http.ResponseWriter, r *http.Request) w.WriteHeader(http.StatusNotImplemented) } -// Simulate Golden Gate assembly +// Fragment DNA for GoldenGate +// (POST /cloning/fragment) +func (_ Unimplemented) PostCloningFragment(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Simulate GoldenGate assembly // (POST /cloning/goldengate) func (_ Unimplemented) PostCloningGoldengate(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotImplemented) @@ -125,12 +236,66 @@ func (_ Unimplemented) PostCloningRestrictionDigest(w http.ResponseWriter, r *ht w.WriteHeader(http.StatusNotImplemented) } +// Add Two Codon Tables +// (POST /codon_tables/add_tables) +func (_ Unimplemented) PostCodonTablesAddTables(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create Compromise Codon Table +// (POST /codon_tables/compromise_tables) +func (_ Unimplemented) PostCodonTablesCompromiseTables(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get Default Organism Names +// (GET /codon_tables/default_organisms) +func (_ Unimplemented) GetCodonTablesDefaultOrganisms(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create Weighted Codon Table from Genbank Record +// (POST /codon_tables/from_genbank) +func (_ Unimplemented) PostCodonTablesFromGenbank(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Get Codon Table for an Organism +// (POST /codon_tables/get_organism_table) +func (_ Unimplemented) PostCodonTablesGetOrganismTable(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Create New Codon Table +// (POST /codon_tables/new) +func (_ Unimplemented) PostCodonTablesNew(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + // Run a lua script // (POST /execute_lua) func (_ Unimplemented) PostExecuteLua(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotImplemented) } +// Contra Fold V2 +// (POST /folding/linearfold/contra_fold_v2) +func (_ Unimplemented) PostFoldingLinearfoldContraFoldV2(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Vienna RNA Fold +// (POST /folding/linearfold/vienna_rna_fold) +func (_ Unimplemented) PostFoldingLinearfoldViennaRnaFold(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Zuker Folding +// (POST /folding/zuker) +func (_ Unimplemented) PostFoldingZuker(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + // Parse FASTA data // (POST /io/fasta/parse) func (_ Unimplemented) PostIoFastaParse(w http.ResponseWriter, r *http.Request) { @@ -167,6 +332,42 @@ func (_ Unimplemented) PostIoGenbankWrite(w http.ResponseWriter, r *http.Request w.WriteHeader(http.StatusNotImplemented) } +// Parse Pileup Data +// (POST /io/pileup/parse) +func (_ Unimplemented) PostIoPileupParse(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Write Pileup Data +// (POST /io/pileup/write) +func (_ Unimplemented) PostIoPileupWrite(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Parse slow5 Data +// (POST /io/slow5/parse) +func (_ Unimplemented) PostIoSlow5Parse(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Compress Raw Signal with SVB +// (POST /io/slow5/svb_compress) +func (_ Unimplemented) PostIoSlow5SvbCompress(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Decompress Raw Signal with SVB +// (POST /io/slow5/svb_decompress) +func (_ Unimplemented) PostIoSlow5SvbDecompress(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Write slow5 Data +// (POST /io/slow5/write) +func (_ Unimplemented) PostIoSlow5Write(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + // Simulate PCR // (POST /pcr/complex_pcr) func (_ Unimplemented) PostPcrComplexPcr(w http.ResponseWriter, r *http.Request) { @@ -179,6 +380,12 @@ func (_ Unimplemented) PostPcrPrimersDebruijnBarcodes(w http.ResponseWriter, r * w.WriteHeader(http.StatusNotImplemented) } +// Design PCR Primers +// (POST /pcr/primers/design_primers) +func (_ Unimplemented) PostPcrPrimersDesignPrimers(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + // Calculate Melting Temperature using Marmur Doty method // (POST /pcr/primers/marmur_doty) func (_ Unimplemented) PostPcrPrimersMarmurDoty(w http.ResponseWriter, r *http.Request) { @@ -203,9 +410,45 @@ func (_ Unimplemented) PostPcrSimplePcr(w http.ResponseWriter, r *http.Request) w.WriteHeader(http.StatusNotImplemented) } -// Fragment CDS -// (POST /synthesis/fragment) -func (_ Unimplemented) PostSynthesisFragment(w http.ResponseWriter, r *http.Request) { +// Generate Random DNA Sequence +// (POST /random/random_dna) +func (_ Unimplemented) PostRandomRandomDna(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Generate Random Protein Sequence +// (POST /random/random_protein) +func (_ Unimplemented) PostRandomRandomProtein(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Generate Random RNA Sequence +// (POST /random/random_rna) +func (_ Unimplemented) PostRandomRandomRna(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Sequence Hashing +// (POST /seqhash) +func (_ Unimplemented) PostSeqhash(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Sequence Hashing for Fragment +// (POST /seqhash_fragment) +func (_ Unimplemented) PostSeqhashFragment(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Check if Sequence is Palindromic +// (POST /utils/is_palindromic) +func (_ Unimplemented) PostUtilsIsPalindromic(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotImplemented) +} + +// Reverse Complement of DNA Sequence +// (POST /utils/reverse_complement) +func (_ Unimplemented) PostUtilsReverseComplement(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotImplemented) } @@ -218,6 +461,66 @@ type ServerInterfaceWrapper struct { type MiddlewareFunc func(http.Handler) http.Handler +// PostAlignMash operation middleware +func (siw *ServerInterfaceWrapper) PostAlignMash(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostAlignMash(w, r) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) +} + +// PostAlignMashMany operation middleware +func (siw *ServerInterfaceWrapper) PostAlignMashMany(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostAlignMashMany(w, r) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) +} + +// PostAlignNeedlemanWunsch operation middleware +func (siw *ServerInterfaceWrapper) PostAlignNeedlemanWunsch(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostAlignNeedlemanWunsch(w, r) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) +} + +// PostAlignSmithWaterman operation middleware +func (siw *ServerInterfaceWrapper) PostAlignSmithWaterman(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostAlignSmithWaterman(w, r) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) +} + // PostCdsFix operation middleware func (siw *ServerInterfaceWrapper) PostCdsFix(w http.ResponseWriter, r *http.Request) { ctx := r.Context() @@ -263,6 +566,21 @@ func (siw *ServerInterfaceWrapper) PostCdsTranslate(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r.WithContext(ctx)) } +// PostCloningFragment operation middleware +func (siw *ServerInterfaceWrapper) PostCloningFragment(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() + + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostCloningFragment(w, r) + })) + + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) +} + // PostCloningGoldengate operation middleware func (siw *ServerInterfaceWrapper) PostCloningGoldengate(w http.ResponseWriter, r *http.Request) { ctx := r.Context() @@ -308,12 +626,12 @@ func (siw *ServerInterfaceWrapper) PostCloningRestrictionDigest(w http.ResponseW handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostExecuteLua operation middleware -func (siw *ServerInterfaceWrapper) PostExecuteLua(w http.ResponseWriter, r *http.Request) { +// PostCodonTablesAddTables operation middleware +func (siw *ServerInterfaceWrapper) PostCodonTablesAddTables(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostExecuteLua(w, r) + siw.Handler.PostCodonTablesAddTables(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -323,12 +641,12 @@ func (siw *ServerInterfaceWrapper) PostExecuteLua(w http.ResponseWriter, r *http handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostIoFastaParse operation middleware -func (siw *ServerInterfaceWrapper) PostIoFastaParse(w http.ResponseWriter, r *http.Request) { +// PostCodonTablesCompromiseTables operation middleware +func (siw *ServerInterfaceWrapper) PostCodonTablesCompromiseTables(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostIoFastaParse(w, r) + siw.Handler.PostCodonTablesCompromiseTables(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -338,12 +656,12 @@ func (siw *ServerInterfaceWrapper) PostIoFastaParse(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostIoFastaWrite operation middleware -func (siw *ServerInterfaceWrapper) PostIoFastaWrite(w http.ResponseWriter, r *http.Request) { +// GetCodonTablesDefaultOrganisms operation middleware +func (siw *ServerInterfaceWrapper) GetCodonTablesDefaultOrganisms(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostIoFastaWrite(w, r) + siw.Handler.GetCodonTablesDefaultOrganisms(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -353,12 +671,12 @@ func (siw *ServerInterfaceWrapper) PostIoFastaWrite(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostIoFastqParse operation middleware -func (siw *ServerInterfaceWrapper) PostIoFastqParse(w http.ResponseWriter, r *http.Request) { +// PostCodonTablesFromGenbank operation middleware +func (siw *ServerInterfaceWrapper) PostCodonTablesFromGenbank(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostIoFastqParse(w, r) + siw.Handler.PostCodonTablesFromGenbank(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -368,12 +686,12 @@ func (siw *ServerInterfaceWrapper) PostIoFastqParse(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostIoFastqWrite operation middleware -func (siw *ServerInterfaceWrapper) PostIoFastqWrite(w http.ResponseWriter, r *http.Request) { +// PostCodonTablesGetOrganismTable operation middleware +func (siw *ServerInterfaceWrapper) PostCodonTablesGetOrganismTable(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostIoFastqWrite(w, r) + siw.Handler.PostCodonTablesGetOrganismTable(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -383,12 +701,12 @@ func (siw *ServerInterfaceWrapper) PostIoFastqWrite(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostIoGenbankParse operation middleware -func (siw *ServerInterfaceWrapper) PostIoGenbankParse(w http.ResponseWriter, r *http.Request) { +// PostCodonTablesNew operation middleware +func (siw *ServerInterfaceWrapper) PostCodonTablesNew(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostIoGenbankParse(w, r) + siw.Handler.PostCodonTablesNew(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -398,12 +716,12 @@ func (siw *ServerInterfaceWrapper) PostIoGenbankParse(w http.ResponseWriter, r * handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostIoGenbankWrite operation middleware -func (siw *ServerInterfaceWrapper) PostIoGenbankWrite(w http.ResponseWriter, r *http.Request) { +// PostExecuteLua operation middleware +func (siw *ServerInterfaceWrapper) PostExecuteLua(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostIoGenbankWrite(w, r) + siw.Handler.PostExecuteLua(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -413,12 +731,12 @@ func (siw *ServerInterfaceWrapper) PostIoGenbankWrite(w http.ResponseWriter, r * handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostPcrComplexPcr operation middleware -func (siw *ServerInterfaceWrapper) PostPcrComplexPcr(w http.ResponseWriter, r *http.Request) { +// PostFoldingLinearfoldContraFoldV2 operation middleware +func (siw *ServerInterfaceWrapper) PostFoldingLinearfoldContraFoldV2(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostPcrComplexPcr(w, r) + siw.Handler.PostFoldingLinearfoldContraFoldV2(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -428,12 +746,12 @@ func (siw *ServerInterfaceWrapper) PostPcrComplexPcr(w http.ResponseWriter, r *h handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostPcrPrimersDebruijnBarcodes operation middleware -func (siw *ServerInterfaceWrapper) PostPcrPrimersDebruijnBarcodes(w http.ResponseWriter, r *http.Request) { +// PostFoldingLinearfoldViennaRnaFold operation middleware +func (siw *ServerInterfaceWrapper) PostFoldingLinearfoldViennaRnaFold(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostPcrPrimersDebruijnBarcodes(w, r) + siw.Handler.PostFoldingLinearfoldViennaRnaFold(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -443,12 +761,12 @@ func (siw *ServerInterfaceWrapper) PostPcrPrimersDebruijnBarcodes(w http.Respons handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostPcrPrimersMarmurDoty operation middleware -func (siw *ServerInterfaceWrapper) PostPcrPrimersMarmurDoty(w http.ResponseWriter, r *http.Request) { +// PostFoldingZuker operation middleware +func (siw *ServerInterfaceWrapper) PostFoldingZuker(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostPcrPrimersMarmurDoty(w, r) + siw.Handler.PostFoldingZuker(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -458,12 +776,12 @@ func (siw *ServerInterfaceWrapper) PostPcrPrimersMarmurDoty(w http.ResponseWrite handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostPcrPrimersMeltingTemperature operation middleware -func (siw *ServerInterfaceWrapper) PostPcrPrimersMeltingTemperature(w http.ResponseWriter, r *http.Request) { +// PostIoFastaParse operation middleware +func (siw *ServerInterfaceWrapper) PostIoFastaParse(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostPcrPrimersMeltingTemperature(w, r) + siw.Handler.PostIoFastaParse(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -473,12 +791,12 @@ func (siw *ServerInterfaceWrapper) PostPcrPrimersMeltingTemperature(w http.Respo handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostPcrPrimersSantaLucia operation middleware -func (siw *ServerInterfaceWrapper) PostPcrPrimersSantaLucia(w http.ResponseWriter, r *http.Request) { +// PostIoFastaWrite operation middleware +func (siw *ServerInterfaceWrapper) PostIoFastaWrite(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostPcrPrimersSantaLucia(w, r) + siw.Handler.PostIoFastaWrite(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -488,12 +806,12 @@ func (siw *ServerInterfaceWrapper) PostPcrPrimersSantaLucia(w http.ResponseWrite handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostPcrSimplePcr operation middleware -func (siw *ServerInterfaceWrapper) PostPcrSimplePcr(w http.ResponseWriter, r *http.Request) { +// PostIoFastqParse operation middleware +func (siw *ServerInterfaceWrapper) PostIoFastqParse(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostPcrSimplePcr(w, r) + siw.Handler.PostIoFastqParse(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -503,12 +821,12 @@ func (siw *ServerInterfaceWrapper) PostPcrSimplePcr(w http.ResponseWriter, r *ht handler.ServeHTTP(w, r.WithContext(ctx)) } -// PostSynthesisFragment operation middleware -func (siw *ServerInterfaceWrapper) PostSynthesisFragment(w http.ResponseWriter, r *http.Request) { +// PostIoFastqWrite operation middleware +func (siw *ServerInterfaceWrapper) PostIoFastqWrite(w http.ResponseWriter, r *http.Request) { ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - siw.Handler.PostSynthesisFragment(w, r) + siw.Handler.PostIoFastqWrite(w, r) })) for _, middleware := range siw.HandlerMiddlewares { @@ -518,645 +836,742 @@ func (siw *ServerInterfaceWrapper) PostSynthesisFragment(w http.ResponseWriter, handler.ServeHTTP(w, r.WithContext(ctx)) } -type UnescapedCookieParamError struct { - ParamName string - Err error -} +// PostIoGenbankParse operation middleware +func (siw *ServerInterfaceWrapper) PostIoGenbankParse(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (e *UnescapedCookieParamError) Error() string { - return fmt.Sprintf("error unescaping cookie parameter '%s'", e.ParamName) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostIoGenbankParse(w, r) + })) -func (e *UnescapedCookieParamError) Unwrap() error { - return e.Err -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -type UnmarshalingParamError struct { - ParamName string - Err error + handler.ServeHTTP(w, r.WithContext(ctx)) } -func (e *UnmarshalingParamError) Error() string { - return fmt.Sprintf("Error unmarshaling parameter %s as JSON: %s", e.ParamName, e.Err.Error()) -} +// PostIoGenbankWrite operation middleware +func (siw *ServerInterfaceWrapper) PostIoGenbankWrite(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (e *UnmarshalingParamError) Unwrap() error { - return e.Err -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostIoGenbankWrite(w, r) + })) -type RequiredParamError struct { - ParamName string -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -func (e *RequiredParamError) Error() string { - return fmt.Sprintf("Query argument %s is required, but not found", e.ParamName) + handler.ServeHTTP(w, r.WithContext(ctx)) } -type RequiredHeaderError struct { - ParamName string - Err error -} +// PostIoPileupParse operation middleware +func (siw *ServerInterfaceWrapper) PostIoPileupParse(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (e *RequiredHeaderError) Error() string { - return fmt.Sprintf("Header parameter %s is required, but not found", e.ParamName) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostIoPileupParse(w, r) + })) -func (e *RequiredHeaderError) Unwrap() error { - return e.Err + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) } -type InvalidParamFormatError struct { - ParamName string - Err error -} +// PostIoPileupWrite operation middleware +func (siw *ServerInterfaceWrapper) PostIoPileupWrite(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (e *InvalidParamFormatError) Error() string { - return fmt.Sprintf("Invalid format for parameter %s: %s", e.ParamName, e.Err.Error()) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostIoPileupWrite(w, r) + })) -func (e *InvalidParamFormatError) Unwrap() error { - return e.Err -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -type TooManyValuesForParamError struct { - ParamName string - Count int + handler.ServeHTTP(w, r.WithContext(ctx)) } -func (e *TooManyValuesForParamError) Error() string { - return fmt.Sprintf("Expected one value for %s, got %d", e.ParamName, e.Count) -} +// PostIoSlow5Parse operation middleware +func (siw *ServerInterfaceWrapper) PostIoSlow5Parse(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -// Handler creates http.Handler with routing matching OpenAPI spec. -func Handler(si ServerInterface) http.Handler { - return HandlerWithOptions(si, ChiServerOptions{}) -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostIoSlow5Parse(w, r) + })) -type ChiServerOptions struct { - BaseURL string - BaseRouter chi.Router - Middlewares []MiddlewareFunc - ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -// HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux. -func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler { - return HandlerWithOptions(si, ChiServerOptions{ - BaseRouter: r, - }) + handler.ServeHTTP(w, r.WithContext(ctx)) } -func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler { - return HandlerWithOptions(si, ChiServerOptions{ - BaseURL: baseURL, - BaseRouter: r, - }) -} +// PostIoSlow5SvbCompress operation middleware +func (siw *ServerInterfaceWrapper) PostIoSlow5SvbCompress(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -// HandlerWithOptions creates http.Handler with additional options -func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler { - r := options.BaseRouter + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostIoSlow5SvbCompress(w, r) + })) - if r == nil { - r = chi.NewRouter() - } - if options.ErrorHandlerFunc == nil { - options.ErrorHandlerFunc = func(w http.ResponseWriter, r *http.Request, err error) { - http.Error(w, err.Error(), http.StatusBadRequest) - } - } - wrapper := ServerInterfaceWrapper{ - Handler: si, - HandlerMiddlewares: options.Middlewares, - ErrorHandlerFunc: options.ErrorHandlerFunc, + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) } - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/cds/fix", wrapper.PostCdsFix) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/cds/optimize", wrapper.PostCdsOptimize) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/cds/translate", wrapper.PostCdsTranslate) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/cloning/goldengate", wrapper.PostCloningGoldengate) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/cloning/ligate", wrapper.PostCloningLigate) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/cloning/restriction_digest", wrapper.PostCloningRestrictionDigest) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/execute_lua", wrapper.PostExecuteLua) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/io/fasta/parse", wrapper.PostIoFastaParse) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/io/fasta/write", wrapper.PostIoFastaWrite) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/io/fastq/parse", wrapper.PostIoFastqParse) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/io/fastq/write", wrapper.PostIoFastqWrite) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/io/genbank/parse", wrapper.PostIoGenbankParse) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/io/genbank/write", wrapper.PostIoGenbankWrite) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/pcr/complex_pcr", wrapper.PostPcrComplexPcr) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/pcr/primers/debruijn_barcodes", wrapper.PostPcrPrimersDebruijnBarcodes) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/pcr/primers/marmur_doty", wrapper.PostPcrPrimersMarmurDoty) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/pcr/primers/melting_temperature", wrapper.PostPcrPrimersMeltingTemperature) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/pcr/primers/santa_lucia", wrapper.PostPcrPrimersSantaLucia) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/pcr/simple_pcr", wrapper.PostPcrSimplePcr) - }) - r.Group(func(r chi.Router) { - r.Post(options.BaseURL+"/synthesis/fragment", wrapper.PostSynthesisFragment) - }) - - return r -} - -type PostCdsFixRequestObject struct { - Body *PostCdsFixJSONRequestBody + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCdsFixResponseObject interface { - VisitPostCdsFixResponse(w http.ResponseWriter) error -} +// PostIoSlow5SvbDecompress operation middleware +func (siw *ServerInterfaceWrapper) PostIoSlow5SvbDecompress(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostCdsFix200JSONResponse struct { - Changes []Change `json:"changes"` - Sequence string `json:"sequence"` -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostIoSlow5SvbDecompress(w, r) + })) -func (response PostCdsFix200JSONResponse) VisitPostCdsFixResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(200) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } - return json.NewEncoder(w).Encode(response) + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCdsFix400TextResponse string +// PostIoSlow5Write operation middleware +func (siw *ServerInterfaceWrapper) PostIoSlow5Write(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (response PostCdsFix400TextResponse) VisitPostCdsFixResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(400) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostIoSlow5Write(w, r) + })) - _, err := w.Write([]byte(response)) - return err + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCdsFix500TextResponse string +// PostPcrComplexPcr operation middleware +func (siw *ServerInterfaceWrapper) PostPcrComplexPcr(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (response PostCdsFix500TextResponse) VisitPostCdsFixResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostPcrComplexPcr(w, r) + })) - _, err := w.Write([]byte(response)) - return err -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -type PostCdsOptimizeRequestObject struct { - Body *PostCdsOptimizeJSONRequestBody + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCdsOptimizeResponseObject interface { - VisitPostCdsOptimizeResponse(w http.ResponseWriter) error -} +// PostPcrPrimersDebruijnBarcodes operation middleware +func (siw *ServerInterfaceWrapper) PostPcrPrimersDebruijnBarcodes(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostCdsOptimize200JSONResponse string + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostPcrPrimersDebruijnBarcodes(w, r) + })) -func (response PostCdsOptimize200JSONResponse) VisitPostCdsOptimizeResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(200) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } - return json.NewEncoder(w).Encode(response) + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCdsOptimize400TextResponse string +// PostPcrPrimersDesignPrimers operation middleware +func (siw *ServerInterfaceWrapper) PostPcrPrimersDesignPrimers(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (response PostCdsOptimize400TextResponse) VisitPostCdsOptimizeResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(400) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostPcrPrimersDesignPrimers(w, r) + })) - _, err := w.Write([]byte(response)) - return err + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } + + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCdsOptimize500TextResponse string +// PostPcrPrimersMarmurDoty operation middleware +func (siw *ServerInterfaceWrapper) PostPcrPrimersMarmurDoty(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (response PostCdsOptimize500TextResponse) VisitPostCdsOptimizeResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostPcrPrimersMarmurDoty(w, r) + })) - _, err := w.Write([]byte(response)) - return err -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -type PostCdsTranslateRequestObject struct { - Body *PostCdsTranslateJSONRequestBody + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCdsTranslateResponseObject interface { - VisitPostCdsTranslateResponse(w http.ResponseWriter) error -} +// PostPcrPrimersMeltingTemperature operation middleware +func (siw *ServerInterfaceWrapper) PostPcrPrimersMeltingTemperature(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostCdsTranslate200JSONResponse string + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostPcrPrimersMeltingTemperature(w, r) + })) -func (response PostCdsTranslate200JSONResponse) VisitPostCdsTranslateResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(200) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } - return json.NewEncoder(w).Encode(response) + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCdsTranslate500TextResponse string - -func (response PostCdsTranslate500TextResponse) VisitPostCdsTranslateResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) - - _, err := w.Write([]byte(response)) - return err -} +// PostPcrPrimersSantaLucia operation middleware +func (siw *ServerInterfaceWrapper) PostPcrPrimersSantaLucia(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostCloningGoldengateRequestObject struct { - Body *PostCloningGoldengateJSONRequestBody -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostPcrPrimersSantaLucia(w, r) + })) -type PostCloningGoldengateResponseObject interface { - VisitPostCloningGoldengateResponse(w http.ResponseWriter) error -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -type PostCloningGoldengate200Response struct { + handler.ServeHTTP(w, r.WithContext(ctx)) } -func (response PostCloningGoldengate200Response) VisitPostCloningGoldengateResponse(w http.ResponseWriter) error { - w.WriteHeader(200) - return nil -} +// PostPcrSimplePcr operation middleware +func (siw *ServerInterfaceWrapper) PostPcrSimplePcr(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostCloningGoldengate500TextResponse string + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostPcrSimplePcr(w, r) + })) -func (response PostCloningGoldengate500TextResponse) VisitPostCloningGoldengateResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } - _, err := w.Write([]byte(response)) - return err + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCloningLigateRequestObject struct { - Body *PostCloningLigateJSONRequestBody -} +// PostRandomRandomDna operation middleware +func (siw *ServerInterfaceWrapper) PostRandomRandomDna(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostCloningLigateResponseObject interface { - VisitPostCloningLigateResponse(w http.ResponseWriter) error -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostRandomRandomDna(w, r) + })) -type PostCloningLigate200Response struct { -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -func (response PostCloningLigate200Response) VisitPostCloningLigateResponse(w http.ResponseWriter) error { - w.WriteHeader(200) - return nil + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCloningRestrictionDigestRequestObject struct { - Body *PostCloningRestrictionDigestJSONRequestBody -} +// PostRandomRandomProtein operation middleware +func (siw *ServerInterfaceWrapper) PostRandomRandomProtein(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostCloningRestrictionDigestResponseObject interface { - VisitPostCloningRestrictionDigestResponse(w http.ResponseWriter) error -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostRandomRandomProtein(w, r) + })) -type PostCloningRestrictionDigest200Response struct { -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -func (response PostCloningRestrictionDigest200Response) VisitPostCloningRestrictionDigestResponse(w http.ResponseWriter) error { - w.WriteHeader(200) - return nil + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostCloningRestrictionDigest500TextResponse string +// PostRandomRandomRna operation middleware +func (siw *ServerInterfaceWrapper) PostRandomRandomRna(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (response PostCloningRestrictionDigest500TextResponse) VisitPostCloningRestrictionDigestResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostRandomRandomRna(w, r) + })) - _, err := w.Write([]byte(response)) - return err -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -type PostExecuteLuaRequestObject struct { - Body *PostExecuteLuaJSONRequestBody + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostExecuteLuaResponseObject interface { - VisitPostExecuteLuaResponse(w http.ResponseWriter) error -} +// PostSeqhash operation middleware +func (siw *ServerInterfaceWrapper) PostSeqhash(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostExecuteLua200JSONResponse struct { - Log string `json:"log"` - Output string `json:"output"` -} + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostSeqhash(w, r) + })) -func (response PostExecuteLua200JSONResponse) VisitPostExecuteLuaResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(200) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } - return json.NewEncoder(w).Encode(response) + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostExecuteLua500TextResponse string +// PostSeqhashFragment operation middleware +func (siw *ServerInterfaceWrapper) PostSeqhashFragment(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (response PostExecuteLua500TextResponse) VisitPostExecuteLuaResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostSeqhashFragment(w, r) + })) - _, err := w.Write([]byte(response)) - return err -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -type PostIoFastaParseRequestObject struct { - Body *PostIoFastaParseTextRequestBody + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostIoFastaParseResponseObject interface { - VisitPostIoFastaParseResponse(w http.ResponseWriter) error -} +// PostUtilsIsPalindromic operation middleware +func (siw *ServerInterfaceWrapper) PostUtilsIsPalindromic(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -type PostIoFastaParse200JSONResponse []FastaRecord + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostUtilsIsPalindromic(w, r) + })) -func (response PostIoFastaParse200JSONResponse) VisitPostIoFastaParseResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(200) + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } - return json.NewEncoder(w).Encode(response) + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostIoFastaParse500TextResponse string +// PostUtilsReverseComplement operation middleware +func (siw *ServerInterfaceWrapper) PostUtilsReverseComplement(w http.ResponseWriter, r *http.Request) { + ctx := r.Context() -func (response PostIoFastaParse500TextResponse) VisitPostIoFastaParseResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) + handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + siw.Handler.PostUtilsReverseComplement(w, r) + })) - _, err := w.Write([]byte(response)) - return err -} + for _, middleware := range siw.HandlerMiddlewares { + handler = middleware(handler) + } -type PostIoFastaWriteRequestObject struct { - Body *PostIoFastaWriteJSONRequestBody + handler.ServeHTTP(w, r.WithContext(ctx)) } -type PostIoFastaWriteResponseObject interface { - VisitPostIoFastaWriteResponse(w http.ResponseWriter) error +type UnescapedCookieParamError struct { + ParamName string + Err error } -type PostIoFastaWrite200Response struct { +func (e *UnescapedCookieParamError) Error() string { + return fmt.Sprintf("error unescaping cookie parameter '%s'", e.ParamName) } -func (response PostIoFastaWrite200Response) VisitPostIoFastaWriteResponse(w http.ResponseWriter) error { - w.WriteHeader(200) - return nil +func (e *UnescapedCookieParamError) Unwrap() error { + return e.Err } -type PostIoFastqParseRequestObject struct { - Body *PostIoFastqParseTextRequestBody +type UnmarshalingParamError struct { + ParamName string + Err error } -type PostIoFastqParseResponseObject interface { - VisitPostIoFastqParseResponse(w http.ResponseWriter) error +func (e *UnmarshalingParamError) Error() string { + return fmt.Sprintf("Error unmarshaling parameter %s as JSON: %s", e.ParamName, e.Err.Error()) } -type PostIoFastqParse200JSONResponse []FastqRead - -func (response PostIoFastqParse200JSONResponse) VisitPostIoFastqParseResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(200) - - return json.NewEncoder(w).Encode(response) +func (e *UnmarshalingParamError) Unwrap() error { + return e.Err } -type PostIoFastqWriteRequestObject struct { - Body *PostIoFastqWriteJSONRequestBody +type RequiredParamError struct { + ParamName string } -type PostIoFastqWriteResponseObject interface { - VisitPostIoFastqWriteResponse(w http.ResponseWriter) error +func (e *RequiredParamError) Error() string { + return fmt.Sprintf("Query argument %s is required, but not found", e.ParamName) } -type PostIoFastqWrite200Response struct { +type RequiredHeaderError struct { + ParamName string + Err error } -func (response PostIoFastqWrite200Response) VisitPostIoFastqWriteResponse(w http.ResponseWriter) error { - w.WriteHeader(200) - return nil +func (e *RequiredHeaderError) Error() string { + return fmt.Sprintf("Header parameter %s is required, but not found", e.ParamName) } -type PostIoGenbankParseRequestObject struct { - Body *PostIoGenbankParseTextRequestBody +func (e *RequiredHeaderError) Unwrap() error { + return e.Err } -type PostIoGenbankParseResponseObject interface { - VisitPostIoGenbankParseResponse(w http.ResponseWriter) error +type InvalidParamFormatError struct { + ParamName string + Err error } -type PostIoGenbankParse200JSONResponse []GenbankRecord - -func (response PostIoGenbankParse200JSONResponse) VisitPostIoGenbankParseResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(200) - - return json.NewEncoder(w).Encode(response) +func (e *InvalidParamFormatError) Error() string { + return fmt.Sprintf("Invalid format for parameter %s: %s", e.ParamName, e.Err.Error()) } -type PostIoGenbankParse500TextResponse string - -func (response PostIoGenbankParse500TextResponse) VisitPostIoGenbankParseResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) - - _, err := w.Write([]byte(response)) - return err +func (e *InvalidParamFormatError) Unwrap() error { + return e.Err } -type PostIoGenbankWriteRequestObject struct { - Body *PostIoGenbankWriteJSONRequestBody +type TooManyValuesForParamError struct { + ParamName string + Count int } -type PostIoGenbankWriteResponseObject interface { - VisitPostIoGenbankWriteResponse(w http.ResponseWriter) error +func (e *TooManyValuesForParamError) Error() string { + return fmt.Sprintf("Expected one value for %s, got %d", e.ParamName, e.Count) } -type PostIoGenbankWrite200Response struct { +// Handler creates http.Handler with routing matching OpenAPI spec. +func Handler(si ServerInterface) http.Handler { + return HandlerWithOptions(si, ChiServerOptions{}) } -func (response PostIoGenbankWrite200Response) VisitPostIoGenbankWriteResponse(w http.ResponseWriter) error { - w.WriteHeader(200) - return nil +type ChiServerOptions struct { + BaseURL string + BaseRouter chi.Router + Middlewares []MiddlewareFunc + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) } -type PostPcrComplexPcrRequestObject struct { - Body *PostPcrComplexPcrJSONRequestBody +// HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux. +func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler { + return HandlerWithOptions(si, ChiServerOptions{ + BaseRouter: r, + }) } -type PostPcrComplexPcrResponseObject interface { - VisitPostPcrComplexPcrResponse(w http.ResponseWriter) error +func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler { + return HandlerWithOptions(si, ChiServerOptions{ + BaseURL: baseURL, + BaseRouter: r, + }) } -type PostPcrComplexPcr200JSONResponse []string - -func (response PostPcrComplexPcr200JSONResponse) VisitPostPcrComplexPcrResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(200) - - return json.NewEncoder(w).Encode(response) -} +// HandlerWithOptions creates http.Handler with additional options +func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler { + r := options.BaseRouter -type PostPcrComplexPcr500TextResponse string + if r == nil { + r = chi.NewRouter() + } + if options.ErrorHandlerFunc == nil { + options.ErrorHandlerFunc = func(w http.ResponseWriter, r *http.Request, err error) { + http.Error(w, err.Error(), http.StatusBadRequest) + } + } + wrapper := ServerInterfaceWrapper{ + Handler: si, + HandlerMiddlewares: options.Middlewares, + ErrorHandlerFunc: options.ErrorHandlerFunc, + } -func (response PostPcrComplexPcr500TextResponse) VisitPostPcrComplexPcrResponse(w http.ResponseWriter) error { - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/align/mash", wrapper.PostAlignMash) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/align/mash_many", wrapper.PostAlignMashMany) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/align/needleman_wunsch", wrapper.PostAlignNeedlemanWunsch) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/align/smith_waterman", wrapper.PostAlignSmithWaterman) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/cds/fix", wrapper.PostCdsFix) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/cds/optimize", wrapper.PostCdsOptimize) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/cds/translate", wrapper.PostCdsTranslate) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/cloning/fragment", wrapper.PostCloningFragment) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/cloning/goldengate", wrapper.PostCloningGoldengate) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/cloning/ligate", wrapper.PostCloningLigate) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/cloning/restriction_digest", wrapper.PostCloningRestrictionDigest) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/codon_tables/add_tables", wrapper.PostCodonTablesAddTables) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/codon_tables/compromise_tables", wrapper.PostCodonTablesCompromiseTables) + }) + r.Group(func(r chi.Router) { + r.Get(options.BaseURL+"/codon_tables/default_organisms", wrapper.GetCodonTablesDefaultOrganisms) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/codon_tables/from_genbank", wrapper.PostCodonTablesFromGenbank) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/codon_tables/get_organism_table", wrapper.PostCodonTablesGetOrganismTable) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/codon_tables/new", wrapper.PostCodonTablesNew) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/execute_lua", wrapper.PostExecuteLua) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/folding/linearfold/contra_fold_v2", wrapper.PostFoldingLinearfoldContraFoldV2) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/folding/linearfold/vienna_rna_fold", wrapper.PostFoldingLinearfoldViennaRnaFold) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/folding/zuker", wrapper.PostFoldingZuker) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/fasta/parse", wrapper.PostIoFastaParse) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/fasta/write", wrapper.PostIoFastaWrite) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/fastq/parse", wrapper.PostIoFastqParse) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/fastq/write", wrapper.PostIoFastqWrite) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/genbank/parse", wrapper.PostIoGenbankParse) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/genbank/write", wrapper.PostIoGenbankWrite) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/pileup/parse", wrapper.PostIoPileupParse) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/pileup/write", wrapper.PostIoPileupWrite) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/slow5/parse", wrapper.PostIoSlow5Parse) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/slow5/svb_compress", wrapper.PostIoSlow5SvbCompress) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/slow5/svb_decompress", wrapper.PostIoSlow5SvbDecompress) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/io/slow5/write", wrapper.PostIoSlow5Write) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/pcr/complex_pcr", wrapper.PostPcrComplexPcr) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/pcr/primers/debruijn_barcodes", wrapper.PostPcrPrimersDebruijnBarcodes) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/pcr/primers/design_primers", wrapper.PostPcrPrimersDesignPrimers) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/pcr/primers/marmur_doty", wrapper.PostPcrPrimersMarmurDoty) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/pcr/primers/melting_temperature", wrapper.PostPcrPrimersMeltingTemperature) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/pcr/primers/santa_lucia", wrapper.PostPcrPrimersSantaLucia) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/pcr/simple_pcr", wrapper.PostPcrSimplePcr) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/random/random_dna", wrapper.PostRandomRandomDna) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/random/random_protein", wrapper.PostRandomRandomProtein) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/random/random_rna", wrapper.PostRandomRandomRna) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/seqhash", wrapper.PostSeqhash) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/seqhash_fragment", wrapper.PostSeqhashFragment) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/utils/is_palindromic", wrapper.PostUtilsIsPalindromic) + }) + r.Group(func(r chi.Router) { + r.Post(options.BaseURL+"/utils/reverse_complement", wrapper.PostUtilsReverseComplement) + }) - _, err := w.Write([]byte(response)) - return err + return r } -type PostPcrPrimersDebruijnBarcodesRequestObject struct { - Body *PostPcrPrimersDebruijnBarcodesJSONRequestBody +type PostAlignMashRequestObject struct { + Body *PostAlignMashJSONRequestBody } -type PostPcrPrimersDebruijnBarcodesResponseObject interface { - VisitPostPcrPrimersDebruijnBarcodesResponse(w http.ResponseWriter) error +type PostAlignMashResponseObject interface { + VisitPostAlignMashResponse(w http.ResponseWriter) error } -type PostPcrPrimersDebruijnBarcodes200Response struct { +type PostAlignMash200JSONResponse struct { + Distance *float32 `json:"distance,omitempty"` } -func (response PostPcrPrimersDebruijnBarcodes200Response) VisitPostPcrPrimersDebruijnBarcodesResponse(w http.ResponseWriter) error { +func (response PostAlignMash200JSONResponse) VisitPostAlignMashResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) - return nil -} -type PostPcrPrimersMarmurDotyRequestObject struct { - Body *PostPcrPrimersMarmurDotyJSONRequestBody + return json.NewEncoder(w).Encode(response) } -type PostPcrPrimersMarmurDotyResponseObject interface { - VisitPostPcrPrimersMarmurDotyResponse(w http.ResponseWriter) error +type PostAlignMashManyRequestObject struct { + Body *PostAlignMashManyJSONRequestBody } -type PostPcrPrimersMarmurDoty200Response struct { +type PostAlignMashManyResponseObject interface { + VisitPostAlignMashManyResponse(w http.ResponseWriter) error } -func (response PostPcrPrimersMarmurDoty200Response) VisitPostPcrPrimersMarmurDotyResponse(w http.ResponseWriter) error { +type PostAlignMashMany200JSONResponse []float32 + +func (response PostAlignMashMany200JSONResponse) VisitPostAlignMashManyResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) - return nil + + return json.NewEncoder(w).Encode(response) } -type PostPcrPrimersMeltingTemperatureRequestObject struct { - Body *PostPcrPrimersMeltingTemperatureJSONRequestBody +type PostAlignNeedlemanWunschRequestObject struct { + Body *PostAlignNeedlemanWunschJSONRequestBody } -type PostPcrPrimersMeltingTemperatureResponseObject interface { - VisitPostPcrPrimersMeltingTemperatureResponse(w http.ResponseWriter) error +type PostAlignNeedlemanWunschResponseObject interface { + VisitPostAlignNeedlemanWunschResponse(w http.ResponseWriter) error } -type PostPcrPrimersMeltingTemperature200Response struct { +type PostAlignNeedlemanWunsch200JSONResponse struct { + AlignmentA *string `json:"alignment_a,omitempty"` + AlignmentB *string `json:"alignment_b,omitempty"` + Score *float32 `json:"score,omitempty"` } -func (response PostPcrPrimersMeltingTemperature200Response) VisitPostPcrPrimersMeltingTemperatureResponse(w http.ResponseWriter) error { +func (response PostAlignNeedlemanWunsch200JSONResponse) VisitPostAlignNeedlemanWunschResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) - return nil + + return json.NewEncoder(w).Encode(response) } -type PostPcrPrimersSantaLuciaRequestObject struct { - Body *PostPcrPrimersSantaLuciaJSONRequestBody +type PostAlignSmithWatermanRequestObject struct { + Body *PostAlignSmithWatermanJSONRequestBody } -type PostPcrPrimersSantaLuciaResponseObject interface { - VisitPostPcrPrimersSantaLuciaResponse(w http.ResponseWriter) error +type PostAlignSmithWatermanResponseObject interface { + VisitPostAlignSmithWatermanResponse(w http.ResponseWriter) error } -type PostPcrPrimersSantaLucia200Response struct { +type PostAlignSmithWaterman200JSONResponse struct { + AlignmentA *string `json:"alignment_a,omitempty"` + AlignmentB *string `json:"alignment_b,omitempty"` + Score *float32 `json:"score,omitempty"` } -func (response PostPcrPrimersSantaLucia200Response) VisitPostPcrPrimersSantaLuciaResponse(w http.ResponseWriter) error { +func (response PostAlignSmithWaterman200JSONResponse) VisitPostAlignSmithWatermanResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) - return nil + + return json.NewEncoder(w).Encode(response) } -type PostPcrSimplePcrRequestObject struct { - Body *PostPcrSimplePcrJSONRequestBody +type PostCdsFixRequestObject struct { + Body *PostCdsFixJSONRequestBody } -type PostPcrSimplePcrResponseObject interface { - VisitPostPcrSimplePcrResponse(w http.ResponseWriter) error +type PostCdsFixResponseObject interface { + VisitPostCdsFixResponse(w http.ResponseWriter) error } -type PostPcrSimplePcr200JSONResponse string +type PostCdsFix200JSONResponse struct { + Changes []Change `json:"changes"` + Sequence string `json:"sequence"` +} -func (response PostPcrSimplePcr200JSONResponse) VisitPostPcrSimplePcrResponse(w http.ResponseWriter) error { +func (response PostCdsFix200JSONResponse) VisitPostCdsFixResponse(w http.ResponseWriter) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) return json.NewEncoder(w).Encode(response) } -type PostPcrSimplePcr500TextResponse string +type PostCdsFix400TextResponse string -func (response PostPcrSimplePcr500TextResponse) VisitPostPcrSimplePcrResponse(w http.ResponseWriter) error { +func (response PostCdsFix400TextResponse) VisitPostCdsFixResponse(w http.ResponseWriter) error { w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(500) + w.WriteHeader(400) _, err := w.Write([]byte(response)) return err } -type PostSynthesisFragmentRequestObject struct { - Body *PostSynthesisFragmentJSONRequestBody +type PostCdsFix500TextResponse string + +func (response PostCdsFix500TextResponse) VisitPostCdsFixResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err } -type PostSynthesisFragmentResponseObject interface { - VisitPostSynthesisFragmentResponse(w http.ResponseWriter) error +type PostCdsOptimizeRequestObject struct { + Body *PostCdsOptimizeJSONRequestBody } -type PostSynthesisFragment200JSONResponse struct { - Efficiency float32 `json:"efficiency"` - Fragments []string `json:"fragments"` +type PostCdsOptimizeResponseObject interface { + VisitPostCdsOptimizeResponse(w http.ResponseWriter) error } -func (response PostSynthesisFragment200JSONResponse) VisitPostSynthesisFragmentResponse(w http.ResponseWriter) error { +type PostCdsOptimize200JSONResponse string + +func (response PostCdsOptimize200JSONResponse) VisitPostCdsOptimizeResponse(w http.ResponseWriter) error { w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) return json.NewEncoder(w).Encode(response) } -type PostSynthesisFragment500TextResponse string +type PostCdsOptimize400TextResponse string + +func (response PostCdsOptimize400TextResponse) VisitPostCdsOptimizeResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(400) + + _, err := w.Write([]byte(response)) + return err +} + +type PostCdsOptimize500TextResponse string -func (response PostSynthesisFragment500TextResponse) VisitPostSynthesisFragmentResponse(w http.ResponseWriter) error { +func (response PostCdsOptimize500TextResponse) VisitPostCdsOptimizeResponse(w http.ResponseWriter) error { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(500) @@ -1164,8 +1579,840 @@ func (response PostSynthesisFragment500TextResponse) VisitPostSynthesisFragmentR return err } -// StrictServerInterface represents all server handlers. -type StrictServerInterface interface { +type PostCdsTranslateRequestObject struct { + Body *PostCdsTranslateJSONRequestBody +} + +type PostCdsTranslateResponseObject interface { + VisitPostCdsTranslateResponse(w http.ResponseWriter) error +} + +type PostCdsTranslate200JSONResponse string + +func (response PostCdsTranslate200JSONResponse) VisitPostCdsTranslateResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostCdsTranslate500TextResponse string + +func (response PostCdsTranslate500TextResponse) VisitPostCdsTranslateResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostCloningFragmentRequestObject struct { + Body *PostCloningFragmentJSONRequestBody +} + +type PostCloningFragmentResponseObject interface { + VisitPostCloningFragmentResponse(w http.ResponseWriter) error +} + +type PostCloningFragment200JSONResponse struct { + Efficiency float32 `json:"efficiency"` + Fragments []string `json:"fragments"` +} + +func (response PostCloningFragment200JSONResponse) VisitPostCloningFragmentResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostCloningFragment500TextResponse string + +func (response PostCloningFragment500TextResponse) VisitPostCloningFragmentResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostCloningGoldengateRequestObject struct { + Body *PostCloningGoldengateJSONRequestBody +} + +type PostCloningGoldengateResponseObject interface { + VisitPostCloningGoldengateResponse(w http.ResponseWriter) error +} + +type PostCloningGoldengate200Response struct { +} + +func (response PostCloningGoldengate200Response) VisitPostCloningGoldengateResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostCloningGoldengate500TextResponse string + +func (response PostCloningGoldengate500TextResponse) VisitPostCloningGoldengateResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostCloningLigateRequestObject struct { + Body *PostCloningLigateJSONRequestBody +} + +type PostCloningLigateResponseObject interface { + VisitPostCloningLigateResponse(w http.ResponseWriter) error +} + +type PostCloningLigate200Response struct { +} + +func (response PostCloningLigate200Response) VisitPostCloningLigateResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostCloningRestrictionDigestRequestObject struct { + Body *PostCloningRestrictionDigestJSONRequestBody +} + +type PostCloningRestrictionDigestResponseObject interface { + VisitPostCloningRestrictionDigestResponse(w http.ResponseWriter) error +} + +type PostCloningRestrictionDigest200Response struct { +} + +func (response PostCloningRestrictionDigest200Response) VisitPostCloningRestrictionDigestResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostCloningRestrictionDigest500TextResponse string + +func (response PostCloningRestrictionDigest500TextResponse) VisitPostCloningRestrictionDigestResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostCodonTablesAddTablesRequestObject struct { + Body *PostCodonTablesAddTablesJSONRequestBody +} + +type PostCodonTablesAddTablesResponseObject interface { + VisitPostCodonTablesAddTablesResponse(w http.ResponseWriter) error +} + +type PostCodonTablesAddTables200JSONResponse CodonTable + +func (response PostCodonTablesAddTables200JSONResponse) VisitPostCodonTablesAddTablesResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostCodonTablesCompromiseTablesRequestObject struct { + Body *PostCodonTablesCompromiseTablesJSONRequestBody +} + +type PostCodonTablesCompromiseTablesResponseObject interface { + VisitPostCodonTablesCompromiseTablesResponse(w http.ResponseWriter) error +} + +type PostCodonTablesCompromiseTables200JSONResponse CodonTable + +func (response PostCodonTablesCompromiseTables200JSONResponse) VisitPostCodonTablesCompromiseTablesResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type GetCodonTablesDefaultOrganismsRequestObject struct { +} + +type GetCodonTablesDefaultOrganismsResponseObject interface { + VisitGetCodonTablesDefaultOrganismsResponse(w http.ResponseWriter) error +} + +type GetCodonTablesDefaultOrganisms200JSONResponse []string + +func (response GetCodonTablesDefaultOrganisms200JSONResponse) VisitGetCodonTablesDefaultOrganismsResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostCodonTablesFromGenbankRequestObject struct { + Body *PostCodonTablesFromGenbankJSONRequestBody +} + +type PostCodonTablesFromGenbankResponseObject interface { + VisitPostCodonTablesFromGenbankResponse(w http.ResponseWriter) error +} + +type PostCodonTablesFromGenbank200JSONResponse CodonTable + +func (response PostCodonTablesFromGenbank200JSONResponse) VisitPostCodonTablesFromGenbankResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostCodonTablesGetOrganismTableRequestObject struct { + Body *PostCodonTablesGetOrganismTableJSONRequestBody +} + +type PostCodonTablesGetOrganismTableResponseObject interface { + VisitPostCodonTablesGetOrganismTableResponse(w http.ResponseWriter) error +} + +type PostCodonTablesGetOrganismTable200JSONResponse CodonTable + +func (response PostCodonTablesGetOrganismTable200JSONResponse) VisitPostCodonTablesGetOrganismTableResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostCodonTablesNewRequestObject struct { + Body *PostCodonTablesNewJSONRequestBody +} + +type PostCodonTablesNewResponseObject interface { + VisitPostCodonTablesNewResponse(w http.ResponseWriter) error +} + +type PostCodonTablesNew200JSONResponse CodonTable + +func (response PostCodonTablesNew200JSONResponse) VisitPostCodonTablesNewResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostExecuteLuaRequestObject struct { + Body *PostExecuteLuaJSONRequestBody +} + +type PostExecuteLuaResponseObject interface { + VisitPostExecuteLuaResponse(w http.ResponseWriter) error +} + +type PostExecuteLua200JSONResponse struct { + Log string `json:"log"` + Output string `json:"output"` +} + +func (response PostExecuteLua200JSONResponse) VisitPostExecuteLuaResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostExecuteLua500TextResponse string + +func (response PostExecuteLua500TextResponse) VisitPostExecuteLuaResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostFoldingLinearfoldContraFoldV2RequestObject struct { + Body *PostFoldingLinearfoldContraFoldV2JSONRequestBody +} + +type PostFoldingLinearfoldContraFoldV2ResponseObject interface { + VisitPostFoldingLinearfoldContraFoldV2Response(w http.ResponseWriter) error +} + +type PostFoldingLinearfoldContraFoldV2200JSONResponse struct { + DotBracket *string `json:"dot_bracket,omitempty"` + Score *float32 `json:"score,omitempty"` +} + +func (response PostFoldingLinearfoldContraFoldV2200JSONResponse) VisitPostFoldingLinearfoldContraFoldV2Response(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostFoldingLinearfoldViennaRnaFoldRequestObject struct { + Body *PostFoldingLinearfoldViennaRnaFoldJSONRequestBody +} + +type PostFoldingLinearfoldViennaRnaFoldResponseObject interface { + VisitPostFoldingLinearfoldViennaRnaFoldResponse(w http.ResponseWriter) error +} + +type PostFoldingLinearfoldViennaRnaFold200JSONResponse struct { + DotBracket *string `json:"dot_bracket,omitempty"` + Score *float32 `json:"score,omitempty"` +} + +func (response PostFoldingLinearfoldViennaRnaFold200JSONResponse) VisitPostFoldingLinearfoldViennaRnaFoldResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostFoldingZukerRequestObject struct { + Body *PostFoldingZukerJSONRequestBody +} + +type PostFoldingZukerResponseObject interface { + VisitPostFoldingZukerResponse(w http.ResponseWriter) error +} + +type PostFoldingZuker200JSONResponse struct { + DotBracket *string `json:"dot_bracket,omitempty"` + Score *float32 `json:"score,omitempty"` +} + +func (response PostFoldingZuker200JSONResponse) VisitPostFoldingZukerResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoFastaParseRequestObject struct { + Body *PostIoFastaParseTextRequestBody +} + +type PostIoFastaParseResponseObject interface { + VisitPostIoFastaParseResponse(w http.ResponseWriter) error +} + +type PostIoFastaParse200JSONResponse []FastaRecord + +func (response PostIoFastaParse200JSONResponse) VisitPostIoFastaParseResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoFastaParse500TextResponse string + +func (response PostIoFastaParse500TextResponse) VisitPostIoFastaParseResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostIoFastaWriteRequestObject struct { + Body *PostIoFastaWriteJSONRequestBody +} + +type PostIoFastaWriteResponseObject interface { + VisitPostIoFastaWriteResponse(w http.ResponseWriter) error +} + +type PostIoFastaWrite200Response struct { +} + +func (response PostIoFastaWrite200Response) VisitPostIoFastaWriteResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostIoFastqParseRequestObject struct { + Body *PostIoFastqParseTextRequestBody +} + +type PostIoFastqParseResponseObject interface { + VisitPostIoFastqParseResponse(w http.ResponseWriter) error +} + +type PostIoFastqParse200JSONResponse []FastqRead + +func (response PostIoFastqParse200JSONResponse) VisitPostIoFastqParseResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoFastqWriteRequestObject struct { + Body *PostIoFastqWriteJSONRequestBody +} + +type PostIoFastqWriteResponseObject interface { + VisitPostIoFastqWriteResponse(w http.ResponseWriter) error +} + +type PostIoFastqWrite200Response struct { +} + +func (response PostIoFastqWrite200Response) VisitPostIoFastqWriteResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostIoGenbankParseRequestObject struct { + Body *PostIoGenbankParseTextRequestBody +} + +type PostIoGenbankParseResponseObject interface { + VisitPostIoGenbankParseResponse(w http.ResponseWriter) error +} + +type PostIoGenbankParse200JSONResponse []GenbankRecord + +func (response PostIoGenbankParse200JSONResponse) VisitPostIoGenbankParseResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoGenbankParse500TextResponse string + +func (response PostIoGenbankParse500TextResponse) VisitPostIoGenbankParseResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostIoGenbankWriteRequestObject struct { + Body *PostIoGenbankWriteJSONRequestBody +} + +type PostIoGenbankWriteResponseObject interface { + VisitPostIoGenbankWriteResponse(w http.ResponseWriter) error +} + +type PostIoGenbankWrite200Response struct { +} + +func (response PostIoGenbankWrite200Response) VisitPostIoGenbankWriteResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostIoPileupParseRequestObject struct { + Body *PostIoPileupParseJSONRequestBody +} + +type PostIoPileupParseResponseObject interface { + VisitPostIoPileupParseResponse(w http.ResponseWriter) error +} + +type PostIoPileupParse200JSONResponse []PileupLine + +func (response PostIoPileupParse200JSONResponse) VisitPostIoPileupParseResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoPileupWriteRequestObject struct { + Body *PostIoPileupWriteJSONRequestBody +} + +type PostIoPileupWriteResponseObject interface { + VisitPostIoPileupWriteResponse(w http.ResponseWriter) error +} + +type PostIoPileupWrite200JSONResponse struct { + Data *string `json:"data,omitempty"` +} + +func (response PostIoPileupWrite200JSONResponse) VisitPostIoPileupWriteResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoSlow5ParseRequestObject struct { + Body *PostIoSlow5ParseJSONRequestBody +} + +type PostIoSlow5ParseResponseObject interface { + VisitPostIoSlow5ParseResponse(w http.ResponseWriter) error +} + +type PostIoSlow5Parse200JSONResponse struct { + Header *Slow5Header `json:"header,omitempty"` + Reads *[]Slow5Read `json:"reads,omitempty"` +} + +func (response PostIoSlow5Parse200JSONResponse) VisitPostIoSlow5ParseResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoSlow5SvbCompressRequestObject struct { + Body *PostIoSlow5SvbCompressJSONRequestBody +} + +type PostIoSlow5SvbCompressResponseObject interface { + VisitPostIoSlow5SvbCompressResponse(w http.ResponseWriter) error +} + +type PostIoSlow5SvbCompress200JSONResponse struct { + Data *string `json:"data,omitempty"` + Mask *string `json:"mask,omitempty"` +} + +func (response PostIoSlow5SvbCompress200JSONResponse) VisitPostIoSlow5SvbCompressResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoSlow5SvbDecompressRequestObject struct { + Body *PostIoSlow5SvbDecompressJSONRequestBody +} + +type PostIoSlow5SvbDecompressResponseObject interface { + VisitPostIoSlow5SvbDecompressResponse(w http.ResponseWriter) error +} + +type PostIoSlow5SvbDecompress200JSONResponse struct { + RawSignal *[]int `json:"rawSignal,omitempty"` +} + +func (response PostIoSlow5SvbDecompress200JSONResponse) VisitPostIoSlow5SvbDecompressResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostIoSlow5WriteRequestObject struct { + Body *PostIoSlow5WriteJSONRequestBody +} + +type PostIoSlow5WriteResponseObject interface { + VisitPostIoSlow5WriteResponse(w http.ResponseWriter) error +} + +type PostIoSlow5Write200JSONResponse struct { + Data *string `json:"data,omitempty"` +} + +func (response PostIoSlow5Write200JSONResponse) VisitPostIoSlow5WriteResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostPcrComplexPcrRequestObject struct { + Body *PostPcrComplexPcrJSONRequestBody +} + +type PostPcrComplexPcrResponseObject interface { + VisitPostPcrComplexPcrResponse(w http.ResponseWriter) error +} + +type PostPcrComplexPcr200JSONResponse []string + +func (response PostPcrComplexPcr200JSONResponse) VisitPostPcrComplexPcrResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostPcrComplexPcr500TextResponse string + +func (response PostPcrComplexPcr500TextResponse) VisitPostPcrComplexPcrResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostPcrPrimersDebruijnBarcodesRequestObject struct { + Body *PostPcrPrimersDebruijnBarcodesJSONRequestBody +} + +type PostPcrPrimersDebruijnBarcodesResponseObject interface { + VisitPostPcrPrimersDebruijnBarcodesResponse(w http.ResponseWriter) error +} + +type PostPcrPrimersDebruijnBarcodes200Response struct { +} + +func (response PostPcrPrimersDebruijnBarcodes200Response) VisitPostPcrPrimersDebruijnBarcodesResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostPcrPrimersDesignPrimersRequestObject struct { + Body *PostPcrPrimersDesignPrimersJSONRequestBody +} + +type PostPcrPrimersDesignPrimersResponseObject interface { + VisitPostPcrPrimersDesignPrimersResponse(w http.ResponseWriter) error +} + +type PostPcrPrimersDesignPrimers200JSONResponse struct { + ForwardPrimer *string `json:"forward_primer,omitempty"` + ReversePrimer *string `json:"reverse_primer,omitempty"` +} + +func (response PostPcrPrimersDesignPrimers200JSONResponse) VisitPostPcrPrimersDesignPrimersResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostPcrPrimersMarmurDotyRequestObject struct { + Body *PostPcrPrimersMarmurDotyJSONRequestBody +} + +type PostPcrPrimersMarmurDotyResponseObject interface { + VisitPostPcrPrimersMarmurDotyResponse(w http.ResponseWriter) error +} + +type PostPcrPrimersMarmurDoty200Response struct { +} + +func (response PostPcrPrimersMarmurDoty200Response) VisitPostPcrPrimersMarmurDotyResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostPcrPrimersMeltingTemperatureRequestObject struct { + Body *PostPcrPrimersMeltingTemperatureJSONRequestBody +} + +type PostPcrPrimersMeltingTemperatureResponseObject interface { + VisitPostPcrPrimersMeltingTemperatureResponse(w http.ResponseWriter) error +} + +type PostPcrPrimersMeltingTemperature200Response struct { +} + +func (response PostPcrPrimersMeltingTemperature200Response) VisitPostPcrPrimersMeltingTemperatureResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostPcrPrimersSantaLuciaRequestObject struct { + Body *PostPcrPrimersSantaLuciaJSONRequestBody +} + +type PostPcrPrimersSantaLuciaResponseObject interface { + VisitPostPcrPrimersSantaLuciaResponse(w http.ResponseWriter) error +} + +type PostPcrPrimersSantaLucia200Response struct { +} + +func (response PostPcrPrimersSantaLucia200Response) VisitPostPcrPrimersSantaLuciaResponse(w http.ResponseWriter) error { + w.WriteHeader(200) + return nil +} + +type PostPcrSimplePcrRequestObject struct { + Body *PostPcrSimplePcrJSONRequestBody +} + +type PostPcrSimplePcrResponseObject interface { + VisitPostPcrSimplePcrResponse(w http.ResponseWriter) error +} + +type PostPcrSimplePcr200JSONResponse string + +func (response PostPcrSimplePcr200JSONResponse) VisitPostPcrSimplePcrResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostPcrSimplePcr500TextResponse string + +func (response PostPcrSimplePcr500TextResponse) VisitPostPcrSimplePcrResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "text/plain") + w.WriteHeader(500) + + _, err := w.Write([]byte(response)) + return err +} + +type PostRandomRandomDnaRequestObject struct { + Body *PostRandomRandomDnaJSONRequestBody +} + +type PostRandomRandomDnaResponseObject interface { + VisitPostRandomRandomDnaResponse(w http.ResponseWriter) error +} + +type PostRandomRandomDna200JSONResponse struct { + Sequence *string `json:"sequence,omitempty"` +} + +func (response PostRandomRandomDna200JSONResponse) VisitPostRandomRandomDnaResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostRandomRandomProteinRequestObject struct { + Body *PostRandomRandomProteinJSONRequestBody +} + +type PostRandomRandomProteinResponseObject interface { + VisitPostRandomRandomProteinResponse(w http.ResponseWriter) error +} + +type PostRandomRandomProtein200JSONResponse struct { + Sequence *string `json:"sequence,omitempty"` +} + +func (response PostRandomRandomProtein200JSONResponse) VisitPostRandomRandomProteinResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostRandomRandomRnaRequestObject struct { + Body *PostRandomRandomRnaJSONRequestBody +} + +type PostRandomRandomRnaResponseObject interface { + VisitPostRandomRandomRnaResponse(w http.ResponseWriter) error +} + +type PostRandomRandomRna200JSONResponse struct { + Sequence *string `json:"sequence,omitempty"` +} + +func (response PostRandomRandomRna200JSONResponse) VisitPostRandomRandomRnaResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostSeqhashRequestObject struct { + Body *PostSeqhashJSONRequestBody +} + +type PostSeqhashResponseObject interface { + VisitPostSeqhashResponse(w http.ResponseWriter) error +} + +type PostSeqhash200JSONResponse struct { + Hash *string `json:"hash,omitempty"` +} + +func (response PostSeqhash200JSONResponse) VisitPostSeqhashResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostSeqhashFragmentRequestObject struct { + Body *PostSeqhashFragmentJSONRequestBody +} + +type PostSeqhashFragmentResponseObject interface { + VisitPostSeqhashFragmentResponse(w http.ResponseWriter) error +} + +type PostSeqhashFragment200JSONResponse struct { + Hash *string `json:"hash,omitempty"` +} + +func (response PostSeqhashFragment200JSONResponse) VisitPostSeqhashFragmentResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostUtilsIsPalindromicRequestObject struct { + Body *PostUtilsIsPalindromicJSONRequestBody +} + +type PostUtilsIsPalindromicResponseObject interface { + VisitPostUtilsIsPalindromicResponse(w http.ResponseWriter) error +} + +type PostUtilsIsPalindromic200JSONResponse struct { + IsPalindromic *bool `json:"isPalindromic,omitempty"` +} + +func (response PostUtilsIsPalindromic200JSONResponse) VisitPostUtilsIsPalindromicResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type PostUtilsReverseComplementRequestObject struct { + Body *PostUtilsReverseComplementJSONRequestBody +} + +type PostUtilsReverseComplementResponseObject interface { + VisitPostUtilsReverseComplementResponse(w http.ResponseWriter) error +} + +type PostUtilsReverseComplement200JSONResponse struct { + Sequence *string `json:"sequence,omitempty"` +} + +func (response PostUtilsReverseComplement200JSONResponse) VisitPostUtilsReverseComplementResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +// StrictServerInterface represents all server handlers. +type StrictServerInterface interface { + // Calculate Mash Distance + // (POST /align/mash) + PostAlignMash(ctx context.Context, request PostAlignMashRequestObject) (PostAlignMashResponseObject, error) + // Calculate Mash Distance Against Many Sequences + // (POST /align/mash_many) + PostAlignMashMany(ctx context.Context, request PostAlignMashManyRequestObject) (PostAlignMashManyResponseObject, error) + // Perform Needleman-Wunsch Alignment + // (POST /align/needleman_wunsch) + PostAlignNeedlemanWunsch(ctx context.Context, request PostAlignNeedlemanWunschRequestObject) (PostAlignNeedlemanWunschResponseObject, error) + // Perform Smith-Waterman Alignment + // (POST /align/smith_waterman) + PostAlignSmithWaterman(ctx context.Context, request PostAlignSmithWatermanRequestObject) (PostAlignSmithWatermanResponseObject, error) // Fix CDS // (POST /cds/fix) PostCdsFix(ctx context.Context, request PostCdsFixRequestObject) (PostCdsFixResponseObject, error) @@ -1175,7 +2422,10 @@ type StrictServerInterface interface { // Translate CDS // (POST /cds/translate) PostCdsTranslate(ctx context.Context, request PostCdsTranslateRequestObject) (PostCdsTranslateResponseObject, error) - // Simulate Golden Gate assembly + // Fragment DNA for GoldenGate + // (POST /cloning/fragment) + PostCloningFragment(ctx context.Context, request PostCloningFragmentRequestObject) (PostCloningFragmentResponseObject, error) + // Simulate GoldenGate assembly // (POST /cloning/goldengate) PostCloningGoldengate(ctx context.Context, request PostCloningGoldengateRequestObject) (PostCloningGoldengateResponseObject, error) // Simulate ligation @@ -1184,9 +2434,36 @@ type StrictServerInterface interface { // Simulate restriction digest // (POST /cloning/restriction_digest) PostCloningRestrictionDigest(ctx context.Context, request PostCloningRestrictionDigestRequestObject) (PostCloningRestrictionDigestResponseObject, error) + // Add Two Codon Tables + // (POST /codon_tables/add_tables) + PostCodonTablesAddTables(ctx context.Context, request PostCodonTablesAddTablesRequestObject) (PostCodonTablesAddTablesResponseObject, error) + // Create Compromise Codon Table + // (POST /codon_tables/compromise_tables) + PostCodonTablesCompromiseTables(ctx context.Context, request PostCodonTablesCompromiseTablesRequestObject) (PostCodonTablesCompromiseTablesResponseObject, error) + // Get Default Organism Names + // (GET /codon_tables/default_organisms) + GetCodonTablesDefaultOrganisms(ctx context.Context, request GetCodonTablesDefaultOrganismsRequestObject) (GetCodonTablesDefaultOrganismsResponseObject, error) + // Create Weighted Codon Table from Genbank Record + // (POST /codon_tables/from_genbank) + PostCodonTablesFromGenbank(ctx context.Context, request PostCodonTablesFromGenbankRequestObject) (PostCodonTablesFromGenbankResponseObject, error) + // Get Codon Table for an Organism + // (POST /codon_tables/get_organism_table) + PostCodonTablesGetOrganismTable(ctx context.Context, request PostCodonTablesGetOrganismTableRequestObject) (PostCodonTablesGetOrganismTableResponseObject, error) + // Create New Codon Table + // (POST /codon_tables/new) + PostCodonTablesNew(ctx context.Context, request PostCodonTablesNewRequestObject) (PostCodonTablesNewResponseObject, error) // Run a lua script // (POST /execute_lua) PostExecuteLua(ctx context.Context, request PostExecuteLuaRequestObject) (PostExecuteLuaResponseObject, error) + // Contra Fold V2 + // (POST /folding/linearfold/contra_fold_v2) + PostFoldingLinearfoldContraFoldV2(ctx context.Context, request PostFoldingLinearfoldContraFoldV2RequestObject) (PostFoldingLinearfoldContraFoldV2ResponseObject, error) + // Vienna RNA Fold + // (POST /folding/linearfold/vienna_rna_fold) + PostFoldingLinearfoldViennaRnaFold(ctx context.Context, request PostFoldingLinearfoldViennaRnaFoldRequestObject) (PostFoldingLinearfoldViennaRnaFoldResponseObject, error) + // Zuker Folding + // (POST /folding/zuker) + PostFoldingZuker(ctx context.Context, request PostFoldingZukerRequestObject) (PostFoldingZukerResponseObject, error) // Parse FASTA data // (POST /io/fasta/parse) PostIoFastaParse(ctx context.Context, request PostIoFastaParseRequestObject) (PostIoFastaParseResponseObject, error) @@ -1205,12 +2482,33 @@ type StrictServerInterface interface { // Write Genbank data // (POST /io/genbank/write) PostIoGenbankWrite(ctx context.Context, request PostIoGenbankWriteRequestObject) (PostIoGenbankWriteResponseObject, error) + // Parse Pileup Data + // (POST /io/pileup/parse) + PostIoPileupParse(ctx context.Context, request PostIoPileupParseRequestObject) (PostIoPileupParseResponseObject, error) + // Write Pileup Data + // (POST /io/pileup/write) + PostIoPileupWrite(ctx context.Context, request PostIoPileupWriteRequestObject) (PostIoPileupWriteResponseObject, error) + // Parse slow5 Data + // (POST /io/slow5/parse) + PostIoSlow5Parse(ctx context.Context, request PostIoSlow5ParseRequestObject) (PostIoSlow5ParseResponseObject, error) + // Compress Raw Signal with SVB + // (POST /io/slow5/svb_compress) + PostIoSlow5SvbCompress(ctx context.Context, request PostIoSlow5SvbCompressRequestObject) (PostIoSlow5SvbCompressResponseObject, error) + // Decompress Raw Signal with SVB + // (POST /io/slow5/svb_decompress) + PostIoSlow5SvbDecompress(ctx context.Context, request PostIoSlow5SvbDecompressRequestObject) (PostIoSlow5SvbDecompressResponseObject, error) + // Write slow5 Data + // (POST /io/slow5/write) + PostIoSlow5Write(ctx context.Context, request PostIoSlow5WriteRequestObject) (PostIoSlow5WriteResponseObject, error) // Simulate PCR // (POST /pcr/complex_pcr) PostPcrComplexPcr(ctx context.Context, request PostPcrComplexPcrRequestObject) (PostPcrComplexPcrResponseObject, error) // Generate De Bruijn sequence-based barcodes // (POST /pcr/primers/debruijn_barcodes) PostPcrPrimersDebruijnBarcodes(ctx context.Context, request PostPcrPrimersDebruijnBarcodesRequestObject) (PostPcrPrimersDebruijnBarcodesResponseObject, error) + // Design PCR Primers + // (POST /pcr/primers/design_primers) + PostPcrPrimersDesignPrimers(ctx context.Context, request PostPcrPrimersDesignPrimersRequestObject) (PostPcrPrimersDesignPrimersResponseObject, error) // Calculate Melting Temperature using Marmur Doty method // (POST /pcr/primers/marmur_doty) PostPcrPrimersMarmurDoty(ctx context.Context, request PostPcrPrimersMarmurDotyRequestObject) (PostPcrPrimersMarmurDotyResponseObject, error) @@ -1223,45 +2521,896 @@ type StrictServerInterface interface { // Simulate a simple PCR // (POST /pcr/simple_pcr) PostPcrSimplePcr(ctx context.Context, request PostPcrSimplePcrRequestObject) (PostPcrSimplePcrResponseObject, error) - // Fragment CDS - // (POST /synthesis/fragment) - PostSynthesisFragment(ctx context.Context, request PostSynthesisFragmentRequestObject) (PostSynthesisFragmentResponseObject, error) + // Generate Random DNA Sequence + // (POST /random/random_dna) + PostRandomRandomDna(ctx context.Context, request PostRandomRandomDnaRequestObject) (PostRandomRandomDnaResponseObject, error) + // Generate Random Protein Sequence + // (POST /random/random_protein) + PostRandomRandomProtein(ctx context.Context, request PostRandomRandomProteinRequestObject) (PostRandomRandomProteinResponseObject, error) + // Generate Random RNA Sequence + // (POST /random/random_rna) + PostRandomRandomRna(ctx context.Context, request PostRandomRandomRnaRequestObject) (PostRandomRandomRnaResponseObject, error) + // Sequence Hashing + // (POST /seqhash) + PostSeqhash(ctx context.Context, request PostSeqhashRequestObject) (PostSeqhashResponseObject, error) + // Sequence Hashing for Fragment + // (POST /seqhash_fragment) + PostSeqhashFragment(ctx context.Context, request PostSeqhashFragmentRequestObject) (PostSeqhashFragmentResponseObject, error) + // Check if Sequence is Palindromic + // (POST /utils/is_palindromic) + PostUtilsIsPalindromic(ctx context.Context, request PostUtilsIsPalindromicRequestObject) (PostUtilsIsPalindromicResponseObject, error) + // Reverse Complement of DNA Sequence + // (POST /utils/reverse_complement) + PostUtilsReverseComplement(ctx context.Context, request PostUtilsReverseComplementRequestObject) (PostUtilsReverseComplementResponseObject, error) +} + +type StrictHandlerFunc = strictnethttp.StrictHttpHandlerFunc +type StrictMiddlewareFunc = strictnethttp.StrictHttpMiddlewareFunc + +type StrictHTTPServerOptions struct { + RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) +} + +func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface { + return &strictHandler{ssi: ssi, middlewares: middlewares, options: StrictHTTPServerOptions{ + RequestErrorHandlerFunc: func(w http.ResponseWriter, r *http.Request, err error) { + http.Error(w, err.Error(), http.StatusBadRequest) + }, + ResponseErrorHandlerFunc: func(w http.ResponseWriter, r *http.Request, err error) { + http.Error(w, err.Error(), http.StatusInternalServerError) + }, + }} +} + +func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface { + return &strictHandler{ssi: ssi, middlewares: middlewares, options: options} +} + +type strictHandler struct { + ssi StrictServerInterface + middlewares []StrictMiddlewareFunc + options StrictHTTPServerOptions +} + +// PostAlignMash operation middleware +func (sh *strictHandler) PostAlignMash(w http.ResponseWriter, r *http.Request) { + var request PostAlignMashRequestObject + + var body PostAlignMashJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostAlignMash(ctx, request.(PostAlignMashRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostAlignMash") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostAlignMashResponseObject); ok { + if err := validResponse.VisitPostAlignMashResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostAlignMashMany operation middleware +func (sh *strictHandler) PostAlignMashMany(w http.ResponseWriter, r *http.Request) { + var request PostAlignMashManyRequestObject + + var body PostAlignMashManyJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostAlignMashMany(ctx, request.(PostAlignMashManyRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostAlignMashMany") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostAlignMashManyResponseObject); ok { + if err := validResponse.VisitPostAlignMashManyResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostAlignNeedlemanWunsch operation middleware +func (sh *strictHandler) PostAlignNeedlemanWunsch(w http.ResponseWriter, r *http.Request) { + var request PostAlignNeedlemanWunschRequestObject + + var body PostAlignNeedlemanWunschJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostAlignNeedlemanWunsch(ctx, request.(PostAlignNeedlemanWunschRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostAlignNeedlemanWunsch") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostAlignNeedlemanWunschResponseObject); ok { + if err := validResponse.VisitPostAlignNeedlemanWunschResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostAlignSmithWaterman operation middleware +func (sh *strictHandler) PostAlignSmithWaterman(w http.ResponseWriter, r *http.Request) { + var request PostAlignSmithWatermanRequestObject + + var body PostAlignSmithWatermanJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostAlignSmithWaterman(ctx, request.(PostAlignSmithWatermanRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostAlignSmithWaterman") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostAlignSmithWatermanResponseObject); ok { + if err := validResponse.VisitPostAlignSmithWatermanResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCdsFix operation middleware +func (sh *strictHandler) PostCdsFix(w http.ResponseWriter, r *http.Request) { + var request PostCdsFixRequestObject + + var body PostCdsFixJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCdsFix(ctx, request.(PostCdsFixRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCdsFix") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCdsFixResponseObject); ok { + if err := validResponse.VisitPostCdsFixResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCdsOptimize operation middleware +func (sh *strictHandler) PostCdsOptimize(w http.ResponseWriter, r *http.Request) { + var request PostCdsOptimizeRequestObject + + var body PostCdsOptimizeJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCdsOptimize(ctx, request.(PostCdsOptimizeRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCdsOptimize") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCdsOptimizeResponseObject); ok { + if err := validResponse.VisitPostCdsOptimizeResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCdsTranslate operation middleware +func (sh *strictHandler) PostCdsTranslate(w http.ResponseWriter, r *http.Request) { + var request PostCdsTranslateRequestObject + + var body PostCdsTranslateJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCdsTranslate(ctx, request.(PostCdsTranslateRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCdsTranslate") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCdsTranslateResponseObject); ok { + if err := validResponse.VisitPostCdsTranslateResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCloningFragment operation middleware +func (sh *strictHandler) PostCloningFragment(w http.ResponseWriter, r *http.Request) { + var request PostCloningFragmentRequestObject + + var body PostCloningFragmentJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCloningFragment(ctx, request.(PostCloningFragmentRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCloningFragment") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCloningFragmentResponseObject); ok { + if err := validResponse.VisitPostCloningFragmentResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCloningGoldengate operation middleware +func (sh *strictHandler) PostCloningGoldengate(w http.ResponseWriter, r *http.Request) { + var request PostCloningGoldengateRequestObject + + var body PostCloningGoldengateJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCloningGoldengate(ctx, request.(PostCloningGoldengateRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCloningGoldengate") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCloningGoldengateResponseObject); ok { + if err := validResponse.VisitPostCloningGoldengateResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCloningLigate operation middleware +func (sh *strictHandler) PostCloningLigate(w http.ResponseWriter, r *http.Request) { + var request PostCloningLigateRequestObject + + var body PostCloningLigateJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCloningLigate(ctx, request.(PostCloningLigateRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCloningLigate") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCloningLigateResponseObject); ok { + if err := validResponse.VisitPostCloningLigateResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCloningRestrictionDigest operation middleware +func (sh *strictHandler) PostCloningRestrictionDigest(w http.ResponseWriter, r *http.Request) { + var request PostCloningRestrictionDigestRequestObject + + var body PostCloningRestrictionDigestJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCloningRestrictionDigest(ctx, request.(PostCloningRestrictionDigestRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCloningRestrictionDigest") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCloningRestrictionDigestResponseObject); ok { + if err := validResponse.VisitPostCloningRestrictionDigestResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCodonTablesAddTables operation middleware +func (sh *strictHandler) PostCodonTablesAddTables(w http.ResponseWriter, r *http.Request) { + var request PostCodonTablesAddTablesRequestObject + + var body PostCodonTablesAddTablesJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCodonTablesAddTables(ctx, request.(PostCodonTablesAddTablesRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCodonTablesAddTables") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCodonTablesAddTablesResponseObject); ok { + if err := validResponse.VisitPostCodonTablesAddTablesResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCodonTablesCompromiseTables operation middleware +func (sh *strictHandler) PostCodonTablesCompromiseTables(w http.ResponseWriter, r *http.Request) { + var request PostCodonTablesCompromiseTablesRequestObject + + var body PostCodonTablesCompromiseTablesJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCodonTablesCompromiseTables(ctx, request.(PostCodonTablesCompromiseTablesRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCodonTablesCompromiseTables") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCodonTablesCompromiseTablesResponseObject); ok { + if err := validResponse.VisitPostCodonTablesCompromiseTablesResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// GetCodonTablesDefaultOrganisms operation middleware +func (sh *strictHandler) GetCodonTablesDefaultOrganisms(w http.ResponseWriter, r *http.Request) { + var request GetCodonTablesDefaultOrganismsRequestObject + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.GetCodonTablesDefaultOrganisms(ctx, request.(GetCodonTablesDefaultOrganismsRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "GetCodonTablesDefaultOrganisms") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(GetCodonTablesDefaultOrganismsResponseObject); ok { + if err := validResponse.VisitGetCodonTablesDefaultOrganismsResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCodonTablesFromGenbank operation middleware +func (sh *strictHandler) PostCodonTablesFromGenbank(w http.ResponseWriter, r *http.Request) { + var request PostCodonTablesFromGenbankRequestObject + + var body PostCodonTablesFromGenbankJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCodonTablesFromGenbank(ctx, request.(PostCodonTablesFromGenbankRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCodonTablesFromGenbank") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCodonTablesFromGenbankResponseObject); ok { + if err := validResponse.VisitPostCodonTablesFromGenbankResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCodonTablesGetOrganismTable operation middleware +func (sh *strictHandler) PostCodonTablesGetOrganismTable(w http.ResponseWriter, r *http.Request) { + var request PostCodonTablesGetOrganismTableRequestObject + + var body PostCodonTablesGetOrganismTableJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCodonTablesGetOrganismTable(ctx, request.(PostCodonTablesGetOrganismTableRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCodonTablesGetOrganismTable") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCodonTablesGetOrganismTableResponseObject); ok { + if err := validResponse.VisitPostCodonTablesGetOrganismTableResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostCodonTablesNew operation middleware +func (sh *strictHandler) PostCodonTablesNew(w http.ResponseWriter, r *http.Request) { + var request PostCodonTablesNewRequestObject + + var body PostCodonTablesNewJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostCodonTablesNew(ctx, request.(PostCodonTablesNewRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostCodonTablesNew") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostCodonTablesNewResponseObject); ok { + if err := validResponse.VisitPostCodonTablesNewResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostExecuteLua operation middleware +func (sh *strictHandler) PostExecuteLua(w http.ResponseWriter, r *http.Request) { + var request PostExecuteLuaRequestObject + + var body PostExecuteLuaJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostExecuteLua(ctx, request.(PostExecuteLuaRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostExecuteLua") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostExecuteLuaResponseObject); ok { + if err := validResponse.VisitPostExecuteLuaResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } } -type StrictHandlerFunc = strictnethttp.StrictHttpHandlerFunc -type StrictMiddlewareFunc = strictnethttp.StrictHttpMiddlewareFunc +// PostFoldingLinearfoldContraFoldV2 operation middleware +func (sh *strictHandler) PostFoldingLinearfoldContraFoldV2(w http.ResponseWriter, r *http.Request) { + var request PostFoldingLinearfoldContraFoldV2RequestObject -type StrictHTTPServerOptions struct { - RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) - ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + var body PostFoldingLinearfoldContraFoldV2JSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostFoldingLinearfoldContraFoldV2(ctx, request.(PostFoldingLinearfoldContraFoldV2RequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostFoldingLinearfoldContraFoldV2") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostFoldingLinearfoldContraFoldV2ResponseObject); ok { + if err := validResponse.VisitPostFoldingLinearfoldContraFoldV2Response(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } } -func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface { - return &strictHandler{ssi: ssi, middlewares: middlewares, options: StrictHTTPServerOptions{ - RequestErrorHandlerFunc: func(w http.ResponseWriter, r *http.Request, err error) { - http.Error(w, err.Error(), http.StatusBadRequest) - }, - ResponseErrorHandlerFunc: func(w http.ResponseWriter, r *http.Request, err error) { - http.Error(w, err.Error(), http.StatusInternalServerError) - }, - }} +// PostFoldingLinearfoldViennaRnaFold operation middleware +func (sh *strictHandler) PostFoldingLinearfoldViennaRnaFold(w http.ResponseWriter, r *http.Request) { + var request PostFoldingLinearfoldViennaRnaFoldRequestObject + + var body PostFoldingLinearfoldViennaRnaFoldJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostFoldingLinearfoldViennaRnaFold(ctx, request.(PostFoldingLinearfoldViennaRnaFoldRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostFoldingLinearfoldViennaRnaFold") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostFoldingLinearfoldViennaRnaFoldResponseObject); ok { + if err := validResponse.VisitPostFoldingLinearfoldViennaRnaFoldResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostFoldingZuker operation middleware +func (sh *strictHandler) PostFoldingZuker(w http.ResponseWriter, r *http.Request) { + var request PostFoldingZukerRequestObject + + var body PostFoldingZukerJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostFoldingZuker(ctx, request.(PostFoldingZukerRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostFoldingZuker") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostFoldingZukerResponseObject); ok { + if err := validResponse.VisitPostFoldingZukerResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostIoFastaParse operation middleware +func (sh *strictHandler) PostIoFastaParse(w http.ResponseWriter, r *http.Request) { + var request PostIoFastaParseRequestObject + + data, err := io.ReadAll(r.Body) + if err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't read body: %w", err)) + return + } + body := PostIoFastaParseTextRequestBody(data) + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostIoFastaParse(ctx, request.(PostIoFastaParseRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostIoFastaParse") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostIoFastaParseResponseObject); ok { + if err := validResponse.VisitPostIoFastaParseResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostIoFastaWrite operation middleware +func (sh *strictHandler) PostIoFastaWrite(w http.ResponseWriter, r *http.Request) { + var request PostIoFastaWriteRequestObject + + var body PostIoFastaWriteJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostIoFastaWrite(ctx, request.(PostIoFastaWriteRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostIoFastaWrite") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostIoFastaWriteResponseObject); ok { + if err := validResponse.VisitPostIoFastaWriteResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostIoFastqParse operation middleware +func (sh *strictHandler) PostIoFastqParse(w http.ResponseWriter, r *http.Request) { + var request PostIoFastqParseRequestObject + + data, err := io.ReadAll(r.Body) + if err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't read body: %w", err)) + return + } + body := PostIoFastqParseTextRequestBody(data) + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostIoFastqParse(ctx, request.(PostIoFastqParseRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostIoFastqParse") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostIoFastqParseResponseObject); ok { + if err := validResponse.VisitPostIoFastqParseResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostIoFastqWrite operation middleware +func (sh *strictHandler) PostIoFastqWrite(w http.ResponseWriter, r *http.Request) { + var request PostIoFastqWriteRequestObject + + var body PostIoFastqWriteJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostIoFastqWrite(ctx, request.(PostIoFastqWriteRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostIoFastqWrite") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostIoFastqWriteResponseObject); ok { + if err := validResponse.VisitPostIoFastqWriteResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } +} + +// PostIoGenbankParse operation middleware +func (sh *strictHandler) PostIoGenbankParse(w http.ResponseWriter, r *http.Request) { + var request PostIoGenbankParseRequestObject + + data, err := io.ReadAll(r.Body) + if err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't read body: %w", err)) + return + } + body := PostIoGenbankParseTextRequestBody(data) + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostIoGenbankParse(ctx, request.(PostIoGenbankParseRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostIoGenbankParse") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostIoGenbankParseResponseObject); ok { + if err := validResponse.VisitPostIoGenbankParseResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } } -func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface { - return &strictHandler{ssi: ssi, middlewares: middlewares, options: options} -} +// PostIoGenbankWrite operation middleware +func (sh *strictHandler) PostIoGenbankWrite(w http.ResponseWriter, r *http.Request) { + var request PostIoGenbankWriteRequestObject -type strictHandler struct { - ssi StrictServerInterface - middlewares []StrictMiddlewareFunc - options StrictHTTPServerOptions + var body PostIoGenbankWriteJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) + return + } + request.Body = &body + + handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { + return sh.ssi.PostIoGenbankWrite(ctx, request.(PostIoGenbankWriteRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "PostIoGenbankWrite") + } + + response, err := handler(r.Context(), w, r, request) + + if err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } else if validResponse, ok := response.(PostIoGenbankWriteResponseObject); ok { + if err := validResponse.VisitPostIoGenbankWriteResponse(w); err != nil { + sh.options.ResponseErrorHandlerFunc(w, r, err) + } + } else if response != nil { + sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response)) + } } -// PostCdsFix operation middleware -func (sh *strictHandler) PostCdsFix(w http.ResponseWriter, r *http.Request) { - var request PostCdsFixRequestObject +// PostIoPileupParse operation middleware +func (sh *strictHandler) PostIoPileupParse(w http.ResponseWriter, r *http.Request) { + var request PostIoPileupParseRequestObject - var body PostCdsFixJSONRequestBody + var body PostIoPileupParseJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1269,18 +3418,18 @@ func (sh *strictHandler) PostCdsFix(w http.ResponseWriter, r *http.Request) { request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostCdsFix(ctx, request.(PostCdsFixRequestObject)) + return sh.ssi.PostIoPileupParse(ctx, request.(PostIoPileupParseRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostCdsFix") + handler = middleware(handler, "PostIoPileupParse") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostCdsFixResponseObject); ok { - if err := validResponse.VisitPostCdsFixResponse(w); err != nil { + } else if validResponse, ok := response.(PostIoPileupParseResponseObject); ok { + if err := validResponse.VisitPostIoPileupParseResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1288,11 +3437,11 @@ func (sh *strictHandler) PostCdsFix(w http.ResponseWriter, r *http.Request) { } } -// PostCdsOptimize operation middleware -func (sh *strictHandler) PostCdsOptimize(w http.ResponseWriter, r *http.Request) { - var request PostCdsOptimizeRequestObject +// PostIoPileupWrite operation middleware +func (sh *strictHandler) PostIoPileupWrite(w http.ResponseWriter, r *http.Request) { + var request PostIoPileupWriteRequestObject - var body PostCdsOptimizeJSONRequestBody + var body PostIoPileupWriteJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1300,18 +3449,18 @@ func (sh *strictHandler) PostCdsOptimize(w http.ResponseWriter, r *http.Request) request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostCdsOptimize(ctx, request.(PostCdsOptimizeRequestObject)) + return sh.ssi.PostIoPileupWrite(ctx, request.(PostIoPileupWriteRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostCdsOptimize") + handler = middleware(handler, "PostIoPileupWrite") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostCdsOptimizeResponseObject); ok { - if err := validResponse.VisitPostCdsOptimizeResponse(w); err != nil { + } else if validResponse, ok := response.(PostIoPileupWriteResponseObject); ok { + if err := validResponse.VisitPostIoPileupWriteResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1319,11 +3468,11 @@ func (sh *strictHandler) PostCdsOptimize(w http.ResponseWriter, r *http.Request) } } -// PostCdsTranslate operation middleware -func (sh *strictHandler) PostCdsTranslate(w http.ResponseWriter, r *http.Request) { - var request PostCdsTranslateRequestObject +// PostIoSlow5Parse operation middleware +func (sh *strictHandler) PostIoSlow5Parse(w http.ResponseWriter, r *http.Request) { + var request PostIoSlow5ParseRequestObject - var body PostCdsTranslateJSONRequestBody + var body PostIoSlow5ParseJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1331,18 +3480,18 @@ func (sh *strictHandler) PostCdsTranslate(w http.ResponseWriter, r *http.Request request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostCdsTranslate(ctx, request.(PostCdsTranslateRequestObject)) + return sh.ssi.PostIoSlow5Parse(ctx, request.(PostIoSlow5ParseRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostCdsTranslate") + handler = middleware(handler, "PostIoSlow5Parse") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostCdsTranslateResponseObject); ok { - if err := validResponse.VisitPostCdsTranslateResponse(w); err != nil { + } else if validResponse, ok := response.(PostIoSlow5ParseResponseObject); ok { + if err := validResponse.VisitPostIoSlow5ParseResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1350,11 +3499,11 @@ func (sh *strictHandler) PostCdsTranslate(w http.ResponseWriter, r *http.Request } } -// PostCloningGoldengate operation middleware -func (sh *strictHandler) PostCloningGoldengate(w http.ResponseWriter, r *http.Request) { - var request PostCloningGoldengateRequestObject +// PostIoSlow5SvbCompress operation middleware +func (sh *strictHandler) PostIoSlow5SvbCompress(w http.ResponseWriter, r *http.Request) { + var request PostIoSlow5SvbCompressRequestObject - var body PostCloningGoldengateJSONRequestBody + var body PostIoSlow5SvbCompressJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1362,18 +3511,18 @@ func (sh *strictHandler) PostCloningGoldengate(w http.ResponseWriter, r *http.Re request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostCloningGoldengate(ctx, request.(PostCloningGoldengateRequestObject)) + return sh.ssi.PostIoSlow5SvbCompress(ctx, request.(PostIoSlow5SvbCompressRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostCloningGoldengate") + handler = middleware(handler, "PostIoSlow5SvbCompress") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostCloningGoldengateResponseObject); ok { - if err := validResponse.VisitPostCloningGoldengateResponse(w); err != nil { + } else if validResponse, ok := response.(PostIoSlow5SvbCompressResponseObject); ok { + if err := validResponse.VisitPostIoSlow5SvbCompressResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1381,11 +3530,11 @@ func (sh *strictHandler) PostCloningGoldengate(w http.ResponseWriter, r *http.Re } } -// PostCloningLigate operation middleware -func (sh *strictHandler) PostCloningLigate(w http.ResponseWriter, r *http.Request) { - var request PostCloningLigateRequestObject +// PostIoSlow5SvbDecompress operation middleware +func (sh *strictHandler) PostIoSlow5SvbDecompress(w http.ResponseWriter, r *http.Request) { + var request PostIoSlow5SvbDecompressRequestObject - var body PostCloningLigateJSONRequestBody + var body PostIoSlow5SvbDecompressJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1393,18 +3542,18 @@ func (sh *strictHandler) PostCloningLigate(w http.ResponseWriter, r *http.Reques request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostCloningLigate(ctx, request.(PostCloningLigateRequestObject)) + return sh.ssi.PostIoSlow5SvbDecompress(ctx, request.(PostIoSlow5SvbDecompressRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostCloningLigate") + handler = middleware(handler, "PostIoSlow5SvbDecompress") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostCloningLigateResponseObject); ok { - if err := validResponse.VisitPostCloningLigateResponse(w); err != nil { + } else if validResponse, ok := response.(PostIoSlow5SvbDecompressResponseObject); ok { + if err := validResponse.VisitPostIoSlow5SvbDecompressResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1412,11 +3561,11 @@ func (sh *strictHandler) PostCloningLigate(w http.ResponseWriter, r *http.Reques } } -// PostCloningRestrictionDigest operation middleware -func (sh *strictHandler) PostCloningRestrictionDigest(w http.ResponseWriter, r *http.Request) { - var request PostCloningRestrictionDigestRequestObject +// PostIoSlow5Write operation middleware +func (sh *strictHandler) PostIoSlow5Write(w http.ResponseWriter, r *http.Request) { + var request PostIoSlow5WriteRequestObject - var body PostCloningRestrictionDigestJSONRequestBody + var body PostIoSlow5WriteJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1424,18 +3573,18 @@ func (sh *strictHandler) PostCloningRestrictionDigest(w http.ResponseWriter, r * request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostCloningRestrictionDigest(ctx, request.(PostCloningRestrictionDigestRequestObject)) + return sh.ssi.PostIoSlow5Write(ctx, request.(PostIoSlow5WriteRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostCloningRestrictionDigest") + handler = middleware(handler, "PostIoSlow5Write") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostCloningRestrictionDigestResponseObject); ok { - if err := validResponse.VisitPostCloningRestrictionDigestResponse(w); err != nil { + } else if validResponse, ok := response.(PostIoSlow5WriteResponseObject); ok { + if err := validResponse.VisitPostIoSlow5WriteResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1443,11 +3592,11 @@ func (sh *strictHandler) PostCloningRestrictionDigest(w http.ResponseWriter, r * } } -// PostExecuteLua operation middleware -func (sh *strictHandler) PostExecuteLua(w http.ResponseWriter, r *http.Request) { - var request PostExecuteLuaRequestObject +// PostPcrComplexPcr operation middleware +func (sh *strictHandler) PostPcrComplexPcr(w http.ResponseWriter, r *http.Request) { + var request PostPcrComplexPcrRequestObject - var body PostExecuteLuaJSONRequestBody + var body PostPcrComplexPcrJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1455,18 +3604,18 @@ func (sh *strictHandler) PostExecuteLua(w http.ResponseWriter, r *http.Request) request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostExecuteLua(ctx, request.(PostExecuteLuaRequestObject)) + return sh.ssi.PostPcrComplexPcr(ctx, request.(PostPcrComplexPcrRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostExecuteLua") + handler = middleware(handler, "PostPcrComplexPcr") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostExecuteLuaResponseObject); ok { - if err := validResponse.VisitPostExecuteLuaResponse(w); err != nil { + } else if validResponse, ok := response.(PostPcrComplexPcrResponseObject); ok { + if err := validResponse.VisitPostPcrComplexPcrResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1474,31 +3623,30 @@ func (sh *strictHandler) PostExecuteLua(w http.ResponseWriter, r *http.Request) } } -// PostIoFastaParse operation middleware -func (sh *strictHandler) PostIoFastaParse(w http.ResponseWriter, r *http.Request) { - var request PostIoFastaParseRequestObject +// PostPcrPrimersDebruijnBarcodes operation middleware +func (sh *strictHandler) PostPcrPrimersDebruijnBarcodes(w http.ResponseWriter, r *http.Request) { + var request PostPcrPrimersDebruijnBarcodesRequestObject - data, err := io.ReadAll(r.Body) - if err != nil { - sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't read body: %w", err)) + var body PostPcrPrimersDebruijnBarcodesJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return } - body := PostIoFastaParseTextRequestBody(data) request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostIoFastaParse(ctx, request.(PostIoFastaParseRequestObject)) + return sh.ssi.PostPcrPrimersDebruijnBarcodes(ctx, request.(PostPcrPrimersDebruijnBarcodesRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostIoFastaParse") + handler = middleware(handler, "PostPcrPrimersDebruijnBarcodes") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostIoFastaParseResponseObject); ok { - if err := validResponse.VisitPostIoFastaParseResponse(w); err != nil { + } else if validResponse, ok := response.(PostPcrPrimersDebruijnBarcodesResponseObject); ok { + if err := validResponse.VisitPostPcrPrimersDebruijnBarcodesResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1506,11 +3654,11 @@ func (sh *strictHandler) PostIoFastaParse(w http.ResponseWriter, r *http.Request } } -// PostIoFastaWrite operation middleware -func (sh *strictHandler) PostIoFastaWrite(w http.ResponseWriter, r *http.Request) { - var request PostIoFastaWriteRequestObject +// PostPcrPrimersDesignPrimers operation middleware +func (sh *strictHandler) PostPcrPrimersDesignPrimers(w http.ResponseWriter, r *http.Request) { + var request PostPcrPrimersDesignPrimersRequestObject - var body PostIoFastaWriteJSONRequestBody + var body PostPcrPrimersDesignPrimersJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1518,18 +3666,18 @@ func (sh *strictHandler) PostIoFastaWrite(w http.ResponseWriter, r *http.Request request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostIoFastaWrite(ctx, request.(PostIoFastaWriteRequestObject)) + return sh.ssi.PostPcrPrimersDesignPrimers(ctx, request.(PostPcrPrimersDesignPrimersRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostIoFastaWrite") + handler = middleware(handler, "PostPcrPrimersDesignPrimers") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostIoFastaWriteResponseObject); ok { - if err := validResponse.VisitPostIoFastaWriteResponse(w); err != nil { + } else if validResponse, ok := response.(PostPcrPrimersDesignPrimersResponseObject); ok { + if err := validResponse.VisitPostPcrPrimersDesignPrimersResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1537,31 +3685,30 @@ func (sh *strictHandler) PostIoFastaWrite(w http.ResponseWriter, r *http.Request } } -// PostIoFastqParse operation middleware -func (sh *strictHandler) PostIoFastqParse(w http.ResponseWriter, r *http.Request) { - var request PostIoFastqParseRequestObject +// PostPcrPrimersMarmurDoty operation middleware +func (sh *strictHandler) PostPcrPrimersMarmurDoty(w http.ResponseWriter, r *http.Request) { + var request PostPcrPrimersMarmurDotyRequestObject - data, err := io.ReadAll(r.Body) - if err != nil { - sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't read body: %w", err)) + var body PostPcrPrimersMarmurDotyJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return } - body := PostIoFastqParseTextRequestBody(data) request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostIoFastqParse(ctx, request.(PostIoFastqParseRequestObject)) + return sh.ssi.PostPcrPrimersMarmurDoty(ctx, request.(PostPcrPrimersMarmurDotyRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostIoFastqParse") + handler = middleware(handler, "PostPcrPrimersMarmurDoty") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostIoFastqParseResponseObject); ok { - if err := validResponse.VisitPostIoFastqParseResponse(w); err != nil { + } else if validResponse, ok := response.(PostPcrPrimersMarmurDotyResponseObject); ok { + if err := validResponse.VisitPostPcrPrimersMarmurDotyResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1569,11 +3716,11 @@ func (sh *strictHandler) PostIoFastqParse(w http.ResponseWriter, r *http.Request } } -// PostIoFastqWrite operation middleware -func (sh *strictHandler) PostIoFastqWrite(w http.ResponseWriter, r *http.Request) { - var request PostIoFastqWriteRequestObject +// PostPcrPrimersMeltingTemperature operation middleware +func (sh *strictHandler) PostPcrPrimersMeltingTemperature(w http.ResponseWriter, r *http.Request) { + var request PostPcrPrimersMeltingTemperatureRequestObject - var body PostIoFastqWriteJSONRequestBody + var body PostPcrPrimersMeltingTemperatureJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1581,18 +3728,18 @@ func (sh *strictHandler) PostIoFastqWrite(w http.ResponseWriter, r *http.Request request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostIoFastqWrite(ctx, request.(PostIoFastqWriteRequestObject)) + return sh.ssi.PostPcrPrimersMeltingTemperature(ctx, request.(PostPcrPrimersMeltingTemperatureRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostIoFastqWrite") + handler = middleware(handler, "PostPcrPrimersMeltingTemperature") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostIoFastqWriteResponseObject); ok { - if err := validResponse.VisitPostIoFastqWriteResponse(w); err != nil { + } else if validResponse, ok := response.(PostPcrPrimersMeltingTemperatureResponseObject); ok { + if err := validResponse.VisitPostPcrPrimersMeltingTemperatureResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1600,31 +3747,30 @@ func (sh *strictHandler) PostIoFastqWrite(w http.ResponseWriter, r *http.Request } } -// PostIoGenbankParse operation middleware -func (sh *strictHandler) PostIoGenbankParse(w http.ResponseWriter, r *http.Request) { - var request PostIoGenbankParseRequestObject +// PostPcrPrimersSantaLucia operation middleware +func (sh *strictHandler) PostPcrPrimersSantaLucia(w http.ResponseWriter, r *http.Request) { + var request PostPcrPrimersSantaLuciaRequestObject - data, err := io.ReadAll(r.Body) - if err != nil { - sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't read body: %w", err)) + var body PostPcrPrimersSantaLuciaJSONRequestBody + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return } - body := PostIoGenbankParseTextRequestBody(data) request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostIoGenbankParse(ctx, request.(PostIoGenbankParseRequestObject)) + return sh.ssi.PostPcrPrimersSantaLucia(ctx, request.(PostPcrPrimersSantaLuciaRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostIoGenbankParse") + handler = middleware(handler, "PostPcrPrimersSantaLucia") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostIoGenbankParseResponseObject); ok { - if err := validResponse.VisitPostIoGenbankParseResponse(w); err != nil { + } else if validResponse, ok := response.(PostPcrPrimersSantaLuciaResponseObject); ok { + if err := validResponse.VisitPostPcrPrimersSantaLuciaResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1632,11 +3778,11 @@ func (sh *strictHandler) PostIoGenbankParse(w http.ResponseWriter, r *http.Reque } } -// PostIoGenbankWrite operation middleware -func (sh *strictHandler) PostIoGenbankWrite(w http.ResponseWriter, r *http.Request) { - var request PostIoGenbankWriteRequestObject +// PostPcrSimplePcr operation middleware +func (sh *strictHandler) PostPcrSimplePcr(w http.ResponseWriter, r *http.Request) { + var request PostPcrSimplePcrRequestObject - var body PostIoGenbankWriteJSONRequestBody + var body PostPcrSimplePcrJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1644,18 +3790,18 @@ func (sh *strictHandler) PostIoGenbankWrite(w http.ResponseWriter, r *http.Reque request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostIoGenbankWrite(ctx, request.(PostIoGenbankWriteRequestObject)) + return sh.ssi.PostPcrSimplePcr(ctx, request.(PostPcrSimplePcrRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostIoGenbankWrite") + handler = middleware(handler, "PostPcrSimplePcr") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostIoGenbankWriteResponseObject); ok { - if err := validResponse.VisitPostIoGenbankWriteResponse(w); err != nil { + } else if validResponse, ok := response.(PostPcrSimplePcrResponseObject); ok { + if err := validResponse.VisitPostPcrSimplePcrResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1663,11 +3809,11 @@ func (sh *strictHandler) PostIoGenbankWrite(w http.ResponseWriter, r *http.Reque } } -// PostPcrComplexPcr operation middleware -func (sh *strictHandler) PostPcrComplexPcr(w http.ResponseWriter, r *http.Request) { - var request PostPcrComplexPcrRequestObject +// PostRandomRandomDna operation middleware +func (sh *strictHandler) PostRandomRandomDna(w http.ResponseWriter, r *http.Request) { + var request PostRandomRandomDnaRequestObject - var body PostPcrComplexPcrJSONRequestBody + var body PostRandomRandomDnaJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1675,18 +3821,18 @@ func (sh *strictHandler) PostPcrComplexPcr(w http.ResponseWriter, r *http.Reques request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostPcrComplexPcr(ctx, request.(PostPcrComplexPcrRequestObject)) + return sh.ssi.PostRandomRandomDna(ctx, request.(PostRandomRandomDnaRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostPcrComplexPcr") + handler = middleware(handler, "PostRandomRandomDna") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostPcrComplexPcrResponseObject); ok { - if err := validResponse.VisitPostPcrComplexPcrResponse(w); err != nil { + } else if validResponse, ok := response.(PostRandomRandomDnaResponseObject); ok { + if err := validResponse.VisitPostRandomRandomDnaResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1694,11 +3840,11 @@ func (sh *strictHandler) PostPcrComplexPcr(w http.ResponseWriter, r *http.Reques } } -// PostPcrPrimersDebruijnBarcodes operation middleware -func (sh *strictHandler) PostPcrPrimersDebruijnBarcodes(w http.ResponseWriter, r *http.Request) { - var request PostPcrPrimersDebruijnBarcodesRequestObject +// PostRandomRandomProtein operation middleware +func (sh *strictHandler) PostRandomRandomProtein(w http.ResponseWriter, r *http.Request) { + var request PostRandomRandomProteinRequestObject - var body PostPcrPrimersDebruijnBarcodesJSONRequestBody + var body PostRandomRandomProteinJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1706,18 +3852,18 @@ func (sh *strictHandler) PostPcrPrimersDebruijnBarcodes(w http.ResponseWriter, r request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostPcrPrimersDebruijnBarcodes(ctx, request.(PostPcrPrimersDebruijnBarcodesRequestObject)) + return sh.ssi.PostRandomRandomProtein(ctx, request.(PostRandomRandomProteinRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostPcrPrimersDebruijnBarcodes") + handler = middleware(handler, "PostRandomRandomProtein") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostPcrPrimersDebruijnBarcodesResponseObject); ok { - if err := validResponse.VisitPostPcrPrimersDebruijnBarcodesResponse(w); err != nil { + } else if validResponse, ok := response.(PostRandomRandomProteinResponseObject); ok { + if err := validResponse.VisitPostRandomRandomProteinResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1725,11 +3871,11 @@ func (sh *strictHandler) PostPcrPrimersDebruijnBarcodes(w http.ResponseWriter, r } } -// PostPcrPrimersMarmurDoty operation middleware -func (sh *strictHandler) PostPcrPrimersMarmurDoty(w http.ResponseWriter, r *http.Request) { - var request PostPcrPrimersMarmurDotyRequestObject +// PostRandomRandomRna operation middleware +func (sh *strictHandler) PostRandomRandomRna(w http.ResponseWriter, r *http.Request) { + var request PostRandomRandomRnaRequestObject - var body PostPcrPrimersMarmurDotyJSONRequestBody + var body PostRandomRandomRnaJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1737,18 +3883,18 @@ func (sh *strictHandler) PostPcrPrimersMarmurDoty(w http.ResponseWriter, r *http request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostPcrPrimersMarmurDoty(ctx, request.(PostPcrPrimersMarmurDotyRequestObject)) + return sh.ssi.PostRandomRandomRna(ctx, request.(PostRandomRandomRnaRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostPcrPrimersMarmurDoty") + handler = middleware(handler, "PostRandomRandomRna") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostPcrPrimersMarmurDotyResponseObject); ok { - if err := validResponse.VisitPostPcrPrimersMarmurDotyResponse(w); err != nil { + } else if validResponse, ok := response.(PostRandomRandomRnaResponseObject); ok { + if err := validResponse.VisitPostRandomRandomRnaResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1756,11 +3902,11 @@ func (sh *strictHandler) PostPcrPrimersMarmurDoty(w http.ResponseWriter, r *http } } -// PostPcrPrimersMeltingTemperature operation middleware -func (sh *strictHandler) PostPcrPrimersMeltingTemperature(w http.ResponseWriter, r *http.Request) { - var request PostPcrPrimersMeltingTemperatureRequestObject +// PostSeqhash operation middleware +func (sh *strictHandler) PostSeqhash(w http.ResponseWriter, r *http.Request) { + var request PostSeqhashRequestObject - var body PostPcrPrimersMeltingTemperatureJSONRequestBody + var body PostSeqhashJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1768,18 +3914,18 @@ func (sh *strictHandler) PostPcrPrimersMeltingTemperature(w http.ResponseWriter, request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostPcrPrimersMeltingTemperature(ctx, request.(PostPcrPrimersMeltingTemperatureRequestObject)) + return sh.ssi.PostSeqhash(ctx, request.(PostSeqhashRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostPcrPrimersMeltingTemperature") + handler = middleware(handler, "PostSeqhash") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostPcrPrimersMeltingTemperatureResponseObject); ok { - if err := validResponse.VisitPostPcrPrimersMeltingTemperatureResponse(w); err != nil { + } else if validResponse, ok := response.(PostSeqhashResponseObject); ok { + if err := validResponse.VisitPostSeqhashResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1787,11 +3933,11 @@ func (sh *strictHandler) PostPcrPrimersMeltingTemperature(w http.ResponseWriter, } } -// PostPcrPrimersSantaLucia operation middleware -func (sh *strictHandler) PostPcrPrimersSantaLucia(w http.ResponseWriter, r *http.Request) { - var request PostPcrPrimersSantaLuciaRequestObject +// PostSeqhashFragment operation middleware +func (sh *strictHandler) PostSeqhashFragment(w http.ResponseWriter, r *http.Request) { + var request PostSeqhashFragmentRequestObject - var body PostPcrPrimersSantaLuciaJSONRequestBody + var body PostSeqhashFragmentJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1799,18 +3945,18 @@ func (sh *strictHandler) PostPcrPrimersSantaLucia(w http.ResponseWriter, r *http request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostPcrPrimersSantaLucia(ctx, request.(PostPcrPrimersSantaLuciaRequestObject)) + return sh.ssi.PostSeqhashFragment(ctx, request.(PostSeqhashFragmentRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostPcrPrimersSantaLucia") + handler = middleware(handler, "PostSeqhashFragment") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostPcrPrimersSantaLuciaResponseObject); ok { - if err := validResponse.VisitPostPcrPrimersSantaLuciaResponse(w); err != nil { + } else if validResponse, ok := response.(PostSeqhashFragmentResponseObject); ok { + if err := validResponse.VisitPostSeqhashFragmentResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1818,11 +3964,11 @@ func (sh *strictHandler) PostPcrPrimersSantaLucia(w http.ResponseWriter, r *http } } -// PostPcrSimplePcr operation middleware -func (sh *strictHandler) PostPcrSimplePcr(w http.ResponseWriter, r *http.Request) { - var request PostPcrSimplePcrRequestObject +// PostUtilsIsPalindromic operation middleware +func (sh *strictHandler) PostUtilsIsPalindromic(w http.ResponseWriter, r *http.Request) { + var request PostUtilsIsPalindromicRequestObject - var body PostPcrSimplePcrJSONRequestBody + var body PostUtilsIsPalindromicJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1830,18 +3976,18 @@ func (sh *strictHandler) PostPcrSimplePcr(w http.ResponseWriter, r *http.Request request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostPcrSimplePcr(ctx, request.(PostPcrSimplePcrRequestObject)) + return sh.ssi.PostUtilsIsPalindromic(ctx, request.(PostUtilsIsPalindromicRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostPcrSimplePcr") + handler = middleware(handler, "PostUtilsIsPalindromic") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostPcrSimplePcrResponseObject); ok { - if err := validResponse.VisitPostPcrSimplePcrResponse(w); err != nil { + } else if validResponse, ok := response.(PostUtilsIsPalindromicResponseObject); ok { + if err := validResponse.VisitPostUtilsIsPalindromicResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1849,11 +3995,11 @@ func (sh *strictHandler) PostPcrSimplePcr(w http.ResponseWriter, r *http.Request } } -// PostSynthesisFragment operation middleware -func (sh *strictHandler) PostSynthesisFragment(w http.ResponseWriter, r *http.Request) { - var request PostSynthesisFragmentRequestObject +// PostUtilsReverseComplement operation middleware +func (sh *strictHandler) PostUtilsReverseComplement(w http.ResponseWriter, r *http.Request) { + var request PostUtilsReverseComplementRequestObject - var body PostSynthesisFragmentJSONRequestBody + var body PostUtilsReverseComplementJSONRequestBody if err := json.NewDecoder(r.Body).Decode(&body); err != nil { sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err)) return @@ -1861,18 +4007,18 @@ func (sh *strictHandler) PostSynthesisFragment(w http.ResponseWriter, r *http.Re request.Body = &body handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) { - return sh.ssi.PostSynthesisFragment(ctx, request.(PostSynthesisFragmentRequestObject)) + return sh.ssi.PostUtilsReverseComplement(ctx, request.(PostUtilsReverseComplementRequestObject)) } for _, middleware := range sh.middlewares { - handler = middleware(handler, "PostSynthesisFragment") + handler = middleware(handler, "PostUtilsReverseComplement") } response, err := handler(r.Context(), w, r, request) if err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) - } else if validResponse, ok := response.(PostSynthesisFragmentResponseObject); ok { - if err := validResponse.VisitPostSynthesisFragmentResponse(w); err != nil { + } else if validResponse, ok := response.(PostUtilsReverseComplementResponseObject); ok { + if err := validResponse.VisitPostUtilsReverseComplementResponse(w); err != nil { sh.options.ResponseErrorHandlerFunc(w, r, err) } } else if response != nil { @@ -1883,45 +4029,75 @@ func (sh *strictHandler) PostSynthesisFragment(w http.ResponseWriter, r *http.Re // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "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", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/gen/dnadesign-types.gen.go b/api/gen/dnadesign-types.gen.go index 497fc76..b6757a9 100644 --- a/api/gen/dnadesign-types.gen.go +++ b/api/gen/dnadesign-types.gen.go @@ -17,6 +17,19 @@ const ( PichiaPastoris Organism = "Pichia pastoris" ) +// Defines values for PostSeqhashJSONBodySequenceType. +const ( + DNA PostSeqhashJSONBodySequenceType = "DNA" + PROTEIN PostSeqhashJSONBodySequenceType = "PROTEIN" + RNA PostSeqhashJSONBodySequenceType = "RNA" +) + +// AminoAcid defines model for AminoAcid. +type AminoAcid struct { + Codons []Codon `json:"Codons"` + Letter string `json:"Letter"` +} + // Attachment defines model for Attachment. type Attachment struct { Content string `json:"content"` @@ -38,6 +51,19 @@ type Change struct { To string `json:"To"` } +// Codon defines model for Codon. +type Codon struct { + Triplet string `json:"Triplet"` + Weight int `json:"Weight"` +} + +// CodonTable defines model for CodonTable. +type CodonTable struct { + AminoAcids []AminoAcid `json:"AminoAcids"` + StartCodons []string `json:"StartCodons"` + StopCodons []string `json:"StopCodons"` +} + // Enzyme defines model for Enzyme. type Enzyme string @@ -78,6 +104,14 @@ type GenbankRecord struct { Sequence string `json:"sequence"` } +// HeaderValue defines model for HeaderValue. +type HeaderValue struct { + Attributes *map[string]string `json:"Attributes,omitempty"` + EndReasonHeaderMap *map[string]int `json:"EndReasonHeaderMap,omitempty"` + ReadGroupID *int `json:"ReadGroupID,omitempty"` + Slow5Version *string `json:"Slow5Version,omitempty"` +} + // Location defines model for Location. type Location struct { Complement bool `json:"complement"` @@ -122,6 +156,16 @@ type Meta struct { // Organism defines model for Organism. type Organism string +// PileupLine defines model for PileupLine. +type PileupLine struct { + Position int `json:"Position"` + Quality string `json:"Quality"` + ReadCount int `json:"ReadCount"` + ReadResults []string `json:"ReadResults"` + ReferenceBase string `json:"ReferenceBase"` + Sequence string `json:"Sequence"` +} + // Reference defines model for Reference. type Reference struct { Authors string `json:"authors"` @@ -133,6 +177,58 @@ type Reference struct { Title string `json:"title"` } +// Slow5Header defines model for Slow5Header. +type Slow5Header struct { + HeaderValues *[]HeaderValue `json:"HeaderValues,omitempty"` +} + +// Slow5Read defines model for Slow5Read. +type Slow5Read struct { + ChannelNumber *string `json:"ChannelNumber,omitempty"` + Digitisation *float32 `json:"Digitisation,omitempty"` + EndReason *string `json:"EndReason,omitempty"` + EndReasonMap *map[string]int `json:"EndReasonMap,omitempty"` + LenRawSignal *int `json:"LenRawSignal,omitempty"` + MedianBefore *float32 `json:"MedianBefore,omitempty"` + Offset *float32 `json:"Offset,omitempty"` + Range *float32 `json:"Range,omitempty"` + RawSignal *[]int `json:"RawSignal,omitempty"` + ReadGroupID *int `json:"ReadGroupID,omitempty"` + ReadID *string `json:"ReadID,omitempty"` + ReadNumber *int `json:"ReadNumber,omitempty"` + SamplingRate *float32 `json:"SamplingRate,omitempty"` + StartMux *int `json:"StartMux,omitempty"` + StartTime *int `json:"StartTime,omitempty"` +} + +// PostAlignMashJSONBody defines parameters for PostAlignMash. +type PostAlignMashJSONBody struct { + KmerSize int `json:"kmer_size"` + SequenceA string `json:"sequence_a"` + SequenceB string `json:"sequence_b"` + SketchSize int `json:"sketch_size"` +} + +// PostAlignMashManyJSONBody defines parameters for PostAlignMashMany. +type PostAlignMashManyJSONBody struct { + ComparisonSequences []string `json:"comparison_sequences"` + KmerSize int `json:"kmer_size"` + Sequence string `json:"sequence"` + SketchSize int `json:"sketch_size"` +} + +// PostAlignNeedlemanWunschJSONBody defines parameters for PostAlignNeedlemanWunsch. +type PostAlignNeedlemanWunschJSONBody struct { + SequenceA string `json:"sequence_a"` + SequenceB string `json:"sequence_b"` +} + +// PostAlignSmithWatermanJSONBody defines parameters for PostAlignSmithWaterman. +type PostAlignSmithWatermanJSONBody struct { + SequenceA string `json:"sequence_a"` + SequenceB string `json:"sequence_b"` +} + // PostCdsFixJSONBody defines parameters for PostCdsFix. type PostCdsFixJSONBody struct { Organism Organism `json:"organism"` @@ -153,6 +249,14 @@ type PostCdsTranslateJSONBody struct { TranslationTable int `json:"translation_table"` } +// PostCloningFragmentJSONBody defines parameters for PostCloningFragment. +type PostCloningFragmentJSONBody struct { + ExcludeOverhangs *[]string `json:"exclude_overhangs,omitempty"` + MaxFragmentSize int `json:"max_fragment_size"` + MinFragmentSize int `json:"min_fragment_size"` + Sequence string `json:"sequence"` +} + // PostCloningGoldengateJSONBody defines parameters for PostCloningGoldengate. type PostCloningGoldengateJSONBody struct { Enzyme *Enzyme `json:"enzyme,omitempty"` @@ -168,12 +272,57 @@ type PostCloningRestrictionDigestJSONBody struct { Sequence *string `json:"sequence,omitempty"` } +// PostCodonTablesAddTablesJSONBody defines parameters for PostCodonTablesAddTables. +type PostCodonTablesAddTablesJSONBody struct { + CodonTable1 CodonTable `json:"codonTable1"` + CodonTable2 CodonTable `json:"codonTable2"` +} + +// PostCodonTablesCompromiseTablesJSONBody defines parameters for PostCodonTablesCompromiseTables. +type PostCodonTablesCompromiseTablesJSONBody struct { + CodonTable1 CodonTable `json:"codonTable1"` + CodonTable2 CodonTable `json:"codonTable2"` +} + +// PostCodonTablesFromGenbankJSONBody defines parameters for PostCodonTablesFromGenbank. +type PostCodonTablesFromGenbankJSONBody struct { + CodonTable CodonTable `json:"codonTable"` + GenbankRecord GenbankRecord `json:"genbankRecord"` +} + +// PostCodonTablesGetOrganismTableJSONBody defines parameters for PostCodonTablesGetOrganismTable. +type PostCodonTablesGetOrganismTableJSONBody struct { + Organism string `json:"organism"` +} + +// PostCodonTablesNewJSONBody defines parameters for PostCodonTablesNew. +type PostCodonTablesNewJSONBody struct { + TableNumber int `json:"tableNumber"` +} + // PostExecuteLuaJSONBody defines parameters for PostExecuteLua. type PostExecuteLuaJSONBody struct { Attachments *[]Attachment `json:"attachments,omitempty"` Script string `json:"script"` } +// PostFoldingLinearfoldContraFoldV2JSONBody defines parameters for PostFoldingLinearfoldContraFoldV2. +type PostFoldingLinearfoldContraFoldV2JSONBody struct { + Sequence string `json:"sequence"` +} + +// PostFoldingLinearfoldViennaRnaFoldJSONBody defines parameters for PostFoldingLinearfoldViennaRnaFold. +type PostFoldingLinearfoldViennaRnaFoldJSONBody struct { + Sequence string `json:"sequence"` + Temperature *float32 `json:"temperature,omitempty"` +} + +// PostFoldingZukerJSONBody defines parameters for PostFoldingZuker. +type PostFoldingZukerJSONBody struct { + Sequence string `json:"sequence"` + Temperature *float32 `json:"temperature,omitempty"` +} + // PostIoFastaParseTextBody defines parameters for PostIoFastaParse. type PostIoFastaParseTextBody = string @@ -192,6 +341,39 @@ type PostIoGenbankParseTextBody = string // PostIoGenbankWriteJSONBody defines parameters for PostIoGenbankWrite. type PostIoGenbankWriteJSONBody = []GenbankRecord +// PostIoPileupParseJSONBody defines parameters for PostIoPileupParse. +type PostIoPileupParseJSONBody struct { + Data string `json:"data"` +} + +// PostIoPileupWriteJSONBody defines parameters for PostIoPileupWrite. +type PostIoPileupWriteJSONBody struct { + Lines *[]PileupLine `json:"lines,omitempty"` +} + +// PostIoSlow5ParseJSONBody defines parameters for PostIoSlow5Parse. +type PostIoSlow5ParseJSONBody struct { + Data string `json:"data"` +} + +// PostIoSlow5SvbCompressJSONBody defines parameters for PostIoSlow5SvbCompress. +type PostIoSlow5SvbCompressJSONBody struct { + RawSignal *[]int `json:"rawSignal,omitempty"` +} + +// PostIoSlow5SvbDecompressJSONBody defines parameters for PostIoSlow5SvbDecompress. +type PostIoSlow5SvbDecompressJSONBody struct { + Data *string `json:"data,omitempty"` + LenRawSignal *int `json:"lenRawSignal,omitempty"` + Mask *string `json:"mask,omitempty"` +} + +// PostIoSlow5WriteJSONBody defines parameters for PostIoSlow5Write. +type PostIoSlow5WriteJSONBody struct { + Header *Slow5Header `json:"header,omitempty"` + Reads *[]Slow5Read `json:"reads,omitempty"` +} + // PostPcrComplexPcrJSONBody defines parameters for PostPcrComplexPcr. type PostPcrComplexPcrJSONBody struct { Circular *bool `json:"circular,omitempty"` @@ -211,6 +393,14 @@ type PostPcrPrimersDebruijnBarcodesJSONBody struct { MaxSubSequence int `json:"max_sub_sequence"` } +// PostPcrPrimersDesignPrimersJSONBody defines parameters for PostPcrPrimersDesignPrimers. +type PostPcrPrimersDesignPrimersJSONBody struct { + ForwardOverhang *string `json:"forward_overhang,omitempty"` + ReverseOverhang *string `json:"reverse_overhang,omitempty"` + Sequence string `json:"sequence"` + TargetTm float32 `json:"targetTm"` +} + // PostPcrPrimersMarmurDotyJSONBody defines parameters for PostPcrPrimersMarmurDoty. type PostPcrPrimersMarmurDotyJSONBody struct { Sequence string `json:"sequence"` @@ -238,14 +428,64 @@ type PostPcrSimplePcrJSONBody struct { Template string `json:"template"` } -// PostSynthesisFragmentJSONBody defines parameters for PostSynthesisFragment. -type PostSynthesisFragmentJSONBody struct { - ExcludeOverhangs *[]string `json:"exclude_overhangs,omitempty"` - MaxFragmentSize int `json:"max_fragment_size"` - MinFragmentSize int `json:"min_fragment_size"` - Sequence string `json:"sequence"` +// PostRandomRandomDnaJSONBody defines parameters for PostRandomRandomDna. +type PostRandomRandomDnaJSONBody struct { + Length int `json:"length"` + Seed *int `json:"seed"` +} + +// PostRandomRandomProteinJSONBody defines parameters for PostRandomRandomProtein. +type PostRandomRandomProteinJSONBody struct { + Length int `json:"length"` + Seed *int `json:"seed"` +} + +// PostRandomRandomRnaJSONBody defines parameters for PostRandomRandomRna. +type PostRandomRandomRnaJSONBody struct { + Length int `json:"length"` + Seed *int `json:"seed"` +} + +// PostSeqhashJSONBody defines parameters for PostSeqhash. +type PostSeqhashJSONBody struct { + Circular bool `json:"circular"` + DoubleStranded bool `json:"doubleStranded"` + Sequence string `json:"sequence"` + SequenceType PostSeqhashJSONBodySequenceType `json:"sequenceType"` +} + +// PostSeqhashJSONBodySequenceType defines parameters for PostSeqhash. +type PostSeqhashJSONBodySequenceType string + +// PostSeqhashFragmentJSONBody defines parameters for PostSeqhashFragment. +type PostSeqhashFragmentJSONBody struct { + ForwardOverhangLength int8 `json:"forwardOverhangLength"` + ReverseOverhangLength int8 `json:"reverseOverhangLength"` + Sequence string `json:"sequence"` +} + +// PostUtilsIsPalindromicJSONBody defines parameters for PostUtilsIsPalindromic. +type PostUtilsIsPalindromicJSONBody struct { + Sequence string `json:"sequence"` +} + +// PostUtilsReverseComplementJSONBody defines parameters for PostUtilsReverseComplement. +type PostUtilsReverseComplementJSONBody struct { + Sequence string `json:"sequence"` } +// PostAlignMashJSONRequestBody defines body for PostAlignMash for application/json ContentType. +type PostAlignMashJSONRequestBody PostAlignMashJSONBody + +// PostAlignMashManyJSONRequestBody defines body for PostAlignMashMany for application/json ContentType. +type PostAlignMashManyJSONRequestBody PostAlignMashManyJSONBody + +// PostAlignNeedlemanWunschJSONRequestBody defines body for PostAlignNeedlemanWunsch for application/json ContentType. +type PostAlignNeedlemanWunschJSONRequestBody PostAlignNeedlemanWunschJSONBody + +// PostAlignSmithWatermanJSONRequestBody defines body for PostAlignSmithWaterman for application/json ContentType. +type PostAlignSmithWatermanJSONRequestBody PostAlignSmithWatermanJSONBody + // PostCdsFixJSONRequestBody defines body for PostCdsFix for application/json ContentType. type PostCdsFixJSONRequestBody PostCdsFixJSONBody @@ -255,6 +495,9 @@ type PostCdsOptimizeJSONRequestBody PostCdsOptimizeJSONBody // PostCdsTranslateJSONRequestBody defines body for PostCdsTranslate for application/json ContentType. type PostCdsTranslateJSONRequestBody PostCdsTranslateJSONBody +// PostCloningFragmentJSONRequestBody defines body for PostCloningFragment for application/json ContentType. +type PostCloningFragmentJSONRequestBody PostCloningFragmentJSONBody + // PostCloningGoldengateJSONRequestBody defines body for PostCloningGoldengate for application/json ContentType. type PostCloningGoldengateJSONRequestBody PostCloningGoldengateJSONBody @@ -264,9 +507,33 @@ type PostCloningLigateJSONRequestBody = PostCloningLigateJSONBody // PostCloningRestrictionDigestJSONRequestBody defines body for PostCloningRestrictionDigest for application/json ContentType. type PostCloningRestrictionDigestJSONRequestBody PostCloningRestrictionDigestJSONBody +// PostCodonTablesAddTablesJSONRequestBody defines body for PostCodonTablesAddTables for application/json ContentType. +type PostCodonTablesAddTablesJSONRequestBody PostCodonTablesAddTablesJSONBody + +// PostCodonTablesCompromiseTablesJSONRequestBody defines body for PostCodonTablesCompromiseTables for application/json ContentType. +type PostCodonTablesCompromiseTablesJSONRequestBody PostCodonTablesCompromiseTablesJSONBody + +// PostCodonTablesFromGenbankJSONRequestBody defines body for PostCodonTablesFromGenbank for application/json ContentType. +type PostCodonTablesFromGenbankJSONRequestBody PostCodonTablesFromGenbankJSONBody + +// PostCodonTablesGetOrganismTableJSONRequestBody defines body for PostCodonTablesGetOrganismTable for application/json ContentType. +type PostCodonTablesGetOrganismTableJSONRequestBody PostCodonTablesGetOrganismTableJSONBody + +// PostCodonTablesNewJSONRequestBody defines body for PostCodonTablesNew for application/json ContentType. +type PostCodonTablesNewJSONRequestBody PostCodonTablesNewJSONBody + // PostExecuteLuaJSONRequestBody defines body for PostExecuteLua for application/json ContentType. type PostExecuteLuaJSONRequestBody PostExecuteLuaJSONBody +// PostFoldingLinearfoldContraFoldV2JSONRequestBody defines body for PostFoldingLinearfoldContraFoldV2 for application/json ContentType. +type PostFoldingLinearfoldContraFoldV2JSONRequestBody PostFoldingLinearfoldContraFoldV2JSONBody + +// PostFoldingLinearfoldViennaRnaFoldJSONRequestBody defines body for PostFoldingLinearfoldViennaRnaFold for application/json ContentType. +type PostFoldingLinearfoldViennaRnaFoldJSONRequestBody PostFoldingLinearfoldViennaRnaFoldJSONBody + +// PostFoldingZukerJSONRequestBody defines body for PostFoldingZuker for application/json ContentType. +type PostFoldingZukerJSONRequestBody PostFoldingZukerJSONBody + // PostIoFastaParseTextRequestBody defines body for PostIoFastaParse for text/plain ContentType. type PostIoFastaParseTextRequestBody = PostIoFastaParseTextBody @@ -285,12 +552,33 @@ type PostIoGenbankParseTextRequestBody = PostIoGenbankParseTextBody // PostIoGenbankWriteJSONRequestBody defines body for PostIoGenbankWrite for application/json ContentType. type PostIoGenbankWriteJSONRequestBody = PostIoGenbankWriteJSONBody +// PostIoPileupParseJSONRequestBody defines body for PostIoPileupParse for application/json ContentType. +type PostIoPileupParseJSONRequestBody PostIoPileupParseJSONBody + +// PostIoPileupWriteJSONRequestBody defines body for PostIoPileupWrite for application/json ContentType. +type PostIoPileupWriteJSONRequestBody PostIoPileupWriteJSONBody + +// PostIoSlow5ParseJSONRequestBody defines body for PostIoSlow5Parse for application/json ContentType. +type PostIoSlow5ParseJSONRequestBody PostIoSlow5ParseJSONBody + +// PostIoSlow5SvbCompressJSONRequestBody defines body for PostIoSlow5SvbCompress for application/json ContentType. +type PostIoSlow5SvbCompressJSONRequestBody PostIoSlow5SvbCompressJSONBody + +// PostIoSlow5SvbDecompressJSONRequestBody defines body for PostIoSlow5SvbDecompress for application/json ContentType. +type PostIoSlow5SvbDecompressJSONRequestBody PostIoSlow5SvbDecompressJSONBody + +// PostIoSlow5WriteJSONRequestBody defines body for PostIoSlow5Write for application/json ContentType. +type PostIoSlow5WriteJSONRequestBody PostIoSlow5WriteJSONBody + // PostPcrComplexPcrJSONRequestBody defines body for PostPcrComplexPcr for application/json ContentType. type PostPcrComplexPcrJSONRequestBody PostPcrComplexPcrJSONBody // PostPcrPrimersDebruijnBarcodesJSONRequestBody defines body for PostPcrPrimersDebruijnBarcodes for application/json ContentType. type PostPcrPrimersDebruijnBarcodesJSONRequestBody PostPcrPrimersDebruijnBarcodesJSONBody +// PostPcrPrimersDesignPrimersJSONRequestBody defines body for PostPcrPrimersDesignPrimers for application/json ContentType. +type PostPcrPrimersDesignPrimersJSONRequestBody PostPcrPrimersDesignPrimersJSONBody + // PostPcrPrimersMarmurDotyJSONRequestBody defines body for PostPcrPrimersMarmurDoty for application/json ContentType. type PostPcrPrimersMarmurDotyJSONRequestBody PostPcrPrimersMarmurDotyJSONBody @@ -303,5 +591,23 @@ type PostPcrPrimersSantaLuciaJSONRequestBody PostPcrPrimersSantaLuciaJSONBody // PostPcrSimplePcrJSONRequestBody defines body for PostPcrSimplePcr for application/json ContentType. type PostPcrSimplePcrJSONRequestBody PostPcrSimplePcrJSONBody -// PostSynthesisFragmentJSONRequestBody defines body for PostSynthesisFragment for application/json ContentType. -type PostSynthesisFragmentJSONRequestBody PostSynthesisFragmentJSONBody +// PostRandomRandomDnaJSONRequestBody defines body for PostRandomRandomDna for application/json ContentType. +type PostRandomRandomDnaJSONRequestBody PostRandomRandomDnaJSONBody + +// PostRandomRandomProteinJSONRequestBody defines body for PostRandomRandomProtein for application/json ContentType. +type PostRandomRandomProteinJSONRequestBody PostRandomRandomProteinJSONBody + +// PostRandomRandomRnaJSONRequestBody defines body for PostRandomRandomRna for application/json ContentType. +type PostRandomRandomRnaJSONRequestBody PostRandomRandomRnaJSONBody + +// PostSeqhashJSONRequestBody defines body for PostSeqhash for application/json ContentType. +type PostSeqhashJSONRequestBody PostSeqhashJSONBody + +// PostSeqhashFragmentJSONRequestBody defines body for PostSeqhashFragment for application/json ContentType. +type PostSeqhashFragmentJSONRequestBody PostSeqhashFragmentJSONBody + +// PostUtilsIsPalindromicJSONRequestBody defines body for PostUtilsIsPalindromic for application/json ContentType. +type PostUtilsIsPalindromicJSONRequestBody PostUtilsIsPalindromicJSONBody + +// PostUtilsReverseComplementJSONRequestBody defines body for PostUtilsReverseComplement for application/json ContentType. +type PostUtilsReverseComplementJSONRequestBody PostUtilsReverseComplementJSONBody diff --git a/api/spec.yaml b/api/spec.yaml index 1ad2513..3e8db23 100644 --- a/api/spec.yaml +++ b/api/spec.yaml @@ -1666,33 +1666,6 @@ paths: sequence: type: string - /utils/rna_reverse_complement: - post: - summary: Reverse Complement of RNA Sequence - tags: - - utils - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - sequence: - type: string - required: - - sequence - responses: - '200': - description: Reverse complement RNA sequence - content: - application/json: - schema: - type: object - properties: - sequence: - type: string - /utils/is_palindromic: post: summary: Check if Sequence is Palindromic