|
| 1 | +export const get_organizations = { |
| 2 | + request: { |
| 3 | + 'url': 'https://api.smartthings.com/organizations', |
| 4 | + 'method': 'get', |
| 5 | + 'headers': { |
| 6 | + 'Content-Type': 'application/json;charset=utf-8', |
| 7 | + 'Accept': 'application/json', |
| 8 | + 'Authorization': 'Bearer 00000000-0000-0000-0000-000000000000', |
| 9 | + }, |
| 10 | + }, |
| 11 | + response: { |
| 12 | + items: [ |
| 13 | + { |
| 14 | + 'label': 'default user organization', |
| 15 | + 'warehouseGroupId': '00000000-0000-0000-0000-000000000000', |
| 16 | + 'name': 'orgnamespace1', |
| 17 | + 'developerGroupId': '00000000-0000-0000-0000-000000000000', |
| 18 | + 'adminGroupId': '00000000-0000-0000-0000-000000000000', |
| 19 | + 'organizationId': '00000000-0000-0000-0000-000000000000', |
| 20 | + 'isDefaultUserOrg': true, |
| 21 | + }, |
| 22 | + { |
| 23 | + 'label': 'Organization Two', |
| 24 | + 'warehouseGroupId': '00000000-0000-0000-0000-000000000000', |
| 25 | + 'name': 'orgnamespace2', |
| 26 | + 'developerGroupId': '00000000-0000-0000-0000-000000000000', |
| 27 | + 'adminGroupId': '00000000-0000-0000-0000-000000000000', |
| 28 | + 'organizationId': '00000000-0000-0000-0000-000000000002', |
| 29 | + 'isDefaultUserOrg': false, |
| 30 | + }, |
| 31 | + { |
| 32 | + 'label': 'Organization Three', |
| 33 | + 'warehouseGroupId': '00000000-0000-0000-0000-000000000000', |
| 34 | + 'name': 'orgnamespace3', |
| 35 | + 'developerGroupId': '00000000-0000-0000-0000-000000000000', |
| 36 | + 'adminGroupId': '00000000-0000-0000-0000-000000000000', |
| 37 | + 'organizationId': '00000000-0000-0000-0000-000000000003', |
| 38 | + 'isDefaultUserOrg': false, |
| 39 | + }, |
| 40 | + ], |
| 41 | + '_links': null, |
| 42 | + }, |
| 43 | +} |
| 44 | + |
| 45 | +export const get_an_organization = { |
| 46 | + request: { |
| 47 | + 'url': 'https://api.smartthings.com/organizations/00000000-0000-0000-0000-000000000000', |
| 48 | + 'method': 'get', |
| 49 | + 'headers': { |
| 50 | + 'Content-Type': 'application/json;charset=utf-8', |
| 51 | + 'Accept': 'application/json', |
| 52 | + 'Authorization': 'Bearer 00000000-0000-0000-0000-000000000000', |
| 53 | + }, |
| 54 | + }, |
| 55 | + response: { |
| 56 | + 'label': 'default user organization', |
| 57 | + 'warehouseGroupId': '00000000-0000-0000-0000-000000000000', |
| 58 | + 'name': 'orgnamespace1', |
| 59 | + 'developerGroupId': '00000000-0000-0000-0000-000000000000', |
| 60 | + 'adminGroupId': '00000000-0000-0000-0000-000000000000', |
| 61 | + 'organizationId': '00000000-0000-0000-0000-000000000000', |
| 62 | + 'isDefaultUserOrg': true, |
| 63 | + }, |
| 64 | +} |
0 commit comments