summaryrefslogtreecommitdiffstats
path: root/interface-role
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 /interface-role
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 'interface-role')
-rw-r--r--interface-role/interface_role_postman_collection.json242
-rw-r--r--interface-role/interface_role_postman_collection_v1.0.0.json97
2 files changed, 254 insertions, 85 deletions
diff --git a/interface-role/interface_role_postman_collection.json b/interface-role/interface_role_postman_collection.json
index caabac1ac..9e750594a 100644
--- a/interface-role/interface_role_postman_collection.json
+++ b/interface-role/interface_role_postman_collection.json
@@ -1,97 +1,169 @@
{
- "id": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
- "name": "Interface role postman collection",
- "description": "",
- "order": [
- "3f88fde7-2cba-48c9-9386-53396ec83464",
- "5d8e79c1-7083-31b1-687f-ad00b9089379",
- "b4befe86-f1de-d7e3-f445-58d44e2553af",
- "2844ace4-49ed-8216-706f-4ba9028da767"
- ],
- "folders": [],
- "timestamp": 1492683147840,
- "owner": "658985",
- "public": false,
- "requests": [
+ "info": {
+ "_postman_id": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
+ "name": "Interface role postman collection",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
{
- "id": "2844ace4-49ed-8216-706f-4ba9028da767",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
- "preRequestScript": null,
- "pathVariables": {},
- "method": "GET",
- "data": [],
- "dataMode": "raw",
- "version": 2,
- "tests": null,
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1494501640856,
- "name": "Get role mapping ",
- "description": "",
- "collectionId": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
- "responses": [],
- "rawModeData": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
- },
- {
- "id": "3f88fde7-2cba-48c9-9386-53396ec83464",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
- "preRequestScript": null,
- "pathVariables": {},
- "method": "PUT",
- "data": [],
- "dataMode": "raw",
- "version": 2,
- "tests": null,
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1494501555944,
+ "_postman_id": "842f6858-0190-4c1f-99b8-089807b471e3",
"name": "Add role mapping",
- "description": "",
- "collectionId": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
- "responses": [],
- "rawModeData": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"public-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"public-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "ietf-interfaces:interfaces",
+ "interface",
+ "local0",
+ "roles",
+ "role",
+ "local0-role"
+ ]
+ }
+ },
+ "response": []
},
{
- "id": "5d8e79c1-7083-31b1-687f-ad00b9089379",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
- "preRequestScript": null,
- "pathVariables": {},
- "method": "PUT",
- "data": [],
- "dataMode": "raw",
- "version": 2,
- "tests": null,
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1494501569167,
+ "_postman_id": "8ea2b74b-2509-4eae-9cc0-a777d39627c2",
"name": "Update role mapping",
- "description": "",
- "collectionId": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
- "responses": [],
- "rawModeData": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "ietf-interfaces:interfaces",
+ "interface",
+ "local0",
+ "roles",
+ "role",
+ "local0-role"
+ ]
+ }
+ },
+ "response": []
},
{
- "id": "b4befe86-f1de-d7e3-f445-58d44e2553af",
- "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
- "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
- "preRequestScript": null,
- "pathVariables": {},
- "method": "DELETE",
- "data": [],
- "dataMode": "raw",
- "version": 2,
- "tests": null,
- "currentHelper": "normal",
- "helperAttributes": {},
- "time": 1492698130815,
+ "_postman_id": "6d6e6252-d836-49b0-9e1c-556b0dbd4a1e",
"name": "Remove role mapping",
- "description": "",
- "collectionId": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
- "responses": [],
- "rawModeData": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ "request": {
+ "method": "DELETE",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "ietf-interfaces:interfaces",
+ "interface",
+ "local0",
+ "roles",
+ "role",
+ "local0-role"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "_postman_id": "50f7d60e-3892-46ef-a076-a039c2af59a8",
+ "name": "Get role mapping ",
+ "request": {
+ "method": "GET",
+ "header": [
+ {
+ "key": "Authorization",
+ "value": "Basic YWRtaW46YWRtaW4="
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ },
+ "url": {
+ "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8183",
+ "path": [
+ "restconf",
+ "config",
+ "ietf-interfaces:interfaces",
+ "interface",
+ "local0",
+ "roles",
+ "role",
+ "local0-role"
+ ]
+ }
+ },
+ "response": []
}
]
} \ No newline at end of file
diff --git a/interface-role/interface_role_postman_collection_v1.0.0.json b/interface-role/interface_role_postman_collection_v1.0.0.json
new file mode 100644
index 000000000..caabac1ac
--- /dev/null
+++ b/interface-role/interface_role_postman_collection_v1.0.0.json
@@ -0,0 +1,97 @@
+{
+ "id": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
+ "name": "Interface role postman collection",
+ "description": "",
+ "order": [
+ "3f88fde7-2cba-48c9-9386-53396ec83464",
+ "5d8e79c1-7083-31b1-687f-ad00b9089379",
+ "b4befe86-f1de-d7e3-f445-58d44e2553af",
+ "2844ace4-49ed-8216-706f-4ba9028da767"
+ ],
+ "folders": [],
+ "timestamp": 1492683147840,
+ "owner": "658985",
+ "public": false,
+ "requests": [
+ {
+ "id": "2844ace4-49ed-8216-706f-4ba9028da767",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
+ "preRequestScript": null,
+ "pathVariables": {},
+ "method": "GET",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1494501640856,
+ "name": "Get role mapping ",
+ "description": "",
+ "collectionId": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
+ "responses": [],
+ "rawModeData": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ },
+ {
+ "id": "3f88fde7-2cba-48c9-9386-53396ec83464",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
+ "preRequestScript": null,
+ "pathVariables": {},
+ "method": "PUT",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1494501555944,
+ "name": "Add role mapping",
+ "description": "",
+ "collectionId": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
+ "responses": [],
+ "rawModeData": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"public-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ },
+ {
+ "id": "5d8e79c1-7083-31b1-687f-ad00b9089379",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
+ "preRequestScript": null,
+ "pathVariables": {},
+ "method": "PUT",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1494501569167,
+ "name": "Update role mapping",
+ "description": "",
+ "collectionId": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
+ "responses": [],
+ "rawModeData": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ },
+ {
+ "id": "b4befe86-f1de-d7e3-f445-58d44e2553af",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/roles/role/local0-role",
+ "preRequestScript": null,
+ "pathVariables": {},
+ "method": "DELETE",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1492698130815,
+ "name": "Remove role mapping",
+ "description": "",
+ "collectionId": "bff7e146-feff-fdb7-86d1-07441f73c6e2",
+ "responses": [],
+ "rawModeData": "{\n\t\"role\":{\n\t\t\"role-name\":\"local0-role\",\n\t\t\"role-type\":\"virtual-domain-interface\",\n\t\t\"description\":\"interface for public access\"\n\t}\n}"
+ }
+ ]
+} \ No newline at end of file