diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-25 02:22:43 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-25 02:22:43 -0800 |
commit | 1c5ffd2711493994ed7934f6cd69766ae683b1ca (patch) | |
tree | 62169b2e750715791590eb7e34366e10f0201948 /api | |
parent | 35145891c55f7468ff9ae464d3edfe475cdda985 (diff) |
api: fix REST API cooments
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api')
-rw-r--r-- | api/rest.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/api/rest.go b/api/rest.go index 08588e70..f1eaaf9b 100644 --- a/api/rest.go +++ b/api/rest.go @@ -118,17 +118,17 @@ func NewRestServer(port int, bgpServerCh chan *RestRequest) *RestServer { // Main thread of rest service. // URL than can receive. // get state of neighbor. -// -- curl -i -X GET http://<ownIP>:3000/v1/bgp/neighbor/<remote address of target neighbor> +// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/neighbor/<remote address of target neighbor> // get state of neighbors. -// -- curl -i -X GET http://<ownIP>:3000/v1/bgp/neighbors +// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/neighbors // get adj-rib-in of each neighbor. -// -- curl -i -X GET http://<ownIP>:3000/v1/bgp/adj-rib-in/<remote address of target neighbor> +// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/<remote address of target neighbor>/adj-rib-in // get adj-rib-out of each neighbor. -// -- curl -i -X GET http://<ownIP>:3000/v1/bgp/adj-rib-out/<remote address of target neighbor> -// get adj-rib-local of each neighbor. -// -- curl -i -X GET http://<ownIP>:3000/v1/bgp/adj-rib-local/<remote address of target neighbor> +// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/<remote address of target neighbor>/adj-rib-out +// get local-rib of each neighbor. +// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/<remote address of target neighbor>/local-rib // get only best path of adj-rib-local of each neighbor. -// -- curl -i -X GET http://<ownIP>:3000/v1/bgp/adj-rib-local/best/<remote address of target neighbor> +// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/adj-rib-local/best/<remote address of target neighbor> func (rs *RestServer) Serve() { neighbor := BASE_VERSION + NEIGHBOR // neighbors := BASE_VERSION + NEIGHBORS |