removed wicket and tomee, use dropwizard instead. remove wro4j, use gulp instead

This commit is contained in:
Athou
2014-08-08 16:49:02 +02:00
parent bbcd79e49f
commit 986fd25942
357 changed files with 2178 additions and 19556 deletions

View File

@@ -6,32 +6,32 @@ import java.util.List;
import lombok.Data;
import com.google.common.collect.Lists;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Entry details")
@ApiModel("Entry details")
@Data
public class Category implements Serializable {
@ApiProperty("category id")
@ApiModelProperty("category id")
private String id;
@ApiProperty("parent category id")
@ApiModelProperty("parent category id")
private String parentId;
@ApiProperty("category id")
@ApiModelProperty("category id")
private String name;
@ApiProperty("category children categories")
@ApiModelProperty("category children categories")
private List<Category> children = Lists.newArrayList();
@ApiProperty("category feeds")
@ApiModelProperty("category feeds")
private List<Subscription> feeds = Lists.newArrayList();
@ApiProperty("wether the category is expanded or collapsed")
@ApiModelProperty("wether the category is expanded or collapsed")
private boolean expanded;
@ApiProperty("position of the category in the list")
@ApiModelProperty("position of the category in the list")
private Integer position;
}

View File

@@ -6,42 +6,42 @@ import java.util.List;
import lombok.Data;
import com.google.common.collect.Lists;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("List of entries with some metadata")
@ApiModel("List of entries with some metadata")
@Data
public class Entries implements Serializable {
@ApiProperty("name of the feed or the category requested")
@ApiModelProperty("name of the feed or the category requested")
private String name;
@ApiProperty("error or warning message")
@ApiModelProperty("error or warning message")
private String message;
@ApiProperty("times the server tried to refresh the feed and failed")
@ApiModelProperty("times the server tried to refresh the feed and failed")
private int errorCount;
@ApiProperty("URL of the website, extracted from the feed")
@ApiModelProperty("URL of the website, extracted from the feed")
private String feedLink;
@ApiProperty("list generation timestamp")
@ApiModelProperty("list generation timestamp")
private long timestamp;
@ApiProperty("if the query has more elements")
@ApiModelProperty("if the query has more elements")
private boolean hasMore;
@ApiProperty("the requested offset")
@ApiModelProperty("the requested offset")
private int offset;
@ApiProperty("the requested limit")
@ApiModelProperty("the requested limit")
private int limit;
@ApiProperty("list of entries")
@ApiModelProperty("list of entries")
private List<Entry> entries = Lists.newArrayList();
@ApiProperty("if true, the unread flag was ignored in the request, all entries are returned regardless of their read status")
@ApiModelProperty("if true, the unread flag was ignored in the request, all entries are returned regardless of their read status")
private boolean ignoredReadStatus;
}

View File

