@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Visual Crossing Weather API
@base https://weather.visualcrossing.com
@version 4.6
@endpoints 5
@toc VisualCrossingWebServices(5)

@endpoint GET /VisualCrossingWebServices/rest/services/timeline/{location}
@desc Historical and Forecast Weather API
@required {location: str # Locaton of interest as an address, partial address or decimal latitude,longtude value, key: str}
@optional {contentType: str # data format of the output either json or CSV, unitGroup: str, include: str # data to include in the output (required for CSV format - days,hours,alerts,current,events ), lang: str # Language to use for weather descriptions}
@returns(200) Auto generated using Swagger Inspector

@endpoint GET /VisualCrossingWebServices/rest/services/timeline/{location}/{startdate}
@desc Historical and Forecast Weather API
@required {location: str, startdate: str, key: str}
@optional {contentType: str # data format of the output either json or CSV, unitGroup: str, include: str # data to include in the output (required for CSV format - days,hours,alerts,current,events ), lang: str # Language to use for weather descriptions}
@returns(200) Auto generated using Swagger Inspector

@endpoint GET /VisualCrossingWebServices/rest/services/timeline/{location}/{startdate}/{enddate}
@desc Historical and Forecast Weather API
@required {location: str, startdate: str, enddate: str, key: str}
@optional {contentType: str # data format of the output either json or CSV, unitGroup: str, include: str # data to include in the output (required for CSV format - days,hours,alerts,current,events ), lang: str # Language to use for weather descriptions}
@returns(200) Auto generated using Swagger Inspector

@endpoint GET /VisualCrossingWebServices/rest/services/weatherdata/forecast
@desc Weather Forecast API
@optional {sendAsDatasource: bool, allowAsynch: bool, shortColumnNames: bool, locations: str, aggregateHours: str, contentType: str, unitGroup: str, key: str}
@returns(200) Auto generated using Swagger Inspector

@endpoint GET /VisualCrossingWebServices/rest/services/weatherdata/history
@desc Retrieves hourly or daily historical weather records.
@optional {maxDistance: str, shortColumnNames: bool, endDateTime: str, aggregateHours: str, collectStationContributions: bool, startDateTime: str, maxStations: str, allowAsynch: bool, locations: str, includeNormals: bool, contentType: str, unitGroup: str, key: str}
@returns(200) Auto generated using Swagger Inspector

@end
