src/main/java/com/amarin/urlshortenerapi/dto/UrlLongRequest.java
package com.amarin.urlshortenerapi.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
@ApiModel(description = "Request object for POST method")
public class UrlLongRequest {
@ApiModelProperty(required = true, notes = "Url to convert to short")
private String longUrl;
@ApiModelProperty(notes = "Expiration datetime of url")
private Date expiresDate;
public String getLongUrl() {
return longUrl;
}
public void setLongUrl(String longUrl) {
this.longUrl = longUrl;
}
public Date getExpiresDate() {
return expiresDate;
}
public void setExpiresDate(Date expiresDate) {
this.expiresDate = expiresDate;
}
}