Skip to content

purplemagma/ctof14-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cheat sheet for Hands on Coding Experience

For Part 1: Here is the code you need for TestServiceConsumer.java

For the findBestRestaurant method: // Write your code here to choose the best restaurant by setting winningRestaurant to your choice if (itemContent.length() >= winningRestaurant.length()) { winningRestaurant = itemContent; }

For the postBestRestaurant method: // Write your code here to set the feed type and content just like you did with swagger. The best restaurant is passed as a parameter // Hint: JSONObject is just like a dictionary. You can do feedItem.put("fieldName","fieldValue") // Hint: The two fields you set for a feed note from the swagger documentation are feedType and content feedItem.put("feedType", "Note"); feedItem.put("content", "Let's meet at "+bestRestaurant);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published