@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Enterobase-API
@version v2.0
@auth basic
@endpoints 30
@hint download_for_search
@toc api(30)

@endpoint GET /api/v2.0
@optional {prefix: any, name: any, description: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/login
@optional {password: any, username: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/lookup
@optional {barcode: any}
@returns(200)
@errors {403, 408}

@endpoint GET /api/v2.0/lookup/{barcode}
@required {barcode: any}
@returns(200)
@errors {403}

@endpoint POST /api/v2.0/lookup/{barcode}
@required {barcode: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/{database}/AMRdata
@required {database: any}
@optional {barcode: any, only_fields: any, limit: any, sortorder: any, offset: any, orderby: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/{database}/AMRdata/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint POST /api/v2.0/{database}/AMRdata/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint PUT /api/v2.0/{database}/AMRdata/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@errors {403}

@endpoint GET /api/v2.0/{database}/assemblies
@required {database: any}
@optional {barcode: any, assembly_status: any, only_fields: any, uberstrain: any, n50: any, reldate: any, top_species: any, limit: any, version: any, sortorder: any, offset: any, orderby: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/{database}/assemblies/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint POST /api/v2.0/{database}/assemblies/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint PUT /api/v2.0/{database}/assemblies/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@errors {403}

@endpoint GET /api/v2.0/{database}/schemes
@required {database: any}
@optional {lastmodified: any, created: any, label: any, barcode: any, scheme_name: any, only_fields: any, limit: any, version: any, sortorder: any, offset: any, orderby: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/{database}/schemes/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint POST /api/v2.0/{database}/schemes/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint PUT /api/v2.0/{database}/schemes/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@errors {403}

@endpoint GET /api/v2.0/{database}/straindata
@required {database: any}
@optional {serotype: any, version: any, barcode: any, source_niche: any, source_details: any, substrains: any, source_type: any, county: any, email: any, postcode: any, my_strains: any, continent: any, orderby: any, custom_fields: any, latitude: any, assembly_status: any, n50: any, limit: any, comment: any, strain_name: any, offset: any, region: any, city: any, secondary_sample_accession: any, collection_year: any, collection_time: any, reldate: any, collection_date: any, top_species: any, country: any, uberstrain: any, only_fields: any, sample_accession: any, longitude: any, collection_month: any, lab_contact: any, sortorder: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/{database}/strains
@required {database: any}
@optional {serotype: any, version: any, barcode: any, source_niche: any, source_details: any, lab_contact: any, substrains: any, source_type: any, county: any, antigenic_formulas: any, postcode: any, my_strains: any, continent: any, orderby: any, return_all: any, latitude: any, limit: any, assembly_barcode: any, comment: any, strain_name: any, offset: any, region: any, city: any, collection_year: any, secondary_sample_accession: any, collection_time: any, reldate: any, country: any, uberstrain: any, only_fields: any, sample_accession: any, longitude: any, collection_month: any, collection_date: any, sortorder: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/{database}/strains/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint POST /api/v2.0/{database}/strains/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint PUT /api/v2.0/{database}/strains/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@errors {403}

@endpoint GET /api/v2.0/{database}/strainsversion
@required {database: any}
@optional {serotype: any, version: any, barcode: any, source_niche: any, source_details: any, lab_contact: any, substrains: any, source_type: any, county: any, antigenic_formulas: any, postcode: any, my_strains: any, continent: any, orderby: any, return_all: any, latitude: any, limit: any, assembly_barcode: any, comment: any, strain_name: any, offset: any, region: any, city: any, collection_year: any, secondary_sample_accession: any, collection_time: any, reldate: any, country: any, uberstrain: any, only_fields: any, sample_accession: any, longitude: any, collection_month: any, collection_date: any, sortorder: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/{database}/traces
@required {database: any}
@optional {barcode: any, only_fields: any, limit: any, sortorder: any, offset: any, orderby: any}
@returns(200)
@errors {403}

@endpoint GET /api/v2.0/{database}/traces/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint POST /api/v2.0/{database}/traces/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@returns(200)
@errors {403}

@endpoint PUT /api/v2.0/{database}/traces/{barcode}
@required {barcode: any, database: any}
@optional {body: map}
@errors {403}

@endpoint GET /api/v2.0/{database}/{scheme}/alleles
@required {locus: any, database: any, scheme: any}
@optional {seq: any, barcode: any, only_fields: any, allele_id: any, reldate: any, limit: any, offset: any}
@returns(200)
@errors {400, 403}

@endpoint GET /api/v2.0/{database}/{scheme}/loci
@required {database: any, scheme: any}
@optional {scheme: any, create_time: any, barcode: any, only_fields: any, locus: any, limit: any, offset: any}
@returns(200)
@errors {400, 403}

@endpoint GET /api/v2.0/{database}/{scheme}/sts
@required {database: any, scheme: any}
@optional {scheme: any, show_alleles: any, st_id: any, barcode: any, only_fields: any, reldate: any, limit: any, offset: any}
@returns(200)
@errors {400, 403}

@end
