Skip to content

Commit

Permalink
update route and json payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Crawford committed Jun 1, 2020
1 parent a5e3abb commit 550d20b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 1-click.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"net/http"
)

const oneClickBasePath = "v2/1-click"
const oneClickBasePath = "v2/1-clicks"

// OneClickService is an interface for interacting with 1-clicks with the
// DigitalOcean API.
// See: https://developers.digitalocean.com/documentation/v2#1-clicks
type OneClickService interface {
List(context.Context, string) ([]*OneClick, *Response, error)
}
Expand All @@ -29,7 +30,7 @@ type OneClick struct {

// OneClicksRoot is the root of the json payload that contains a list of 1-clicks
type OneClicksRoot struct {
List []*OneClick `json:"list"`
List []*OneClick `json:"1_clicks"`
}

// List returns a list of the available 1-click applications.
Expand Down

0 comments on commit 550d20b

Please sign in to comment.