summaryrefslogtreecommitdiffstats
path: root/vpp-management
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-06-01 07:28:47 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-01 10:40:47 +0200
commitfe9af79a0cc1a980ac0dfb35a679f4e8565a5ef5 (patch)
tree7cca3da294de20ac91f8dac7359103d291a17e2c /vpp-management
parenta3e02660522fb0c97f77f1123cc4058d589a4095 (diff)
HC2VPP-339: convert postman collections to v2.1.0 format
Mantaining postman collections in v1 format is difficult due to UID strings. Postman collection v2 fixes the issue and many others, see http://blog.getpostman.com/2015/06/05/travelogue-of-postman-collection-format-v2/ Collections in v1 format, were converted using postman-collection-transformer. Output was transformed using JSON.stringify with space='\t', to be compliant with Postman application which does not support spaces for indentation. Coverted collections were tested using Postman v6.1.3. Previous version of postman collections were renamed to *_v1.0.0.json or *_v2.0.0.json. Removal is planned in 18.10 (HC2VPP-338). Change-Id: I6caf496293fccc1f9aadcdece668b5200fe07122 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'vpp-management')
-rw-r--r--vpp-management/vpp_management_postman_collection.json247
-rw-r--r--vpp-management/vpp_management_postman_collection_v1.0.0.json106
2 files changed, 256 insertions, 97 deletions
diff --git a/vpp-management/vpp_management_postman_collection.json b/vpp-management/vpp_management_postman_collection.json
index 591862dd5..80adc7292 100644
--- a/vpp-management/vpp_management_postman_collection.json
+++ b/vpp-management/vpp_management_postman_collection.json
@@ -1,106 +1,159 @@
{
- "id": "b638a073-6954-5c89-320a-7105437dae94",
- "name": "Vpp management Collection",
- "description": "",
- "order": [
- "1bfd69f7-e187-beb0-447c-0074aa636045"
- ],
- "folders": [
+ "info": {
+ "_postman_id": "b638a073-6954-5c89-320a-7105437dae94",
+ "name": "Vpp management Collection",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
{
- "id": "299be85f-5ada-34f7-bd80-9fbc4e5b200a",
+ "_postman_id": "b7c33751-f435-48d2-89f2-ad5d7d729c0d",
"name": "RPCs",
"description": "",
- "order": [
- "1c552a48-498c-f2e8-8dee-2d5b67120a3a",
- "2df7f806-dfb3-bf4f-9cab-0c9863ed4486",
- "d4f87db0-06e5-b309-8918-d1c29f59fab1"
- ],
- "owner": "658985"
- }
- ],
- "timestamp": 1489148746054,
- "owner": "658985",
- "public": false,
- "requests": [
- {
- "id": "1bfd69f7-e187-beb0-447c-0074aa636045",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8183/restconf/operational/vpp-management:vpp-state",
- "preRequestScript": "",
- "pathVariables": {},
- "method": "GET",
- "data": [],
- "dataMode": "raw",
- "version": 2,
- "tests": "",
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1489149850732,
- "name": "Read vpp-state - oper",
- "description": "",
- "collectionId": "b638a073-6954-5c89-320a-7105437dae94",
- "responses": [],
- "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
+ "item": [
+ {
+ "_postman_id": "985509b9-7469-418d-8887-2d844c873927",
+ "name": "show version",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"input\" :\n {\n \"cmd\" : \"show version\"\n }\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operations",
+ "vpp-management:cli-inband"
+ ]
+ },
+ "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of show version."
+ },
+ "response": []
+ },
+ {
+ "_postman_id": "f95256a3-90f7-4ff1-98df-b6a9462e259a",
+ "name": "show interfaces",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"input\" :\n {\n \"cmd\" : \"show int\"\n }\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operations",
+ "vpp-management:cli-inband"
+ ]
+ },
+ "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of show int."
+ },
+ "response": []
+ },
+ {
+ "_postman_id": "f571c7b6-704d-4e8c-a747-5eb914bc3f17",
+ "name": "create loopback interface",
+ "request": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"input\" :\n {\n \"cmd\" : \"create loopback interface\"\n }\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operations",
+ "vpp-management:cli-inband"
+ ]
+ },
+ "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of create loopback interface"
+ },
+ "response": []
+ }
+ ]
},
{
- "id": "1c552a48-498c-f2e8-8dee-2d5b67120a3a",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
- "preRequestScript": "",
- "pathVariables": {},
- "method": "POST",
- "data": [],
- "dataMode": "raw",
- "version": 2,
- "tests": "",
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1489149921151,
- "name": "show version",
- "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of show version.",
- "collectionId": "b638a073-6954-5c89-320a-7105437dae94",
- "responses": [],
- "rawModeData": "{\n \"input\" :\n {\n \"cmd\" : \"show version\"\n }\n}"
- },
- {
- "id": "2df7f806-dfb3-bf4f-9cab-0c9863ed4486",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
- "preRequestScript": "",
- "pathVariables": {},
- "method": "POST",
- "data": [],
- "dataMode": "raw",
- "version": 2,
- "tests": "",
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1489149929797,
- "name": "show interfaces",
- "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of show int.",
- "collectionId": "b638a073-6954-5c89-320a-7105437dae94",
- "responses": [],
- "rawModeData": "{\n \"input\" :\n {\n \"cmd\" : \"show int\"\n }\n}"
- },
- {
- "id": "d4f87db0-06e5-b309-8918-d1c29f59fab1",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
- "preRequestScript": "",
- "pathVariables": {},
- "method": "POST",
- "data": [],
- "dataMode": "raw",
- "version": 2,
- "tests": "",
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1489149940101,
- "name": "create loopback interface",
- "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of create loopback interface",
- "collectionId": "b638a073-6954-5c89-320a-7105437dae94",
- "responses": [],
- "rawModeData": "{\n \"input\" :\n {\n \"cmd\" : \"create loopback interface\"\n }\n}"
+ "_postman_id": "10c5f1c9-156a-4838-946f-16532f62cd90",
+ "name": "Read vpp-state - oper",
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/operational/vpp-management:vpp-state",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "operational",
+ "vpp-management:vpp-state"
+ ]
+ }
+ },
+ "response": []
}
]
} \ No newline at end of file
diff --git a/vpp-management/vpp_management_postman_collection_v1.0.0.json b/vpp-management/vpp_management_postman_collection_v1.0.0.json
new file mode 100644
index 000000000..591862dd5
--- /dev/null
+++ b/vpp-management/vpp_management_postman_collection_v1.0.0.json
@@ -0,0 +1,106 @@
+{
+ "id": "b638a073-6954-5c89-320a-7105437dae94",
+ "name": "Vpp management Collection",
+ "description": "",
+ "order": [
+ "1bfd69f7-e187-beb0-447c-0074aa636045"
+ ],
+ "folders": [
+ {
+ "id": "299be85f-5ada-34f7-bd80-9fbc4e5b200a",
+ "name": "RPCs",
+ "description": "",
+ "order": [
+ "1c552a48-498c-f2e8-8dee-2d5b67120a3a",
+ "2df7f806-dfb3-bf4f-9cab-0c9863ed4486",
+ "d4f87db0-06e5-b309-8918-d1c29f59fab1"
+ ],
+ "owner": "658985"
+ }
+ ],
+ "timestamp": 1489148746054,
+ "owner": "658985",
+ "public": false,
+ "requests": [
+ {
+ "id": "1bfd69f7-e187-beb0-447c-0074aa636045",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/operational/vpp-management:vpp-state",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "GET",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1489149850732,
+ "name": "Read vpp-state - oper",
+ "description": "",
+ "collectionId": "b638a073-6954-5c89-320a-7105437dae94",
+ "responses": [],
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
+ },
+ {
+ "id": "1c552a48-498c-f2e8-8dee-2d5b67120a3a",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "POST",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1489149921151,
+ "name": "show version",
+ "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of show version.",
+ "collectionId": "b638a073-6954-5c89-320a-7105437dae94",
+ "responses": [],
+ "rawModeData": "{\n \"input\" :\n {\n \"cmd\" : \"show version\"\n }\n}"
+ },
+ {
+ "id": "2df7f806-dfb3-bf4f-9cab-0c9863ed4486",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "POST",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1489149929797,
+ "name": "show interfaces",
+ "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of show int.",
+ "collectionId": "b638a073-6954-5c89-320a-7105437dae94",
+ "responses": [],
+ "rawModeData": "{\n \"input\" :\n {\n \"cmd\" : \"show int\"\n }\n}"
+ },
+ {
+ "id": "d4f87db0-06e5-b309-8918-d1c29f59fab1",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "POST",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1489149940101,
+ "name": "create loopback interface",
+ "description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of create loopback interface",
+ "collectionId": "b638a073-6954-5c89-320a-7105437dae94",
+ "responses": [],
+ "rawModeData": "{\n \"input\" :\n {\n \"cmd\" : \"create loopback interface\"\n }\n}"
+ }
+ ]
+} \ No newline at end of file