You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: challenger/src/main/java/uk/co/compendiumdev/challenge/challenges/definitions/ChallengerChallenges.java
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,10 @@ public static ChallengeDefinitionData getRestoreExistingChallenger200(int challe
27
27
aChallenge.addHint("In multi-user mode, you need to create an X-CHALLENGER Session first and let it go idle so it is removed in the 10 minute purge", "/gui/multiuser");
28
28
aChallenge.addHint("Remember to add the X-CHALLENGER header to track your progress", "");
29
29
aChallenge.addHint("Add the guid in the URL as the last part of the path", "");
30
+
30
31
aChallenge.addSolutionLink("GET /challenger/{guid} for a challenger previously saved in the persistence store", "", "");
@@ -42,8 +44,10 @@ public static ChallengeDefinitionData postRestoreExistingChallenger200(int chall
42
44
"Issue a POST request on the `/challenger` end point, with an existing challenger GUID as the X-CHALLENGER header to restore that challenger's progress into memory."
43
45
);
44
46
aChallenge.addHint("In multi-user mode, you need to create an X-CHALLENGER Session first and let it go idle so it is removed in the 10 minute purge", "/gui/multiuser");
47
+
45
48
aChallenge.addSolutionLink("POST /challenger with the challenger GUID in the X-CHALLENGER header for a challenger previously saved in the persistence store", "", "");
@@ -102,7 +111,8 @@ public static ChallengeDefinitionData getRestorableTodos200(int challengeOrder)
102
111
"Issue a GET request on the `/challenger/database/{guid}` end point, to retrieve the current todos database for the user. You can use this to restore state later."
103
112
);
104
113
aChallenge.addHint("Remember to add the X-CHALLENGER header to track your progress", "");
@@ -116,8 +126,10 @@ public static ChallengeDefinitionData putRestorableTodos204(int challengeOrder)
116
126
);
117
127
aChallenge.addHint("Use the Todos database payload returned from the earlier GET request", "");
118
128
aChallenge.addHint("Remember to add the X-CHALLENGER header to track your progress", "");
129
+
119
130
aChallenge.addSolutionLink("Using the payload from the earlier 'GET /challenger/database/guid' request, use PUT to reset the challenger todos data", "", "");
Copy file name to clipboardExpand all lines: challenger/src/main/resources/content/apichallenges/solutions/accept-header/get-todos-406.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
date: 2021-07-17T10:32:00Z
3
3
title: API Challenges Solution For - GET todos Invalid Accept Header 406
4
4
description: How to solve API challenge GET todos Invalid Accept 406 to GET the todos with an unsupported accept header present which generates a 406 error response.
5
+
showads: true
5
6
---
6
7
7
8
# How to complete the challenge `GET /todos (406)`
0 commit comments