From 5f428243d6a97f733a6c527484ca64f2a219ea6a Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 30 Aug 2018 19:02:27 +0530 Subject: Casablanca: MSB service create Issue-ID: CLI-122 Change-Id: Ie3eba0ddb0c8b6b4c83acdecb565707c0415b6ae Signed-off-by: Kanagaraj Manickam k00365106 --- .../microservice-create-schema-moco.json | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json (limited to 'products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json') diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json new file mode 100644 index 00000000..d2b703d0 --- /dev/null +++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json @@ -0,0 +1,55 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/api/microservices/v1/services", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : { + "serviceName" : "test", + "version" : "v1", + "path" : "/test", + "url" : "/test", + "protocol" : "REST", + "enable_ssl" : "", + "visualRange" : "1", + "lb_policy" : "ip_hash", + "nodes" : [ { + "ip" : "10.0.0.1", + "port" : "8080", + "ttl" : 0 + } ] + } + }, + "response" : { + "status" : 201, + "json" : { + "serviceName" : "test", + "version" : "v1", + "url" : "/test", + "protocol" : "REST", + "visualRange" : "1", + "lb_policy" : "ip_hash", + "publish_port" : "", + "namespace" : "", + "network_plane_type" : "", + "host" : "", + "path" : "/test", + "enable_ssl" : false, + "nodes" : [ { + "ip" : "10.0.0.1", + "port" : "8080", + "checkType" : "", + "checkUrl" : "", + "ha_role" : "", + "nodeId" : "_test_10.0.0.1_8080", + "status" : "passing" + } ], + "metadata" : [ ], + "labels" : [ ], + "status" : "1", + "is_manual" : false + } + } +} ] \ No newline at end of file -- cgit 1.2.3-korg