summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-25 02:24:43 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-25 02:24:43 -0800
commit1f80266d6ef342a2ed89c76936afd1e16cf3001d (patch)
tree7a8f1cb7ed1e846bb0afd398909ccd346f0559f4
parent1c5ffd2711493994ed7934f6cd69766ae683b1ca (diff)
api: fix REST API URL comments again
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--api/rest.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/api/rest.go b/api/rest.go
index f1eaaf9b..aaeeabd0 100644
--- a/api/rest.go
+++ b/api/rest.go
@@ -117,18 +117,16 @@ 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>:8080/v1/bgp/neighbor/<remote address of target neighbor>
// get state of neighbors.
// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/neighbors
+// get state of neighbor.
+// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/neighbor/<remote address of target neighbor>
// get adj-rib-in of each neighbor.
-// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/<remote address of target neighbor>/adj-rib-in
+// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/neighbor/<remote address of target neighbor>/adj-rib-in
// get adj-rib-out of each neighbor.
-// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/<remote address of target neighbor>/adj-rib-out
+// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/neighbor/<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>:8080/v1/bgp/adj-rib-local/best/<remote address of target neighbor>
+// -- curl -i -X GET http://<ownIP>:8080/v1/bgp/neighbor/<remote address of target neighbor>/local-rib
func (rs *RestServer) Serve() {
neighbor := BASE_VERSION + NEIGHBOR
// neighbors := BASE_VERSION + NEIGHBORS