Skip to content

Commit

Permalink
Update postman scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
RaheelRsk committed May 9, 2022
1 parent 774382c commit dc20fe5
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 549 deletions.
27 changes: 0 additions & 27 deletions Postman/Rsk.Scim.ScimExamples.Env.postman_environment.json

This file was deleted.

52 changes: 47 additions & 5 deletions Postman/Rsk.ScimExamples.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "f5cedf2a-b807-4bef-a038-ce0e6f08ed4a",
"_postman_id": "03c512d9-6c39-4880-ae2c-ba6be4533001",
"name": "Rsk.ScimExamples",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
Expand Down Expand Up @@ -275,7 +275,7 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"schemas\": [ \"urn:ietf:params:scim:api:messages:2.0:PatchOp\" ],\r\n \"Operations\": [\r\n {\r\n \"op\": \"add\",\r\n \"path\": \"members\",\r\n \"value\": [\r\n {\r\n \"value\": \"{{User_Id}}\"\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"raw": "{\r\n \"schemas\": [ \"urn:ietf:params:scim:api:messages:2.0:PatchOp\" ],\r\n \"Operations\": [\r\n {\r\n \"op\": \"add\",\r\n \"path\": \"members\",\r\n \"value\": [\r\n {\r\n \"value\": \"{{User_Id}}\",\r\n \"type\": \"User\"\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
Expand Down Expand Up @@ -464,10 +464,52 @@
"response": []
},
{
"name": "Add user to group",
"name": "Create Extension - Organization",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);\r",
"postman.setEnvironmentVariable(\"User_Id\", jsonData.id);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": []
"method": "POST",
"header": [
{
"key": "Accept",
"value": " application/scim+json",
"type": "text"
},
{
"key": "Content-Type",
"value": " application/scim+json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"[email protected]\",\r\n \"schemas\": [\r\n \"urn:ietf:params:scim:schemas:RSK:2.0:Organization\",\r\n \"urn:ietf:params:scim:schemas:RSK:extension:charity:2.0:Organization\"\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{SCIM_Path_Local}}/organizations/",
"host": [
"{{SCIM_Path_Local}}"
],
"path": [
"organizations",
""
]
}
},
"response": []
}
Expand Down
File renamed without changes.
Loading

0 comments on commit dc20fe5

Please sign in to comment.