Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Java demo with tutorial update #56

Open
wants to merge 2 commits into
base: java
Choose a base branch
from

Conversation

xiaodongliang
Copy link

the most change is : retried the way to define endpoint by web.xml, use urlPatterns of WebServlet now

retried the way to define endpoint by web.xml, use urlPatterns of WebServlet now
@petrbroz petrbroz changed the base branch from master to java July 28, 2021 07:58
@petrbroz
Copy link
Collaborator

Hi guys, the very first thing I noticed here is that the PR was trying to merge the changes into master. I changed the target branch to java but let me know if you had something else in mind with this PR.

@@ -37,7 +42,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
if (id.equals("#")) {// root
BucketsApi bucketsApi = new BucketsApi();

ApiResponse<Buckets> buckets = bucketsApi.getBuckets("us", 100, null, forgeOAuth,
ApiResponse<Buckets> buckets = bucketsApi.getBuckets("us", 100, "abc", forgeOAuth,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the "abc" parameter mean here? According to the docs, the 3rd param is:

Key to use as an offset to continue pagination This is typically the last bucket key found in a preceding GET buckets response

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it is an error, need to be fixed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue is from the original version of JAVA tutorial. done. fixed.

Copy link
Collaborator

@petrbroz petrbroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the "abc" thing the code looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants