Add links to GitHub API
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user