@@ -7,7 +7,7 @@ import java.util.List;
import lombok.Data;
import com.commafeed.backend.feeds.FeedUtils;
import com.commafeed.backend.feed.FeedUtils;
import com.commafeed.backend.model.FeedEntry;
import com.commafeed.backend.model.FeedEntryContent;
import com.commafeed.backend.model.FeedEntryStatus;
@@ -17,11 +17,11 @@ import com.google.common.collect.Lists;
import com.sun.syndication.feed.synd.SyndContentImpl;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndEntryImpl;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Entry details")
@ApiModel("Entry details")
@Data
public class Entry implements Serializable {
@@ -78,63 +78,63 @@ public class Entry implements Serializable {
return entry;
}
@ApiProperty("entry id")
@ApiModelProperty("entry id")
private String id;
@ApiProperty("entry guid")
@ApiModelProperty("entry guid")
private String guid;
@ApiProperty("entry title")
@ApiModelProperty("entry title")
private String title;
@ApiProperty("entry content")
@ApiModelProperty("entry content")
private String content;
@ApiProperty("wether entry content and title are rtl")
@ApiModelProperty("wether entry content and title are rtl")
private boolean rtl;
@ApiProperty("entry author")
@ApiModelProperty("entry author")
private String author;
@ApiProperty("entry enclosure url, if any")
@ApiModelProperty("entry enclosure url, if any")
private String enclosureUrl;
@ApiProperty("entry enclosure mime type, if any")
@ApiModelProperty("entry enclosure mime type, if any")
private String enclosureType;
@ApiProperty("entry publication date")
@ApiModelProperty("entry publication date")
private Date date;
@ApiProperty("entry insertion date in the database")
@ApiModelProperty("entry insertion date in the database")
private Date insertedDate;
@ApiProperty("feed id")
@ApiModelProperty("feed id")
private String feedId;
@ApiProperty("feed name")
@ApiModelProperty("feed name")
private String feedName;
@ApiProperty("this entry's feed url")
@ApiModelProperty("this entry's feed url")
private String feedUrl;
@ApiProperty("this entry's website url")
@ApiModelProperty("this entry's website url")
private String feedLink;
@ApiProperty(value = "The favicon url to use for this feed")
@ApiModelProperty(value = "The favicon url to use for this feed")
private String iconUrl;
@ApiProperty("entry url")
@ApiModelProperty("entry url")
private String url;
@ApiProperty("read sttaus")
@ApiModelProperty("read sttaus")
private boolean read;
@ApiProperty("starred status")
@ApiModelProperty("starred status")
private boolean starred;
@ApiProperty("wether the entry is still markable (old entry statuses are discarded)")
@ApiModelProperty("wether the entry is still markable (old entry statuses are discarded)")
private boolean markable;
@ApiProperty("tags")
@ApiModelProperty("tags")
private List<String> tags;
}

View File

