Skip to content

Commit

Permalink
fix url and update sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
cdavisafc committed Feb 2, 2019
1 parent 55759cb commit 8acfa64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -76,7 +76,7 @@ public String getName() {
private String p;


@RequestMapping(method = RequestMethod.GET, value="/connectionsPosts/{username}")
@RequestMapping(method = RequestMethod.GET, value="/connectionsposts/{username}")
public Iterable<PostSummary> getByUsername(@PathVariable("username") String username, HttpServletResponse response) {

ArrayList<PostSummary> postSummaries = new ArrayList<PostSummary>();
Expand Down
Expand Up @@ -40,13 +40,13 @@ private void populate() {
Iterable<Post> posts = postsController.getPostsByUserId("2",null);
if (!posts.iterator().hasNext()) {

post1 = new Post(2L, "Max Title", "The body of the post");
post1 = new Post(2L, "Chicken Pho", "This is my attempt to recreate what I ate in Vietnam...");
postsController.newPost(post1, null);
post2 = new Post(1L, "Cornelia Title", "The body of the post");
post2 = new Post(1L, "Whole Orange Cake", "That's right, you blend up whole oranges, rind and all...");
postsController.newPost(post2, null);
post3 = new Post(1L, "Cornelia Title2", "The body of the post");
post3 = new Post(1L, "German Dumplings (Kloesse)", "Russet potatoes, flour (gluten free!) and more...");
postsController.newPost(post3, null);
post4 = new Post(3L, "Glen Title", "The body of the post");
post4 = new Post(3L, "French Press Lattes", "We've figured out how to make these dairy free, but just as good!...");
postsController.newPost(post4, null);

}
Expand Down

0 comments on commit 8acfa64

Please sign in to comment.