Commit 3e33888f authored by EnesKarakas's avatar EnesKarakas
Browse files

de

parent 5310f102
......@@ -53,7 +53,7 @@ public class CurrentweatherApiController implements CurrentweatherApi {
@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) {
try {
String datafree = "{\"location\":{},\"current\": {\"condition\": {},\"air_quality\": {}}}";
String datafree = "{}";
RestTemplate restTemplate = new RestTemplate();
ApiService apiService = new ApiService(restTemplate);
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.threeten.bp.OffsetDateTime;
import org.springframework.validation.annotation.Validated;
......@@ -14,7 +17,7 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Alerts {
@JsonProperty("headline")
......@@ -63,6 +66,7 @@ public class Alerts {
/**
* Get headline
*
* @return headline
**/
@Schema(description = "")
......@@ -83,6 +87,7 @@ public class Alerts {
/**
* Get msgtype
*
* @return msgtype
**/
@Schema(description = "")
......@@ -102,6 +107,7 @@ public class Alerts {
/**
* Get severity
*
* @return severity
**/
@Schema(description = "")
......@@ -121,6 +127,7 @@ public class Alerts {
/**
* Get urgency
*
* @return urgency
**/
@Schema(description = "")
......@@ -140,6 +147,7 @@ public class Alerts {
/**
* Get areas
*
* @return areas
**/
@Schema(description = "")
......@@ -159,6 +167,7 @@ public class Alerts {
/**
* Get category
*
* @return category
**/
@Schema(description = "")
......@@ -179,6 +188,7 @@ public class Alerts {
/**
* Get certainty
*
* @return certainty
**/
@Schema(description = "")
......@@ -198,6 +208,7 @@ public class Alerts {
/**
* Get event
*
* @return event
**/
@Schema(description = "")
......@@ -218,6 +229,7 @@ public class Alerts {
/**
* Get note
*
* @return note
**/
@Schema(description = "")
......@@ -237,6 +249,7 @@ public class Alerts {
/**
* Get effective
*
* @return effective
**/
@Schema(description = "")
......@@ -258,6 +271,7 @@ public class Alerts {
/**
* Get expires
*
* @return expires
**/
@Schema(description = "")
......@@ -279,6 +293,7 @@ public class Alerts {
/**
* Get desc
*
* @return desc
**/
@Schema(description = "")
......@@ -299,6 +314,7 @@ public class Alerts {
/**
* Get instruction
*
* @return instruction
**/
@Schema(description = "")
......@@ -312,7 +328,6 @@ public class Alerts {
this.instruction = instruction;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -339,7 +354,8 @@ public class Alerts {
@Override
public int hashCode() {
return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective, expires, desc, instruction);
return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective,
expires, desc, instruction);
}
@Override
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
......@@ -13,7 +16,7 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Astro {
@JsonProperty("sunrise")
......@@ -41,6 +44,7 @@ public class Astro {
/**
* Get sunrise
*
* @return sunrise
**/
@Schema(description = "")
......@@ -61,6 +65,7 @@ public class Astro {
/**
* Get sunset
*
* @return sunset
**/
@Schema(description = "")
......@@ -81,6 +86,7 @@ public class Astro {
/**
* Get moonrise
*
* @return moonrise
**/
@Schema(description = "")
......@@ -101,6 +107,7 @@ public class Astro {
/**
* Get moonset
*
* @return moonset
**/
@Schema(description = "")
......@@ -121,6 +128,7 @@ public class Astro {
/**
* Get moonPhase
*
* @return moonPhase
**/
@Schema(description = "")
......@@ -141,6 +149,7 @@ public class Astro {
/**
* Get moonIllumination
*
* @return moonIllumination
**/
@Schema(description = "")
......@@ -154,7 +163,6 @@ public class Astro {
this.moonIllumination = moonIllumination;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
......@@ -13,8 +16,7 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class DayCondition {
@JsonProperty("maxtemp_c")
private Float maxtempC = null;
......@@ -68,7 +70,7 @@ public class DayCondition {
private Integer dailyChanceOfSnow = null;
@JsonProperty("uv")
private Float uv = null;
private Float uv_day = null;
public DayCondition maxtempC(Float maxtempC) {
this.maxtempC = maxtempC;
......@@ -77,6 +79,7 @@ public class DayCondition {
/**
* Get maxtempC
*
* @return maxtempC
**/
@Schema(description = "")
......@@ -97,6 +100,7 @@ public class DayCondition {
/**
* Get maxtempF
*
* @return maxtempF
**/
@Schema(description = "")
......@@ -117,6 +121,7 @@ public class DayCondition {
/**
* Get mintempC
*
* @return mintempC
**/
@Schema(description = "")
......@@ -137,6 +142,7 @@ public class DayCondition {
/**
* Get mintempF
*
* @return mintempF
**/
@Schema(description = "")
......@@ -157,6 +163,7 @@ public class DayCondition {
/**
* Get avgtempC
*
* @return avgtempC
**/
@Schema(description = "")
......@@ -177,6 +184,7 @@ public class DayCondition {
/**
* Get avgtempF
*
* @return avgtempF
**/
@Schema(description = "")
......@@ -197,6 +205,7 @@ public class DayCondition {
/**
* Get maxwindMph
*
* @return maxwindMph
**/
@Schema(description = "")
......@@ -217,6 +226,7 @@ public class DayCondition {
/**
* Get maxwindKph
*
* @return maxwindKph
**/
@Schema(description = "")
......@@ -237,6 +247,7 @@ public class DayCondition {
/**
* Get totalprecipMm
*
* @return totalprecipMm
**/
@Schema(description = "")
......@@ -257,6 +268,7 @@ public class DayCondition {
/**
* Get totalprecipIn
*
* @return totalprecipIn
**/
@Schema(description = "")
......@@ -277,6 +289,7 @@ public class DayCondition {
/**
* Get avgvisKm
*
* @return avgvisKm
**/
@Schema(description = "")
......@@ -297,6 +310,7 @@ public class DayCondition {
/**
* Get avgvisMiles
*
* @return avgvisMiles
**/
@Schema(description = "")
......@@ -317,6 +331,7 @@ public class DayCondition {
/**
* Get avghumidity
*
* @return avghumidity
**/
@Schema(description = "")
......@@ -337,6 +352,7 @@ public class DayCondition {
/**
* Get dailyWillItRain
*
* @return dailyWillItRain
**/
@Schema(description = "")
......@@ -357,6 +373,7 @@ public class DayCondition {
/**
* Get dailyChanceOfRain
*
* @return dailyChanceOfRain
**/
@Schema(description = "")
......@@ -377,6 +394,7 @@ public class DayCondition {
/**
* Get dailyWillItSnow
*
* @return dailyWillItSnow
**/
@Schema(description = "")
......@@ -397,6 +415,7 @@ public class DayCondition {
/**
* Get dailyChanceOfSnow
*
* @return dailyChanceOfSnow
**/
@Schema(description = "")
......@@ -410,27 +429,27 @@ public class DayCondition {
this.dailyChanceOfSnow = dailyChanceOfSnow;
}
public DayCondition uv(Float uv) {
this.uv = uv;
public DayCondition uv_day(Float uv_day) {
this.uv_day = uv_day;
return this;
}
/**
* Get uv
* @return uv
* Get uv_day
*
* @return uv_day
**/
@Schema(description = "")
@NotNull
public Float getUv() {
return uv;
public Float getUv_day() {
return uv_day;
}
public void setUv(Float uv) {
this.uv = uv;
public void setUv_day(Float uv_day) {
this.uv_day = uv_day;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -457,12 +476,14 @@ public class DayCondition {
Objects.equals(this.dailyChanceOfRain, dayCondition.dailyChanceOfRain) &&
Objects.equals(this.dailyWillItSnow, dayCondition.dailyWillItSnow) &&
Objects.equals(this.dailyChanceOfSnow, dayCondition.dailyChanceOfSnow) &&
Objects.equals(this.uv, dayCondition.uv);
Objects.equals(this.uv_day, dayCondition.uv_day);
}
@Override
public int hashCode() {
return Objects.hash(maxtempC, maxtempF, mintempC, mintempF, avgtempC, avgtempF, maxwindMph, maxwindKph, totalprecipMm, totalprecipIn, avgvisKm, avgvisMiles, avghumidity, dailyWillItRain, dailyChanceOfRain, dailyWillItSnow, dailyChanceOfSnow, uv);
return Objects.hash(maxtempC, maxtempF, mintempC, mintempF, avgtempC, avgtempF, maxwindMph, maxwindKph,
totalprecipMm, totalprecipIn, avgvisKm, avgvisMiles, avghumidity, dailyWillItRain, dailyChanceOfRain,
dailyWillItSnow, dailyChanceOfSnow, uv_day);
}
@Override
......@@ -487,7 +508,7 @@ public class DayCondition {
sb.append(" dailyChanceOfRain: ").append(toIndentedString(dailyChanceOfRain)).append("\n");
sb.append(" dailyWillItSnow: ").append(toIndentedString(dailyWillItSnow)).append("\n");
sb.append(" dailyChanceOfSnow: ").append(toIndentedString(dailyChanceOfSnow)).append("\n");
sb.append(" uv: ").append(toIndentedString(uv)).append("\n");
sb.append(" uv_day: ").append(toIndentedString(uv_day)).append("\n");
sb.append("}");
return sb.toString();
}
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.Astro;
import io.swagger.model.DayCondition;
import io.swagger.model.HourCondition;
......@@ -18,8 +21,7 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class ForecastDay {
@JsonProperty("date")
private String date = null;
......@@ -28,10 +30,10 @@ public class ForecastDay {
private Integer dateEpoch = null;
@JsonProperty("day")
private DayCondition day = null;
private DayCondition day = new DayCondition();
@JsonProperty("astro")
private Astro astro = null;
private Astro astro = new Astro();
@JsonProperty("hour")
@Valid
......@@ -44,6 +46,7 @@ public class ForecastDay {
/**
* Get date
*
* @return date
**/
@Schema(description = "")
......@@ -64,6 +67,7 @@ public class ForecastDay {
/**
* Get dateEpoch
*
* @return dateEpoch
**/
@Schema(description = "")
......@@ -84,6 +88,7 @@ public class ForecastDay {
/**
* Get day
*
* @return day
**/
@Schema(description = "")
......@@ -105,6 +110,7 @@ public class ForecastDay {
/**
* Get astro
*
* @return astro
**/
@Schema(description = "")
......@@ -134,6 +140,7 @@ public class ForecastDay {
/**
* Get hour
*
* @return hour
**/
@Schema(description = "")
......@@ -147,7 +154,6 @@ public class ForecastDay {
this.hour = hour;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
......@@ -14,7 +17,7 @@ import javax.validation.constraints.*;
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-08T14:34:21.706302463Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class InlineResponse200 {
@JsonProperty("latitude")
private Float latitude = null;
......@@ -56,6 +59,7 @@ public class InlineResponse200 {
/**
* Get latitude
*
* @return latitude
**/
@Schema(description = "")
......@@ -76,6 +80,7 @@ public class InlineResponse200 {
/**
* Get longitude
*
* @return longitude
**/
@Schema(description = "")
......@@ -96,6 +101,7 @@ public class InlineResponse200 {
/**
* Get generationtimeMs
*
* @return generationtimeMs
**/
@Schema(description = "")
......@@ -116,6 +122,7 @@ public class InlineResponse200 {
/**
* Get utcOffsetSeconds
*
* @return utcOffsetSeconds
**/
@Schema(description = "")
......@@ -136,6 +143,7 @@ public class InlineResponse200 {
/**
* Get timezone
*
* @return timezone
**/
@Schema(description = "")
......@@ -156,6 +164,7 @@ public class InlineResponse200 {
/**
* Get timezoneAbbreviation
*
* @return timezoneAbbreviation
**/
@Schema(description = "")
......@@ -176,6 +185,7 @@ public class InlineResponse200 {
/**
* Get elevation
*
* @return elevation
**/
@Schema(description = "")
......@@ -196,6 +206,7 @@ public class InlineResponse200 {
/**
* Get hourlyUnits
*
* @return hourlyUnits
**/
@Schema(description = "")
......@@ -216,6 +227,7 @@ public class InlineResponse200 {
/**
* Get hourly
*
* @return hourly
**/
@Schema(description = "")
......@@ -236,6 +248,7 @@ public class InlineResponse200 {
/**
* Get dailyUnits
*
* @return dailyUnits
**/
@Schema(description = "")
......@@ -256,6 +269,7 @@ public class InlineResponse200 {
/**
* Get daily
*
* @return daily
**/
@Schema(description = "")
......@@ -269,7 +283,6 @@ public class InlineResponse200 {
this.daily = daily;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -294,7 +307,8 @@ public class InlineResponse200 {
@Override
public int hashCode() {
return Objects.hash(latitude, longitude, generationtimeMs, utcOffsetSeconds, timezone, timezoneAbbreviation, elevation, hourlyUnits, hourly, dailyUnits, daily);
return Objects.hash(latitude, longitude, generationtimeMs, utcOffsetSeconds, timezone, timezoneAbbreviation,
elevation, hourlyUnits, hourly, dailyUnits, daily);
}
@Override
......
......@@ -18,15 +18,14 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Model200 {
@JsonProperty("location")
private Location location = null;
private Location location = new Location();
@JsonProperty("current")
private Current current = null;
private Current current = new Current();
public Model200 location(Location location) {
this.location = location;
......
......@@ -23,16 +23,16 @@ import javax.validation.constraints.*;
public class Modelforecast {
@JsonProperty("location")
private Location location = null;
private Location location = new Location();
@JsonProperty("current")
private Current current = null;
private Current current = new Current();
@JsonProperty("forecast")
private WeatherResponseForecast forecast = null;
private WeatherResponseForecast forecast = new WeatherResponseForecast();
@JsonProperty("alerts")
private WeatherResponseAlerts alerts = null;
private WeatherResponseAlerts alerts = new WeatherResponseAlerts();
public Modelforecast location(Location location) {
this.location = location;
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.WeatherResponseForecast;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
......@@ -15,7 +18,7 @@ import javax.validation.constraints.*;
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class WeatherResponse {
@JsonProperty("forecast")
private WeatherResponseForecast forecast = null;
......@@ -27,6 +30,7 @@ public class WeatherResponse {
/**
* Get forecast
*
* @return forecast
**/
@Schema(description = "")
......@@ -41,7 +45,6 @@ public class WeatherResponse {
this.forecast = forecast;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.Alerts;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
......@@ -17,7 +20,7 @@ import javax.validation.constraints.*;
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T13:05:28.829911948Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class WeatherResponseAlerts {
@JsonProperty("alert")
@Valid
......@@ -38,6 +41,7 @@ public class WeatherResponseAlerts {
/**
* Get alert
*
* @return alert
**/
@Schema(description = "")
......@@ -51,7 +55,6 @@ public class WeatherResponseAlerts {
this.alert = alert;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.ForecastDay;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
......@@ -16,12 +19,11 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class WeatherResponseForecast {
@JsonProperty("forecastday")
@Valid
private List<ForecastDay> forecastday = null;
private List<ForecastDay> forecastday = new ArrayList<>();
public WeatherResponseForecast forecastday(List<ForecastDay> forecastday) {
this.forecastday = forecastday;
......@@ -38,6 +40,7 @@ public class WeatherResponseForecast {
/**
* Get forecastday
*
* @return forecastday
**/
@Schema(description = "")
......@@ -51,7 +54,6 @@ public class WeatherResponseForecast {
this.forecastday = forecastday;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment