-
Notifications
You must be signed in to change notification settings - Fork 528
Discovery #505
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
Discovery #505
Conversation
germanattanasio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass
discovery/README.md
Outdated
| <dependency> | ||
| <groupId>com.ibm.watson.developer_cloud</groupId> | ||
| <artifactId>discovery</artifactId> | ||
| <version>3.5.2</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.5.3
discovery/README.md
Outdated
| The [Discovery][discovery] wraps the environment, collection, configuration, document, and query operations of the Discovery service. | ||
|
|
||
| ```java | ||
| Discovery service = new Discovery("2016-12-01"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's 2016-12-15. In any casem we need it to be the same as in the documentation
| import java.util.Date; | ||
|
|
||
| /** | ||
| * @author apturgeo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some lines describing what the class does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove @author
| private String name; | ||
| //TODO make this an enum | ||
| @SerializedName(STATUS) | ||
| private String status; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Time to make it an enum ?
| import com.ibm.watson.developer_cloud.discovery.v1.model.collection.field.Field; | ||
|
|
||
| /** | ||
| * @author apturgeo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no author
| /** | ||
| * Copyright 2016 IBM Corp. All Rights Reserved. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
120 max line width
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is 119
| @@ -0,0 +1,64 @@ | |||
| /** | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Aggregation should be enough as a class name. No need to have Query at the beginning.
|
@maniax89 update your github profile!!! |
|
Here is a rough list of things I have not done yet (but probably will not have time to do):
|
kognate
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
He made a bunch of changes.
Summary
This introduces Discovery service to the java-sdk
Other Information
good luck reviewing it!
Thanks for contributing to the Watson Developer Cloud!