Swagger (OpenAPI) 2.0 spec to generate New Relic clients and documentation, in response to https://discuss.newrelic.com/t/api-declaration-swagger-for-example/35365
Contributed by Ian Katz ikatz@drizly.com with permission from Drizly.
Swagger (OpenAPI) 2.0 spec to generate New Relic clients and documentation, in response to https://discuss.newrelic.com/t/api-declaration-swagger-for-example/35365
Contributed by Ian Katz ikatz@drizly.com with permission from Drizly.
This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).
Log in as root.
First, make sure the system is up to date, and install tar
and wget
:
When receiving JSON data from other resources(server API etc), we need Json.Decode to convert the JSON values into Elm values. This gist let you quickly learn how to do that.
I like to follow working example code so this is how the boilerplate will look like:
import Graphics.Element exposing (Element, show)
import Task exposing (Task, andThen)
import Json.Decode exposing (Decoder, int, string, object3, (:=))
import Http