Change segment list endpoint in docs/client api

This commit is contained in:
Kyle Havlovitz 2017-09-01 12:34:27 -07:00
parent 20fcfe866e
commit 777cf7b017
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package api
// SegmentList returns all the available LAN segments.
func (op *Operator) SegmentList(q *QueryOptions) ([]string, *QueryMeta, error) {
var out []string
qm, err := op.c.query("/v1/operator/segment/list", &out, q)
qm, err := op.c.query("/v1/operator/segment", &out, q)
if err != nil {
return nil, nil, err
}

View File

@ -28,7 +28,7 @@ This endpoint lists all network areas.
| Method | Path | Produces |
| ------ | ---------------------------- | -------------------------- |
| `GET` | `/operator/segment/list` | `application/json` |
| `GET` | `/operator/segment` | `application/json` |
The table below shows this endpoint's support for
[blocking queries](/api/index.html#blocking-queries),