dock_health_api 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/dock_health_api/resources/customfield.rb +1 -1
- data/lib/dock_health_api/resources/task.rb +1 -1
- data/lib/dock_health_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee077425b72c248b6d549be0e696dbb962f64c76b09eaf07000acdf9353aeebd
|
4
|
+
data.tar.gz: db0e1fa7d75f574d16cd46cc71a838f24f1f31083371cfea78109874d4e16c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64276bf68cd5d90cbda50a3c6a6cf30a761fb8ba8f9d98b4c0dadbdb4f365fe49dc20aaea6c8c485e395076b3b33a13576f9f443176235797f7e3999317c1b77
|
7
|
+
data.tar.gz: f1e60b666372844d91f10e2d358a250826286845be052e1352ac9922ddd686869420f15a3de3e8a882157c2483914b498891631d7c09f77ff9bf9f401280c9f3
|
data/README.md
CHANGED
@@ -94,7 +94,7 @@ DockHealthApi::TaskList.delete(id: "<tasklist ID>")
|
|
94
94
|
params = { taskList: { type: "tasklist type", id: "<tasklist id>" }, user: { type: "user type", id: "<user id>" } }
|
95
95
|
DockHealthApi::TaskList::User.put(params)
|
96
96
|
# Update role for existing user in tasklist
|
97
|
-
params = { taskList: { type: "tasklist type", id: "<tasklist id>" }, user: { type: "user type", id: "<user id>", userRole: "user role"
|
97
|
+
params = { taskList: { type: "tasklist type", id: "<tasklist id>" }, user: { type: "user type", id: "<user id>" }, userRole: "user role" }
|
98
98
|
DockHealthApi::TaskList::User.update(params)
|
99
99
|
# Delete existing user from tasklist
|
100
100
|
params = { taskList: { type: "tasklist type", id: "<tasklist id>" }, user: { type: "user type", id: "<user id>" } }
|
@@ -114,14 +114,16 @@ DockHealthApi::Webhook.put(params)
|
|
114
114
|
DockHealthApi::Webhook.delete(id: "<webhook id>")
|
115
115
|
|
116
116
|
# Get Specific Organization
|
117
|
-
DockHealthApi::Organization.get('id of
|
117
|
+
DockHealthApi::Organization.get('id of organization')
|
118
118
|
# Create Organization
|
119
119
|
DockHealthApi::Organization.create(organization_data)
|
120
120
|
# Update Specific Organization
|
121
121
|
DockHealthApi::Organization.update(updated_organization_data)
|
122
122
|
# Delete Specific Organization (can't be an active Organization)
|
123
123
|
DockHealthApi::Organization.delete({id: "id of organization"})
|
124
|
-
|
124
|
+
# Add User to Organization
|
125
|
+
params = { userId: "<user id>", organizationId: "<organization id>" }
|
126
|
+
DockHealthApi::Organization::User.update(params)
|
125
127
|
|
126
128
|
```
|
127
129
|
|
@@ -11,7 +11,7 @@ module DockHealthApi
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.list(**params)
|
14
|
-
headers = {"x-api-key": "#{ENV["DOCK_HEALTH_API"]}", "x-user-id": "#{ENV["DOCK_USER"]}", "x-organization-id":
|
14
|
+
headers = {"x-api-key": "#{ENV["DOCK_HEALTH_API"]}", "x-user-id": "#{ENV["DOCK_USER"]}", "x-organization-id": client.config.org_id}
|
15
15
|
response = execute_request(:get, "#{resource_url}", headers: headers, params: params)
|
16
16
|
return response.parsed
|
17
17
|
new(response.parsed)
|
@@ -7,7 +7,7 @@ module DockHealthApi
|
|
7
7
|
extend DockHealthApi::Crud::List
|
8
8
|
|
9
9
|
def self.list(**params)
|
10
|
-
headers = {"x-api-key": "#{ENV["DOCK_HEALTH_API"]}", "x-user-id": "#{ENV["DOCK_USER"]}", "x-organization-id":
|
10
|
+
headers = {"x-api-key": "#{ENV["DOCK_HEALTH_API"]}", "x-user-id": "#{ENV["DOCK_USER"]}", "x-organization-id": client.config.org_id}
|
11
11
|
response = execute_request(:get, "#{resource_url}", headers: headers, params: params)
|
12
12
|
return response.parsed
|
13
13
|
new(response.parsed)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dock_health_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Magomero
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|