Add links to GitHub API

This commit is contained in:
Richard Feldman
2016-03-05 09:45:48 -08:00
parent 6f064918bf
commit 33e8ad0cff
3 changed files with 9 additions and 0 deletions

View File

@@ -36,6 +36,10 @@ type alias ResultId =
Int Int
{- See https://developer.github.com/v3/search/#example -}
initialModel : Model initialModel : Model
initialModel = initialModel =
{ query = "tutorial" { query = "tutorial"

View File

@@ -43,6 +43,10 @@ type alias ResultId =
Int Int
{- See https://developer.github.com/v3/search/#example -}
initialModel : Model initialModel : Model
initialModel = initialModel =
{ query = "tutorial" { query = "tutorial"

View File

@@ -57,6 +57,7 @@ searchResultDecoder : Decoder SearchResult
searchResultDecoder = searchResultDecoder =
Json.Decode.object3 Json.Decode.object3
SearchResult SearchResult
-- See https://developer.github.com/v3/search/#example
("TODO what field goes here?" := Json.Decode.int) ("TODO what field goes here?" := Json.Decode.int)
("TODO what field goes here?" := Json.Decode.string) ("TODO what field goes here?" := Json.Decode.string)
("TODO what field goes here?" := Json.Decode.int) ("TODO what field goes here?" := Json.Decode.int)