@@ -7,9 +7,9 @@ import lombok.Data;
import com.commafeed.backend.model.Feed;
import com.google.common.collect.Lists;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiModel;
@ApiClass("Feed count")
@ApiModel("Feed count")
@Data
public class FeedCount implements Serializable {

View File

@@ -4,10 +4,10 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiModel;
@SuppressWarnings("serial")
@ApiClass("Feed details")
@ApiModel("Feed details")
@Data
public class FeedInfo implements Serializable {

View File

@@ -1,21 +1,18 @@
package com.commafeed.frontend.model;
import java.io.Serializable;
import java.util.Map;
import lombok.Data;
import com.google.common.collect.Maps;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiModel;
@SuppressWarnings("serial")
@ApiClass("Server infos")
@ApiModel("Server infos")
@Data
public class ServerInfo implements Serializable {
private String announcement;
private String version;
private String gitCommit;
private Map<String, String> supportedLanguages = Maps.newHashMap();
}

View File

@@ -4,41 +4,41 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("User settings")
@ApiModel("User settings")
@Data
public class Settings implements Serializable {
@ApiProperty(value = "user's preferred language, english if none")
@ApiModelProperty(value = "user's preferred language, english if none")
private String language;
@ApiProperty(value = "user reads all entries or unread entries only", allowableValues = "all,unread", required = true)
@ApiModelProperty(value = "user reads all entries or unread entries only", allowableValues = "all,unread", required = true)
private String readingMode;
@ApiProperty(value = "user reads entries in ascending or descending order", allowableValues = "asc,desc", required = true)
@ApiModelProperty(value = "user reads entries in ascending or descending order", allowableValues = "asc,desc", required = true)
private String readingOrder;
@ApiProperty(value = "user viewing mode, either title-only or expande view", allowableValues = "title,expanded", required = true)
@ApiModelProperty(value = "user viewing mode, either title-only or expande view", allowableValues = "title,expanded", required = true)
private String viewMode;
@ApiProperty(value = "user wants category and feeds with no unread entries shown", required = true)
@ApiModelProperty(value = "user wants category and feeds with no unread entries shown", required = true)
private boolean showRead;
@ApiProperty(value = "In expanded view, scroll through entries mark them as read", required = true)
@ApiModelProperty(value = "In expanded view, scroll through entries mark them as read", required = true)
private boolean scrollMarks;
@ApiProperty(value = "user's selected theme")
@ApiModelProperty(value = "user's selected theme")
private String theme;
@ApiProperty(value = "user's custom css for the website")
@ApiModelProperty(value = "user's custom css for the website")
private String customCss;
@ApiProperty(value = "user's preferred scroll speed when navigating between entries")
@ApiModelProperty(value = "user's preferred scroll speed when navigating between entries")
private int scrollSpeed;
private boolean email;
private boolean gmail;
private boolean facebook;

View File

@@ -5,15 +5,15 @@ import java.util.Date;
import lombok.Data;
import com.commafeed.backend.feeds.FeedUtils;
import com.commafeed.backend.feed.FeedUtils;
import com.commafeed.backend.model.Feed;
import com.commafeed.backend.model.FeedCategory;
import com.commafeed.backend.model.FeedSubscription;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("User information")
@ApiModel("User information")
@Data
public class Subscription implements Serializable {
@@ -38,43 +38,43 @@ public class Subscription implements Serializable {
return sub;
}
@ApiProperty(value = "subscription id", required = true)
@ApiModelProperty(value = "subscription id", required = true)
private Long id;
@ApiProperty(value = "subscription name", required = true)
@ApiModelProperty(value = "subscription name", required = true)
private String name;
@ApiProperty(value = "error message while fetching the feed", required = true)
@ApiModelProperty(value = "error message while fetching the feed", required = true)
private String message;
@ApiProperty(value = "error count", required = true)
@ApiModelProperty(value = "error count", required = true)
private int errorCount;
@ApiProperty(value = "last time the feed was refreshed", required = true)
@ApiModelProperty(value = "last time the feed was refreshed", required = true)
private Date lastRefresh;
@ApiProperty(value = "next time the feed refresh is planned, null if refresh is already queued", required = true)
@ApiModelProperty(value = "next time the feed refresh is planned, null if refresh is already queued", required = true)
private Date nextRefresh;
@ApiProperty(value = "this subscription's feed url", required = true)
@ApiModelProperty(value = "this subscription's feed url", required = true)
private String feedUrl;
@ApiProperty(value = "this subscription's website url", required = true)
@ApiModelProperty(value = "this subscription's website url", required = true)
private String feedLink;
@ApiProperty(value = "The favicon url to use for this feed")
@ApiModelProperty(value = "The favicon url to use for this feed")
private String iconUrl;
@ApiProperty(value = "unread count", required = true)
@ApiModelProperty(value = "unread count", required = true)
private long unread;
@ApiProperty(value = "category id")
@ApiModelProperty(value = "category id")
private String categoryId;
@ApiProperty("position of the subscription's in the list")
@ApiModelProperty("position of the subscription's in the list")
private Integer position;
@ApiProperty("date of the newest item")
@ApiModelProperty("date of the newest item")
private Date newestItemTime;
}

View File

@@ -5,10 +5,10 @@ import java.util.Date;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiModel;
@SuppressWarnings("serial")
@ApiClass("Unread count")
@ApiModel("Unread count")
@Data
public class UnreadCount implements Serializable {
@@ -17,7 +17,6 @@ public class UnreadCount implements Serializable {
private Date newestItemTime;
public UnreadCount() {
}
public UnreadCount(long feedId, long unreadCount, Date newestItemTime) {

View File

@@ -5,39 +5,39 @@ import java.util.Date;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("User information")
@ApiModel("User information")
@Data
public class UserModel implements Serializable {
@ApiProperty(value = "user id", required = true)
@ApiModelProperty(value = "user id", required = true)
private Long id;
@ApiProperty(value = "user name", required = true)
@ApiModelProperty(value = "user name", required = true)
private String name;
@ApiProperty("user email, if any")
@ApiModelProperty("user email, if any")
private String email;
@ApiProperty("api key")
@ApiModelProperty("api key")
private String apiKey;
@ApiProperty(value = "user password, never returned by the api")
@ApiModelProperty(value = "user password, never returned by the api")
private String password;
@ApiProperty(value = "account status")
@ApiModelProperty(value = "account status")
private boolean enabled;
@ApiProperty(value = "account creation date")
@ApiModelProperty(value = "account creation date")
private Date created;
@ApiProperty(value = "last login date")
@ApiModelProperty(value = "last login date")
private Date lastLogin;
@ApiProperty(value = "user is admin")
@ApiModelProperty(value = "user is admin")
private boolean admin;
}

View File

@@ -4,18 +4,18 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Add Category Request")
@ApiModel("Add Category Request")
@Data
public class AddCategoryRequest implements Serializable {
@ApiProperty(value = "name", required = true)
@ApiModelProperty(value = "name", required = true)
private String name;
@ApiProperty(value = "parent category id, if any")
@ApiModelProperty(value = "parent category id, if any")
private String parentId;
}

View File

@@ -4,24 +4,24 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Category modification request")
@ApiModel("Category modification request")
@Data
public class CategoryModificationRequest implements Serializable {
@ApiProperty(value = "id", required = true)
@ApiModelProperty(value = "id", required = true)
private Long id;
@ApiProperty(value = "new name, null if not changed")
@ApiModelProperty(value = "new name, null if not changed")
private String name;
@ApiProperty(value = "new parent category id")
@ApiModelProperty(value = "new parent category id")
private String parentId;
@ApiProperty(value = "new display position, null if not changed")
@ApiModelProperty(value = "new display position, null if not changed")
private Integer position;
}

View File

@@ -4,18 +4,18 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Mark Request")
@ApiModel("Mark Request")
@Data
public class CollapseRequest implements Serializable {
@ApiProperty(value = "category id", required = true)
@ApiModelProperty(value = "category id", required = true)
private Long id;
@ApiProperty(value = "collapse", required = true)
@ApiModelProperty(value = "collapse", required = true)
private boolean collapse;
}

View File

@@ -4,15 +4,15 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Feed information request")
@ApiModel("Feed information request")
@Data
public class FeedInfoRequest implements Serializable {
@ApiProperty(value = "feed url", required = true)
@ApiModelProperty(value = "feed url", required = true)
private String url;
}

View File

@@ -5,18 +5,18 @@ import java.util.List;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Feed merge Request")
@ApiModel("Feed merge Request")
@Data
public class FeedMergeRequest implements Serializable {
@ApiProperty(value = "merge into this feed", required = true)
@ApiModelProperty(value = "merge into this feed", required = true)
private Long intoFeedId;
@ApiProperty(value = "id of the feeds to merge", required = true)
@ApiModelProperty(value = "id of the feeds to merge", required = true)
private List<Long> feedIds;
}

View File

@@ -4,24 +4,24 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Feed modification request")
@ApiModel("Feed modification request")
@Data
public class FeedModificationRequest implements Serializable {
@ApiProperty(value = "id", required = true)
@ApiModelProperty(value = "id", required = true)
private Long id;
@ApiProperty(value = "new name, null if not changed")
@ApiModelProperty(value = "new name, null if not changed")
private String name;
@ApiProperty(value = "new parent category id")
@ApiModelProperty(value = "new parent category id")
private String categoryId;
@ApiProperty(value = "new display position, null if not changed")
@ApiModelProperty(value = "new display position, null if not changed")
private Integer position;
}

View File

@@ -4,15 +4,15 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass
@ApiModel
@Data
public class IDRequest implements Serializable {
@ApiProperty
@ApiModelProperty
private Long id;
}

View File

@@ -5,26 +5,26 @@ import java.util.List;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Mark Request")
@ApiModel("Mark Request")
@Data
public class MarkRequest implements Serializable {
@ApiProperty(value = "entry id, category id, 'all' or 'starred'", required = true)
@ApiModelProperty(value = "entry id, category id, 'all' or 'starred'", required = true)
private String id;
@ApiProperty(value = "mark as read or unread")
@ApiModelProperty(value = "mark as read or unread")
private boolean read;
@ApiProperty(
@ApiModelProperty(
value = "only entries older than this, pass the timestamp you got from the entry list to prevent marking an entry that was not retrieved",
required = false)
private Long olderThan;
@ApiProperty(value = "if marking a category or 'all', exclude those subscriptions from the marking", required = false)
@ApiModelProperty(value = "if marking a category or 'all', exclude those subscriptions from the marking", required = false)
private List<Long> excludedSubscriptions;
}

View File

@@ -5,15 +5,15 @@ import java.util.List;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Multiple Mark Request")
@ApiModel("Multiple Mark Request")
@Data
public class MultipleMarkRequest implements Serializable {
@ApiProperty(value = "list of mark requests", required = true)
@ApiModelProperty(value = "list of mark requests", required = true)
private List<MarkRequest> requests;
}

View File

@@ -4,21 +4,21 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Profile modification request")
@ApiModel("Profile modification request")
@Data
public class ProfileModificationRequest implements Serializable {
@ApiProperty(value = "changes email of the user, if specified")
@ApiModelProperty(value = "changes email of the user, if specified")
private String email;
@ApiProperty(value = "changes password of the user, if specified")
@ApiModelProperty(value = "changes password of the user, if specified")
private String password;
@ApiProperty(value = "generate a new api key")
@ApiModelProperty(value = "generate a new api key")
private boolean newApiKey;
}

View File

@@ -4,19 +4,21 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@Data
@ApiModel
public class RegistrationRequest implements Serializable {
@ApiProperty(value = "username, between 3 and 32 characters", required = true)
@ApiModelProperty(value = "username, between 3 and 32 characters", required = true)
private String name;
@ApiProperty(value = "password, minimum 6 characters", required = true)
@ApiModelProperty(value = "password, minimum 6 characters", required = true)
private String password;
@ApiProperty(value = "email address for password recovery", required = true)
@ApiModelProperty(value = "email address for password recovery", required = true)
private String email;
}

View File

@@ -4,21 +4,21 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Star Request")
@ApiModel("Star Request")
@Data
public class StarRequest implements Serializable {
@ApiProperty(value = "id", required = true)
@ApiModelProperty(value = "id", required = true)
private String id;
@ApiProperty(value = "feed id", required = true)
@ApiModelProperty(value = "feed id", required = true)
private Long feedId;
@ApiProperty(value = "starred or not")
@ApiModelProperty(value = "starred or not")
private boolean starred;
}

View File

@@ -4,21 +4,21 @@ import java.io.Serializable;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Subscription request")
@ApiModel("Subscription request")
@Data
public class SubscribeRequest implements Serializable {
@ApiProperty(value = "url of the feed", required = true)
@ApiModelProperty(value = "url of the feed", required = true)
private String url;
@ApiProperty(value = "name of the feed for the user", required = true)
@ApiModelProperty(value = "name of the feed for the user", required = true)
private String title;
@ApiProperty(value = "id of the user category to place the feed in")
@ApiModelProperty(value = "id of the user category to place the feed in")
private String categoryId;
}

View File

@@ -5,18 +5,18 @@ import java.util.List;
import lombok.Data;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
@SuppressWarnings("serial")
@ApiClass("Tag Request")
@ApiModel("Tag Request")
@Data
public class TagRequest implements Serializable {
@ApiProperty(value = "entry id", required = true)
@ApiModelProperty(value = "entry id", required = true)
private Long entryId;
@ApiProperty(value = "tags")
@ApiModelProperty(value = "tags")
private List<String> tags;
}