From 8acfa64f4292f12be906e3ae7256ac587b2ae034 Mon Sep 17 00:00:00 2001 From: Cornelia Davis Date: Thu, 31 Jan 2019 22:44:25 -0800 Subject: [PATCH] fix url and update sample data --- .../connectionsposts/ConnectionsPostsController.java | 2 +- .../cloudnative/config/RepositoriesPopulator.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cloudnative-statelessness/cloudnative-connectionposts/src/main/java/com/corneliadavis/cloudnative/connectionsposts/ConnectionsPostsController.java b/cloudnative-statelessness/cloudnative-connectionposts/src/main/java/com/corneliadavis/cloudnative/connectionsposts/ConnectionsPostsController.java index 2ee6ee8..d54d6f3 100644 --- a/cloudnative-statelessness/cloudnative-connectionposts/src/main/java/com/corneliadavis/cloudnative/connectionsposts/ConnectionsPostsController.java +++ b/cloudnative-statelessness/cloudnative-connectionposts/src/main/java/com/corneliadavis/cloudnative/connectionsposts/ConnectionsPostsController.java @@ -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 getByUsername(@PathVariable("username") String username, HttpServletResponse response) { ArrayList postSummaries = new ArrayList(); diff --git a/cloudnative-statelessness/cloudnative-posts/src/main/java/com/corneliadavis/cloudnative/config/RepositoriesPopulator.java b/cloudnative-statelessness/cloudnative-posts/src/main/java/com/corneliadavis/cloudnative/config/RepositoriesPopulator.java index 29aeaa3..1aa5a8b 100644 --- a/cloudnative-statelessness/cloudnative-posts/src/main/java/com/corneliadavis/cloudnative/config/RepositoriesPopulator.java +++ b/cloudnative-statelessness/cloudnative-posts/src/main/java/com/corneliadavis/cloudnative/config/RepositoriesPopulator.java @@ -40,13 +40,13 @@ private void populate() { Iterable 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); }