-
Notifications
You must be signed in to change notification settings - Fork 4
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
[WIP] 12-SearchApi #36
Conversation
@shunjikonishi I think we will have to change the getter methods for Repository as well as User. I am not sure, please advice. |
@sukeshni |
@shunjikonishi Gist created at https://gist.github.com/sukeshni/0ccf97bde002ab552dcf |
See this. https://github.com/code-check/github-api-scala/wiki/How-to-define-model Maybe you can use trait. |
@shunjikonishi Thanks for the wiki-link |
} | ||
} | ||
|
||
case class searchCodeItems (value: JValue) extends AbstractJson(value){ |
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.
Maybe the other fields (path, sha, url, git_url, html_url) will be useful too.
@sukeshni fix me. I'm not sure if the query string implementation has to be changed, your implementation works; its just a matter of simplifying things. Also from Koni's comment: $ git checkout master
$ git pull origin master
$ git checkout 3-issueAPI
$ git rebase master
(Maybe conflict happen, so you have to fix them with your editor.)
$ git rebase --continue
$ git push -f origin 3-issueAPI To update to the latest changes. |
@fanwashere Will update it with Master. |
@sukeshni That is fine then. However, I think you should add in the other fields in searchCodeItems. |
@fanwashere I don't get the use of asserting (path, sha, url, git_url, html_url) for searchCodeItems. Please advice. Probably I should check for name, in SearchCode i am searching for language:js so i can check for filename with extension .js |
@sukeshni Sorry for not being clear. Currently in searchCodeItems there are two methods: def name: String = get("name")
lazy val Repo = new Repository(value \ "repository") I usually check for the contents of the response JSON object by writing showResponse(result) into the tests. When I did that, I found that it also gives you those other fields (path, sha, url, git_url, html_url). But without a method like: def path: String = get("path") We cannot access those fields. Some fields are redundant but I feel that these fields may be useful. |
This PR can be closed in favor of #70, IMHO |
No description provided.