mirror of https://github.com/status-im/consul.git
Change segment list endpoint in docs/client api
This commit is contained in:
parent
745537fed4
commit
20296d4a89
|
@ -3,7 +3,7 @@ package api
|
||||||
// SegmentList returns all the available LAN segments.
|
// SegmentList returns all the available LAN segments.
|
||||||
func (op *Operator) SegmentList(q *QueryOptions) ([]string, *QueryMeta, error) {
|
func (op *Operator) SegmentList(q *QueryOptions) ([]string, *QueryMeta, error) {
|
||||||
var out []string
|
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 {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ This endpoint lists all network areas.
|
||||||
|
|
||||||
| Method | Path | Produces |
|
| Method | Path | Produces |
|
||||||
| ------ | ---------------------------- | -------------------------- |
|
| ------ | ---------------------------- | -------------------------- |
|
||||||
| `GET` | `/operator/segment/list` | `application/json` |
|
| `GET` | `/operator/segment` | `application/json` |
|
||||||
|
|
||||||
The table below shows this endpoint's support for
|
The table below shows this endpoint's support for
|
||||||
[blocking queries](/api/index.html#blocking-queries),
|
[blocking queries](/api/index.html#blocking-queries),
|
||||||
|
|
Loading…
Reference in New Issue