servant-reason-0.1.0.0: test/reason-sources/getOneSource.re
let getOne = () => {
Js.Promise.(
Fetch.fetchWithInit(String.concat("/"
,[ ""
, "one"
])
,Fetch.RequestInit.make(~method_=Get
,()))
|> then_(Fetch.Response.json)
|> then_(response => (response |> Json.Decode.int |> ((x) => Belt_Result.Ok(x)) |> resolve)))
}