Date post: | 14-Apr-2017 |
Category: |
Software |
Upload: | jaxlondonconference |
View: | 240 times |
Download: | 0 times |
@Path("/feed/1234") public String getFeed() { return """ { "posts": [ { "id": "1414", "name": "Bob", "message": "Hi there, I'm bob", "when": "Just now" }]}"""}
@Path("/feed/1234") public Feed getFeed() { return Feed.containing(posts( new Post("1414", "Bob", "Hi there, I'm bob", "Just now")) ); }
public Feed getFeed() { return Feed.containing( posts(new Post("1414", "Bob", "Hi there, I'm bob", "Just now")) ); }