Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* will also demonstrate a simple Moshi deserialization from online data.
*/
// TODO 1: Check out this Handler. How can we make it only get activities based on participant #?
// See Documentation here: https://www.boredapi.com/documentation
// See Documentation here: https://bored-api.appbrewery.com/
public class ActivityHandler implements Route {
/**
* This handle method needs to be filled by any class implementing Route. When the path set in
Expand Down Expand Up @@ -72,7 +72,7 @@ private String sendRequest() throws URISyntaxException, IOException, Interrupted
// on participant number?
HttpRequest buildBoredApiRequest =
HttpRequest.newBuilder()
.uri(new URI("http://www.boredapi.com/api/activity/"))
.uri(new URI("https://bored-api.appbrewery.com/filter"))
.GET()
.build();

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/edu/brown/cs/student/main/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public static void main(String[] args) {
response.header("Access-Control-Allow-Methods", "*");
});

// Sets up data needed for the OrderHandler. You will likely not read from local
// JSON in this sprint.
// Sets up data needed for the OrderHandler by reading from a local JSON.
String menuAsJson = SoupAPIUtilities.readInJson("data/menu.json");
List<Soup> menu = new ArrayList<>();
try {
Expand Down