Skip to content

Instantly share code, notes, and snippets.

@Nelrohd
Last active August 23, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nelrohd/e9d0bc833dd5cf4216eafd4b214e482e to your computer and use it in GitHub Desktop.
Save Nelrohd/e9d0bc833dd5cf4216eafd4b214e482e to your computer and use it in GitHub Desktop.
{
"info": {
"_postman_id": "f60edaee-ae2b-4972-8180-f8307017fc2c",
"name": "CG API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Subjects",
"description": null,
"item": [
{
"name": "List processors",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/subject/processors",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"processors"
]
}
},
"response": []
},
{
"name": "Request access",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/subject/access-data",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"access-data"
]
}
},
"response": []
},
{
"name": "Get data status per processor",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/subject/data-status",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"data-status"
]
}
},
"response": []
},
{
"name": "Get restrictions",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/subject/get-restrictions",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"get-restrictions"
]
}
},
"response": []
},
{
"name": "Get objection",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/subject/get-objection",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"get-objection"
]
}
},
"response": []
},
{
"name": "List data-shares",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/subject/data-shares/list",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"data-shares",
"list"
]
}
},
"response": []
},
{
"name": "Share data-share",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/subject/data-shares/share",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"data-shares",
"share"
]
}
},
"response": []
},
{
"name": "Give consent",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"personalData\": {\n\t\t\"firstName\": \"subject\",\n\t\t\"email\": \"subject@clevertech.biz\",\n\t\t\"sensitiveData\": \"some sensitive data\"\n\t},\n\t\"processors\": [1]\n}"
},
"url": {
"raw": "{{og_base_url}}/api/subject/give-consent",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"give-consent"
]
}
},
"response": []
},
{
"name": "Update consent",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"processors\": [1]\n}"
},
"url": {
"raw": "{{og_base_url}}/api/subject/update-consent",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"update-consent"
]
}
},
"response": []
},
{
"name": "Initiate rectification",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"rectificationPayload\": {\n\t\t\"firstName\": \"updated_subject\",\n\t\t\"email\": \"updated_subject@clevertech.biz\",\n\t\t\"sensitiveData\": \"some new sensitive data\",\n\t\t\"rectifiedData\": \"Some new data goes here\"\n\t},\n\t\"requestReason\": \"The data was incomplete\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/subject/initiate-rectification",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"initiate-rectification"
]
}
},
"response": []
},
{
"name": "Restrict processing",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"directMarketing\": false,\n\t\"emailCommunication\": false,\n\t\"research\": false\n}"
},
"url": {
"raw": "{{og_base_url}}/api/subject/restrict",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"restrict"
]
}
},
"response": []
},
{
"name": "Object processing",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"objection\": true\n}"
},
"url": {
"raw": "{{og_base_url}}/api/subject/object",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"object"
]
}
},
"response": []
},
{
"name": "Create data-share",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"My data-share\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/subject/data-shares/create",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"data-shares",
"create"
]
}
},
"response": []
},
{
"name": "Remove data-share",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"dataShareId\": 1\n}"
},
"url": {
"raw": "{{og_base_url}}/api/subject/data-shares/:dataShareId/remove",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"data-shares",
":dataShareId",
"remove"
],
"variable": [
{
"key": "dataShareId",
"value": ""
}
]
}
},
"response": []
},
{
"name": "Erase data",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/subject/erase-data",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"subject",
"erase-data"
]
}
},
"response": []
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{subject_jwt}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "1b453fc6-1085-4877-8cea-7d18e1e01146",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "e6824afa-d782-46b8-9696-feabde8a45d4",
"type": "text/javascript",
"exec": [
""
]
}
}
]
},
{
"name": "Management",
"description": null,
"item": [
{
"name": "Managers",
"description": null,
"item": [
{
"name": "Login",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"username\": \"admin\",\n\t\"password\": \"clearGDPR\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/users/login",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"users",
"login"
]
}
},
"response": []
},
{
"name": "Register",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"admin2\",\n \"password\": \"clearGDPR\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/users/register",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"users",
"register"
]
}
},
"response": []
},
{
"name": "Delete",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"joe\",\n \"password\": \"clearGDPR\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/users/:userId/remove",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"users",
":userId",
"remove"
],
"variable": [
{
"key": "userId",
"value": ""
}
]
}
},
"response": []
},
{
"name": "Change password",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"password\": \"clearGDPR\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/users/:id/update-password",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"users",
":id",
"update-password"
],
"variable": [
{
"key": "id",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "List users",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/management/users/list",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"users",
"list"
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Processors",
"description": null,
"item": [
{
"name": "List processors",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/management/processors/list",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"processors",
"list"
]
}
},
"response": []
},
{
"name": "Add processor",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Nielsen2\",\n\t\"logoUrl\": \"https://upload.wikimedia.org/wikipedia/commons/8/Nielsen_logo.svg\",\n\t\"description\": \"Nielsen2, a leading global information & measurement company, provides market research, insights & data about what people watch, listen to & buy.\",\n\t\"scopes\": [\"email\", \"first name\", \"purchase history\"],\n \"address\": \"0x1bd66fac5b1e6da807fa8ff2f64abaaaf58b4c4f\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/processors/add",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"processors",
"add"
]
}
},
"response": []
},
{
"name": "Update processor",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"id\": 1,\n\t\"name\": \"Nielsen\",\n\t\"logoUrl\": \"https://upload.wikimedia.org/wikipedia/commons/8/82/Nielsen_logo.svg\",\n\t\"description\": \"Nielsen, a leading global information & measurement company, provides market research, insights & data about what people watch, listen to & buy.\",\n\t\"scopes\": [\"email\", \"first name\", \"purchase history\"]\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/processors/update",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"processors",
"update"
]
}
},
"response": []
},
{
"name": "Delete processor",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"processorIds\": [1]\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/processors/delete",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"processors",
"delete"
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Contract",
"description": null,
"item": [
{
"name": "Deploy contract",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"contractByteCode\": \"0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506111fa8061005e6000396000f3006060604052600436106100c4576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168062091988146100c95780630c1e947f1461011a5780634c3e99721461018457806352843d51146102035780636017cf4c1461026b57806362b8b300146102c9578063785779d01461033b57806391bd72231461037a578063a3514e4a146103eb578063ae0ef4b41461045d578063bd92ccee146104cf578063c24b846f1461050e578063f77c47911461058a575b600080fd5b34156100d457600080fd5b610100600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105df565b604051808215151515815260200191505060405180910390f35b341561012557600080fd5b61016a60048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803560ff16906020019091905050610683565b604051808215151515815260200191505060405180910390f35b341561018f57600080fd5b6101e96004808035600019169060200190919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509190505061070c565b604051808215151515815260200191505060405180910390f35b341561020e57600080fd5b61024760048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a0d565b6040518082600281111561025757fe5b60ff16815260200191505060405180910390f35b341561027657600080fd5b6102af60048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a80565b604051808215151515815260200191505060405180910390f35b34156102d457600080fd5b610321600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610b13565b604051808215151515815260200191505060405180910390f35b341561034657600080fd5b610360600480803560001916906020019091905050610c05565b604051808215151515815260200191505060405180910390f35b341561038557600080fd5b61038d610d21565b6040518080602001838152602001828103825284818151815260200191508051906020019060200280838360005b838110156103d65780820151818401526020810190506103bb565b50505050905001935050505060405180910390f35b34156103f657600080fd5b610443600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610dc2565b604051808215151515815260200191505060405180910390f35b341561046857600080fd5b6104b5600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610e1a565b604051808215151515815260200191505060405180910390f35b34156104da57600080fd5b6104f4600480803560001916906020019091905050610e6d565b604051808215151515815260200191505060405180910390f35b341561051957600080fd5b610533600480803560001916906020019091905050610ea2565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561057657808201518184015260208101905061055b565b505050509050019250505060405180910390f35b341561059557600080fd5b61059d6110b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080600090505b600180549050811015610678578273ffffffffffffffffffffffffffffffffffffffff1660018281548110151561061a57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561066b576001915061067d565b80806001019150506105e7565b600091505b50919050565b60008160026000866000191660001916815260200190815260200160002060010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360028111156106fc57fe5b0217905550600190509392505050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561076a57600080fd5b836000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff1615151415156107a957600080fd5b6107b284610e1a565b15156107bd57600080fd5b600091505b600180549050821015610893576000600260008760001916600019168152602001908152602001600020600101600060018581548110151561080057fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561088157fe5b021790555081806001019250506107c2565b600091505b8351821015610942576001600260008760001916600019168152602001908152602001600020600101600086858151811015156108d157fe5b9060200190602002015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561093057fe5b02179055508180600101925050610898565b600060026000876000191660001916815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f17b46fe72172b70500853bedb3b5ba16a452a4734c92f74d2aed8a260c8e5392858560405180836000191660001916815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156109ed5780820151818401526020810190506109d2565b50505050905001935050505060405180910390a160019250505092915050565b600060026000846000191660001916815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000610a8b336105df565b1515610a9657600080fd5b7f7adbefd4047a6b3fc04baed7453752b4eceb772d9036d0006014fc9cfa9af75683836040518083600019166000191681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16001905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b7057600080fd5b610b7982610dc2565b1515610b8457600080fd5b7fa5ce10be54b4ef0d5b03c912f8855709209175079c70907491e4ab39606cc7b6826040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610be9578082015181840152602081019050610bce565b505050509050019250505060405180910390a160019050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c6257600080fd5b816000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff161515141515610ca157600080fd5b600160026000856000191660001916815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f6035499ce5e80742180c62be06aea6c0cce9f0df624f498b9709a79adc8fb9968360405180826000191660001916815260200191505060405180910390a16001915050919050565b610d296110d9565b60006001808054905081805480602002602001604051908101604052809291908181526020018280548015610db357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610d69575b50505050509150915091509091565b60008151604051805910610dd35750595b908082528060200260200182016040525060019080519060200190610df99291906110ed565b508160019080519060200190610e109291906110ed565b5060019050919050565b600080600090505b8251811015610e6357610e4b8382815181101515610e3c57fe5b906020019060200201516105df565b1515610e5657600080fd5b8080600101915050610e22565b6001915050919050565b600060026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff169050919050565b610eaa611177565b610eb2611177565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f0f57600080fd5b836000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff161515141515610f4e57600080fd5b600180549050604051805910610f615750595b90808252806020026020018201604052509250600091505b60018054905082101561106a576002600086600019166000191681526020019081526020016000206001016000600184815481101515610fb557fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16838381518110151561103757fe5b90602001906020020190600281111561104c57fe5b9081600281111561105957fe5b815250508180600101925050610f79565b7f5cee2268933cd873c783419e5be7668e121517767fe669a5a703b09426b138158560405180826000191660001916815260200191505060405180910390a1829350505050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b602060405190810160405280600081525090565b828054828255906000526020600020908101928215611166579160200282015b828111156111655782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061110d565b5b509050611173919061118b565b5090565b602060405190810160405280600081525090565b6111cb91905b808211156111c757600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101611191565b5090565b905600a165627a7a72305820d6b89a0fa0e422a07ff6c1b1dea2a6d418303a07dcafd0028421aa3832c2c7110029\",\n\t\"contractAbiJson\": \"[{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_processor\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"isProcessor\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorIdHash\\\",\\\"type\\\":\\\"address\\\"},{\\\"name\\\":\\\"_state\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"name\\\":\\\"setSubjectDataState\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorsWhiteListedBySubject\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"recordConsentGivenTo\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorIdHash\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"getSubjectDataState\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processor\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"recordErasureByProcessor\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"recordProcessorsUpdate\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"recordErasureByController\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[],\\\"name\\\":\\\"getProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address[]\\\"},{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"setProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_processors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"areAllValidProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"getIsErased\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"recordAccessByController\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint8[]\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[],\\\"name\\\":\\\"controller\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"constructor\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"Controller_ProcessorsUpdated\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":false,\\\"name\\\":\\\"newProcessorsWhiteListed\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"Controller_ConsentGivenTo\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"Controller_SubjectDataAccessed\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"Controller_SubjectDataErased\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":false,\\\"name\\\":\\\"processorIdHash\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"Processor_SubjectDataErased\\\",\\\"type\\\":\\\"event\\\"}]\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/contract/deploy",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"contract",
"deploy"
]
}
},
"response": []
},
{
"name": "Contract details",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/management/contract/details",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"contract",
"details"
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Subjects",
"description": null,
"item": [
{
"name": "List subjects",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/management/subjects/list?page=1",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"subjects",
"list"
],
"query": [
{
"key": "page",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "List rectification request",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/management/subjects/rectification-requests/list?page=1",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"subjects",
"rectification-requests",
"list"
],
"query": [
{
"key": "page",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "Rectification request archive",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/management/subjects/rectification-requests/archive?page=1",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"subjects",
"rectification-requests",
"archive"
],
"query": [
{
"key": "page",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "Rectification request details",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/api/management/subjects/rectification-requests/:rectificationRequestId",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"subjects",
"rectification-requests",
":rectificationRequestId"
],
"variable": [
{
"key": "rectificationRequestId",
"value": ""
}
]
}
},
"response": []
},
{
"name": "Approve rectification request",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"APPROVED\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/management/subjects/rectification-requests/:rectificationRequestId/update-status",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"subjects",
"rectification-requests",
":rectificationRequestId",
"update-status"
],
"variable": [
{
"key": "rectificationRequestId",
"value": ""
}
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Stats",
"description": "",
"item": [
{
"name": "Get stats",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "{{og_base_url}}/api/management/stats",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"management",
"stats"
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{management_jwt}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "2a23c2e7-8805-416a-89eb-39d6202683f8",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "2c319e51-b178-491d-b8c8-b6f49ba6c5fd",
"type": "text/javascript",
"exec": [
""
]
}
}
]
},
{
"name": "Processors",
"description": null,
"item": [
{
"name": "Get subject data",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"compiledData\": \"0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506111fa8061005e6000396000f3006060604052600436106100c4576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168062091988146100c95780630c1e947f1461011a5780634c3e99721461018457806352843d51146102035780636017cf4c1461026b57806362b8b300146102c9578063785779d01461033b57806391bd72231461037a578063a3514e4a146103eb578063ae0ef4b41461045d578063bd92ccee146104cf578063c24b846f1461050e578063f77c47911461058a575b600080fd5b34156100d457600080fd5b610100600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105df565b604051808215151515815260200191505060405180910390f35b341561012557600080fd5b61016a60048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803560ff16906020019091905050610683565b604051808215151515815260200191505060405180910390f35b341561018f57600080fd5b6101e96004808035600019169060200190919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509190505061070c565b604051808215151515815260200191505060405180910390f35b341561020e57600080fd5b61024760048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a0d565b6040518082600281111561025757fe5b60ff16815260200191505060405180910390f35b341561027657600080fd5b6102af60048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a80565b604051808215151515815260200191505060405180910390f35b34156102d457600080fd5b610321600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610b13565b604051808215151515815260200191505060405180910390f35b341561034657600080fd5b610360600480803560001916906020019091905050610c05565b604051808215151515815260200191505060405180910390f35b341561038557600080fd5b61038d610d21565b6040518080602001838152602001828103825284818151815260200191508051906020019060200280838360005b838110156103d65780820151818401526020810190506103bb565b50505050905001935050505060405180910390f35b34156103f657600080fd5b610443600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610dc2565b604051808215151515815260200191505060405180910390f35b341561046857600080fd5b6104b5600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610e1a565b604051808215151515815260200191505060405180910390f35b34156104da57600080fd5b6104f4600480803560001916906020019091905050610e6d565b604051808215151515815260200191505060405180910390f35b341561051957600080fd5b610533600480803560001916906020019091905050610ea2565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561057657808201518184015260208101905061055b565b505050509050019250505060405180910390f35b341561059557600080fd5b61059d6110b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080600090505b600180549050811015610678578273ffffffffffffffffffffffffffffffffffffffff1660018281548110151561061a57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561066b576001915061067d565b80806001019150506105e7565b600091505b50919050565b60008160026000866000191660001916815260200190815260200160002060010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360028111156106fc57fe5b0217905550600190509392505050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561076a57600080fd5b836000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff1615151415156107a957600080fd5b6107b284610e1a565b15156107bd57600080fd5b600091505b600180549050821015610893576000600260008760001916600019168152602001908152602001600020600101600060018581548110151561080057fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561088157fe5b021790555081806001019250506107c2565b600091505b8351821015610942576001600260008760001916600019168152602001908152602001600020600101600086858151811015156108d157fe5b9060200190602002015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561093057fe5b02179055508180600101925050610898565b600060026000876000191660001916815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f17b46fe72172b70500853bedb3b5ba16a452a4734c92f74d2aed8a260c8e5392858560405180836000191660001916815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156109ed5780820151818401526020810190506109d2565b50505050905001935050505060405180910390a160019250505092915050565b600060026000846000191660001916815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000610a8b336105df565b1515610a9657600080fd5b7f7adbefd4047a6b3fc04baed7453752b4eceb772d9036d0006014fc9cfa9af75683836040518083600019166000191681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16001905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b7057600080fd5b610b7982610dc2565b1515610b8457600080fd5b7fa5ce10be54b4ef0d5b03c912f8855709209175079c70907491e4ab39606cc7b6826040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610be9578082015181840152602081019050610bce565b505050509050019250505060405180910390a160019050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c6257600080fd5b816000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff161515141515610ca157600080fd5b600160026000856000191660001916815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f6035499ce5e80742180c62be06aea6c0cce9f0df624f498b9709a79adc8fb9968360405180826000191660001916815260200191505060405180910390a16001915050919050565b610d296110d9565b60006001808054905081805480602002602001604051908101604052809291908181526020018280548015610db357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610d69575b50505050509150915091509091565b60008151604051805910610dd35750595b908082528060200260200182016040525060019080519060200190610df99291906110ed565b508160019080519060200190610e109291906110ed565b5060019050919050565b600080600090505b8251811015610e6357610e4b8382815181101515610e3c57fe5b906020019060200201516105df565b1515610e5657600080fd5b8080600101915050610e22565b6001915050919050565b600060026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff169050919050565b610eaa611177565b610eb2611177565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f0f57600080fd5b836000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff161515141515610f4e57600080fd5b600180549050604051805910610f615750595b90808252806020026020018201604052509250600091505b60018054905082101561106a576002600086600019166000191681526020019081526020016000206001016000600184815481101515610fb557fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16838381518110151561103757fe5b90602001906020020190600281111561104c57fe5b9081600281111561105957fe5b815250508180600101925050610f79565b7f5cee2268933cd873c783419e5be7668e121517767fe669a5a703b09426b138158560405180826000191660001916815260200191505060405180910390a1829350505050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b602060405190810160405280600081525090565b828054828255906000526020600020908101928215611166579160200282015b828111156111655782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061110d565b5b509050611173919061118b565b5090565b602060405190810160405280600081525090565b6111cb91905b808211156111c757600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101611191565b5090565b905600a165627a7a72305820d6b89a0fa0e422a07ff6c1b1dea2a6d418303a07dcafd0028421aa3832c2c7110029\",\n\t\"abiJson\": \"[{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_processor\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"isProcessor\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorIdHash\\\",\\\"type\\\":\\\"address\\\"},{\\\"name\\\":\\\"_state\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"name\\\":\\\"setSubjectDataState\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorsWhiteListedBySubject\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"recordConsentGivenTo\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorIdHash\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"getSubjectDataState\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processor\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"recordErasureByProcessor\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"recordProcessorsUpdate\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"recordErasureByController\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[],\\\"name\\\":\\\"getProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address[]\\\"},{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"setProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_processors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"areAllValidProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"getIsErased\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"recordAccessByController\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint8[]\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[],\\\"name\\\":\\\"controller\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"constructor\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"Controller_ProcessorsUpdated\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":false,\\\"name\\\":\\\"newProcessorsWhiteListed\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"Controller_ConsentGivenTo\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"Controller_SubjectDataAccessed\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"Controller_SubjectDataErased\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":false,\\\"name\\\":\\\"processorIdHash\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"Processor_SubjectDataErased\\\",\\\"type\\\":\\\"event\\\"}]\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/processors/subject/0xceebf77a833b30520287ddd9478ff51abbdffa30aa90a8d655dba0e8a79ce0c1/data",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"processors",
"subject",
"0xceebf77a833b30520287ddd9478ff51abbdffa30aa90a8d655dba0e8a79ce0c1",
"data"
]
}
},
"response": []
},
{
"name": "Get subject restrictions",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"compiledData\": \"0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506111fa8061005e6000396000f3006060604052600436106100c4576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168062091988146100c95780630c1e947f1461011a5780634c3e99721461018457806352843d51146102035780636017cf4c1461026b57806362b8b300146102c9578063785779d01461033b57806391bd72231461037a578063a3514e4a146103eb578063ae0ef4b41461045d578063bd92ccee146104cf578063c24b846f1461050e578063f77c47911461058a575b600080fd5b34156100d457600080fd5b610100600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105df565b604051808215151515815260200191505060405180910390f35b341561012557600080fd5b61016a60048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803560ff16906020019091905050610683565b604051808215151515815260200191505060405180910390f35b341561018f57600080fd5b6101e96004808035600019169060200190919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509190505061070c565b604051808215151515815260200191505060405180910390f35b341561020e57600080fd5b61024760048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a0d565b6040518082600281111561025757fe5b60ff16815260200191505060405180910390f35b341561027657600080fd5b6102af60048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a80565b604051808215151515815260200191505060405180910390f35b34156102d457600080fd5b610321600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610b13565b604051808215151515815260200191505060405180910390f35b341561034657600080fd5b610360600480803560001916906020019091905050610c05565b604051808215151515815260200191505060405180910390f35b341561038557600080fd5b61038d610d21565b6040518080602001838152602001828103825284818151815260200191508051906020019060200280838360005b838110156103d65780820151818401526020810190506103bb565b50505050905001935050505060405180910390f35b34156103f657600080fd5b610443600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610dc2565b604051808215151515815260200191505060405180910390f35b341561046857600080fd5b6104b5600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610e1a565b604051808215151515815260200191505060405180910390f35b34156104da57600080fd5b6104f4600480803560001916906020019091905050610e6d565b604051808215151515815260200191505060405180910390f35b341561051957600080fd5b610533600480803560001916906020019091905050610ea2565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561057657808201518184015260208101905061055b565b505050509050019250505060405180910390f35b341561059557600080fd5b61059d6110b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080600090505b600180549050811015610678578273ffffffffffffffffffffffffffffffffffffffff1660018281548110151561061a57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561066b576001915061067d565b80806001019150506105e7565b600091505b50919050565b60008160026000866000191660001916815260200190815260200160002060010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360028111156106fc57fe5b0217905550600190509392505050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561076a57600080fd5b836000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff1615151415156107a957600080fd5b6107b284610e1a565b15156107bd57600080fd5b600091505b600180549050821015610893576000600260008760001916600019168152602001908152602001600020600101600060018581548110151561080057fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561088157fe5b021790555081806001019250506107c2565b600091505b8351821015610942576001600260008760001916600019168152602001908152602001600020600101600086858151811015156108d157fe5b9060200190602002015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561093057fe5b02179055508180600101925050610898565b600060026000876000191660001916815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f17b46fe72172b70500853bedb3b5ba16a452a4734c92f74d2aed8a260c8e5392858560405180836000191660001916815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156109ed5780820151818401526020810190506109d2565b50505050905001935050505060405180910390a160019250505092915050565b600060026000846000191660001916815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000610a8b336105df565b1515610a9657600080fd5b7f7adbefd4047a6b3fc04baed7453752b4eceb772d9036d0006014fc9cfa9af75683836040518083600019166000191681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16001905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b7057600080fd5b610b7982610dc2565b1515610b8457600080fd5b7fa5ce10be54b4ef0d5b03c912f8855709209175079c70907491e4ab39606cc7b6826040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610be9578082015181840152602081019050610bce565b505050509050019250505060405180910390a160019050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c6257600080fd5b816000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff161515141515610ca157600080fd5b600160026000856000191660001916815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f6035499ce5e80742180c62be06aea6c0cce9f0df624f498b9709a79adc8fb9968360405180826000191660001916815260200191505060405180910390a16001915050919050565b610d296110d9565b60006001808054905081805480602002602001604051908101604052809291908181526020018280548015610db357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610d69575b50505050509150915091509091565b60008151604051805910610dd35750595b908082528060200260200182016040525060019080519060200190610df99291906110ed565b508160019080519060200190610e109291906110ed565b5060019050919050565b600080600090505b8251811015610e6357610e4b8382815181101515610e3c57fe5b906020019060200201516105df565b1515610e5657600080fd5b8080600101915050610e22565b6001915050919050565b600060026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff169050919050565b610eaa611177565b610eb2611177565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f0f57600080fd5b836000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff161515141515610f4e57600080fd5b600180549050604051805910610f615750595b90808252806020026020018201604052509250600091505b60018054905082101561106a576002600086600019166000191681526020019081526020016000206001016000600184815481101515610fb557fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16838381518110151561103757fe5b90602001906020020190600281111561104c57fe5b9081600281111561105957fe5b815250508180600101925050610f79565b7f5cee2268933cd873c783419e5be7668e121517767fe669a5a703b09426b138158560405180826000191660001916815260200191505060405180910390a1829350505050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b602060405190810160405280600081525090565b828054828255906000526020600020908101928215611166579160200282015b828111156111655782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061110d565b5b509050611173919061118b565b5090565b602060405190810160405280600081525090565b6111cb91905b808211156111c757600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101611191565b5090565b905600a165627a7a72305820d6b89a0fa0e422a07ff6c1b1dea2a6d418303a07dcafd0028421aa3832c2c7110029\",\n\t\"abiJson\": \"[{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_processor\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"isProcessor\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorIdHash\\\",\\\"type\\\":\\\"address\\\"},{\\\"name\\\":\\\"_state\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"name\\\":\\\"setSubjectDataState\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorsWhiteListedBySubject\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"recordConsentGivenTo\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorIdHash\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"getSubjectDataState\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processor\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"recordErasureByProcessor\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"recordProcessorsUpdate\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"recordErasureByController\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[],\\\"name\\\":\\\"getProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address[]\\\"},{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"setProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_processors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"areAllValidProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"getIsErased\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"recordAccessByController\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint8[]\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[],\\\"name\\\":\\\"controller\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"constructor\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"Controller_ProcessorsUpdated\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":false,\\\"name\\\":\\\"newProcessorsWhiteListed\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"Controller_ConsentGivenTo\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"Controller_SubjectDataAccessed\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"Controller_SubjectDataErased\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":false,\\\"name\\\":\\\"processorIdHash\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"Processor_SubjectDataErased\\\",\\\"type\\\":\\\"event\\\"}]\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/processors/subject/0xe455bf8ea6e7463a1046a0b52804526e119b4bf5136279614e0b1e8e296a4e2d/get-restrictions",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"processors",
"subject",
"0xe455bf8ea6e7463a1046a0b52804526e119b4bf5136279614e0b1e8e296a4e2d",
"get-restrictions"
]
}
},
"response": []
},
{
"name": "Get contract details",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"compiledData\": \"0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506111fa8061005e6000396000f3006060604052600436106100c4576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168062091988146100c95780630c1e947f1461011a5780634c3e99721461018457806352843d51146102035780636017cf4c1461026b57806362b8b300146102c9578063785779d01461033b57806391bd72231461037a578063a3514e4a146103eb578063ae0ef4b41461045d578063bd92ccee146104cf578063c24b846f1461050e578063f77c47911461058a575b600080fd5b34156100d457600080fd5b610100600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105df565b604051808215151515815260200191505060405180910390f35b341561012557600080fd5b61016a60048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803560ff16906020019091905050610683565b604051808215151515815260200191505060405180910390f35b341561018f57600080fd5b6101e96004808035600019169060200190919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509190505061070c565b604051808215151515815260200191505060405180910390f35b341561020e57600080fd5b61024760048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a0d565b6040518082600281111561025757fe5b60ff16815260200191505060405180910390f35b341561027657600080fd5b6102af60048080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a80565b604051808215151515815260200191505060405180910390f35b34156102d457600080fd5b610321600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610b13565b604051808215151515815260200191505060405180910390f35b341561034657600080fd5b610360600480803560001916906020019091905050610c05565b604051808215151515815260200191505060405180910390f35b341561038557600080fd5b61038d610d21565b6040518080602001838152602001828103825284818151815260200191508051906020019060200280838360005b838110156103d65780820151818401526020810190506103bb565b50505050905001935050505060405180910390f35b34156103f657600080fd5b610443600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610dc2565b604051808215151515815260200191505060405180910390f35b341561046857600080fd5b6104b5600480803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091905050610e1a565b604051808215151515815260200191505060405180910390f35b34156104da57600080fd5b6104f4600480803560001916906020019091905050610e6d565b604051808215151515815260200191505060405180910390f35b341561051957600080fd5b610533600480803560001916906020019091905050610ea2565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561057657808201518184015260208101905061055b565b505050509050019250505060405180910390f35b341561059557600080fd5b61059d6110b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080600090505b600180549050811015610678578273ffffffffffffffffffffffffffffffffffffffff1660018281548110151561061a57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561066b576001915061067d565b80806001019150506105e7565b600091505b50919050565b60008160026000866000191660001916815260200190815260200160002060010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360028111156106fc57fe5b0217905550600190509392505050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561076a57600080fd5b836000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff1615151415156107a957600080fd5b6107b284610e1a565b15156107bd57600080fd5b600091505b600180549050821015610893576000600260008760001916600019168152602001908152602001600020600101600060018581548110151561080057fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561088157fe5b021790555081806001019250506107c2565b600091505b8351821015610942576001600260008760001916600019168152602001908152602001600020600101600086858151811015156108d157fe5b9060200190602002015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600281111561093057fe5b02179055508180600101925050610898565b600060026000876000191660001916815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f17b46fe72172b70500853bedb3b5ba16a452a4734c92f74d2aed8a260c8e5392858560405180836000191660001916815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156109ed5780820151818401526020810190506109d2565b50505050905001935050505060405180910390a160019250505092915050565b600060026000846000191660001916815260200190815260200160002060010160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000610a8b336105df565b1515610a9657600080fd5b7f7adbefd4047a6b3fc04baed7453752b4eceb772d9036d0006014fc9cfa9af75683836040518083600019166000191681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16001905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b7057600080fd5b610b7982610dc2565b1515610b8457600080fd5b7fa5ce10be54b4ef0d5b03c912f8855709209175079c70907491e4ab39606cc7b6826040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610be9578082015181840152602081019050610bce565b505050509050019250505060405180910390a160019050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c6257600080fd5b816000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff161515141515610ca157600080fd5b600160026000856000191660001916815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f6035499ce5e80742180c62be06aea6c0cce9f0df624f498b9709a79adc8fb9968360405180826000191660001916815260200191505060405180910390a16001915050919050565b610d296110d9565b60006001808054905081805480602002602001604051908101604052809291908181526020018280548015610db357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610d69575b50505050509150915091509091565b60008151604051805910610dd35750595b908082528060200260200182016040525060019080519060200190610df99291906110ed565b508160019080519060200190610e109291906110ed565b5060019050919050565b600080600090505b8251811015610e6357610e4b8382815181101515610e3c57fe5b906020019060200201516105df565b1515610e5657600080fd5b8080600101915050610e22565b6001915050919050565b600060026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff169050919050565b610eaa611177565b610eb2611177565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f0f57600080fd5b836000151560026000836000191660001916815260200190815260200160002060000160009054906101000a900460ff161515141515610f4e57600080fd5b600180549050604051805910610f615750595b90808252806020026020018201604052509250600091505b60018054905082101561106a576002600086600019166000191681526020019081526020016000206001016000600184815481101515610fb557fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16838381518110151561103757fe5b90602001906020020190600281111561104c57fe5b9081600281111561105957fe5b815250508180600101925050610f79565b7f5cee2268933cd873c783419e5be7668e121517767fe669a5a703b09426b138158560405180826000191660001916815260200191505060405180910390a1829350505050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b602060405190810160405280600081525090565b828054828255906000526020600020908101928215611166579160200282015b828111156111655782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061110d565b5b509050611173919061118b565b5090565b602060405190810160405280600081525090565b6111cb91905b808211156111c757600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101611191565b5090565b905600a165627a7a72305820d6b89a0fa0e422a07ff6c1b1dea2a6d418303a07dcafd0028421aa3832c2c7110029\",\n\t\"abiJson\": \"[{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_processor\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"isProcessor\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorIdHash\\\",\\\"type\\\":\\\"address\\\"},{\\\"name\\\":\\\"_state\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"name\\\":\\\"setSubjectDataState\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorsWhiteListedBySubject\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"recordConsentGivenTo\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processorIdHash\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"getSubjectDataState\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"name\\\":\\\"_processor\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"recordErasureByProcessor\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"recordProcessorsUpdate\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"recordErasureByController\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[],\\\"name\\\":\\\"getProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address[]\\\"},{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"setProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_processors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"areAllValidProcessors\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"getIsErased\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":false,\\\"inputs\\\":[{\\\"name\\\":\\\"_subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"recordAccessByController\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint8[]\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"constant\\\":true,\\\"inputs\\\":[],\\\"name\\\":\\\"controller\\\",\\\"outputs\\\":[{\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"payable\\\":false,\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"constructor\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"newProcessors\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"Controller_ProcessorsUpdated\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":false,\\\"name\\\":\\\"newProcessorsWhiteListed\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"Controller_ConsentGivenTo\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"Controller_SubjectDataAccessed\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"Controller_SubjectDataErased\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"name\\\":\\\"subjectIdHash\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":false,\\\"name\\\":\\\"processorIdHash\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"Processor_SubjectDataErased\\\",\\\"type\\\":\\\"event\\\"}]\"\n}"
},
"url": {
"raw": "{{og_base_url}}/api/processors/contract/details",
"host": [
"{{og_base_url}}"
],
"path": [
"api",
"processors",
"contract",
"details"
]
}
},
"response": []
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{processor_jwt}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "4915d1bb-2ea1-4c6f-9ece-dccaa37281f8",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "c302e4cc-0dd2-4dac-a06a-e2f517d3bcb0",
"type": "text/javascript",
"exec": [
""
]
}
}
]
},
{
"name": "Long Health check",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/healthz/long/e61e4d31115633397270",
"host": [
"{{og_base_url}}"
],
"path": [
"healthz",
"long",
"e61e4d31115633397270"
]
}
},
"response": []
},
{
"name": "CORS",
"request": {
"method": "OPTIONS",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{og_base_url}}/",
"host": [
"{{og_base_url}}"
],
"path": [
""
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "1646a501-9e97-4bc3-9eae-4132a0a84121",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "181fb90e-0f8c-4649-a566-d8d792ee9ebc",
"type": "text/javascript",
"exec": [
""
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment