@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api GlobalWineScore API Documentation
@base https://api.globalwinescore.com
@version 8234aab51481d37a30757d925b7f4221a659427e
@auth ApiKey Authorization in header
@endpoints 2
@toc globalwinescores(2)

@endpoint GET /globalwinescores/latest/
@desc List all latest GWS
@optional {Authorization: any, wine_id: any # The exact `id` of the wine. Can be used multiple times (e.g `?wine_id=114959&wine_id=114952`)  If you need to find the `wine_id` for your wines, use our search page, vintage: any # The vintage you want to search against., color: any # The lowercase color of the wine., is_primeurs: any # Only show the en primeur GlobalWineScores, lwin: any # L-WIN wine identifier (See definition here), lwin_11: any # L-WIN wine/vintage identifier (See definition here), limit: any # Number of results to return per page., offset: any # The initial index from which to return the results., ordering: any # Which field to use when ordering the results.}
@returns(200)

@endpoint GET /globalwinescores/
@desc List all historical GWS
@optional {Authorization: any, wine_id: any # The exact `id` of the wine. Can be used multiple times (e.g `?wine_id=114959&wine_id=114952`)  If you need to find the `wine_id` for your wines, use our search page, vintage: any # The vintage you want to search against., color: any # The lowercase color of the wine., is_primeurs: any # Only show the en primeur GlobalWineScores, lwin: any # L-WIN wine identifier (See definition here), lwin_11: any # L-WIN wine/vintage identifier (See definition here), limit: any # Number of results to return per page., offset: any # The initial index from which to return the results., ordering: any # Which field to use when ordering the results.}
@returns(200)

@end
