/** * NOTE: This class is auto generated by the swagger code generator program (3.0.57). * https://github.com/swagger-api/swagger-codegen * Do not edit the class manually. */ package io.swagger.api; import io.swagger.model.Model200; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.responses.ApiResponses; import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.media.ArraySchema; import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.security.SecurityRequirement; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestPart; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.bind.annotation.CookieValue; import javax.validation.Valid; import javax.validation.constraints.*; import java.util.List; import java.util.Map; @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]") @Validated public interface HistoricalweatherApi { @Operation(summary = "Call Historical weather data for one location", description = "Get the historical weather info", tags={ "Historical Weather Data" }) @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Successful response", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Model200.class))), @ApiResponse(responseCode = "404", description = "Not found response", content = @Content(mediaType = "text/plain", schema = @Schema(implementation = String.class))) }) @RequestMapping(value = "/historicalweather", produces = { "application/json", "text/plain" }, method = RequestMethod.GET) ResponseEntity historicalWeatherData(@NotNull @Parameter(in = ParameterIn.QUERY, description = "For the query value, type the city name and optionally the country code divided by comma; use ISO 3166 country codes." ,required=true,schema=@Schema()) @Valid @RequestParam(value = "q", required = true) String q , @Parameter(in = ParameterIn.QUERY, description = "filter parameter" ,schema=@Schema()) @Valid @RequestParam(value = "filter", required = false) String filter ); }