File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,18 @@ add extra headers to your request
104
104
| customHeaders | <code >object</code > |
105
105
106
106
107
+ ## getOrganization
108
+ ##### accessControl.getOrganization(organization) ⇒ <code >object</code >
109
+ -- TerminusDB API ---
110
+ Get an organization from the TerminusDB API.
111
+
112
+ ** Returns** : <code >object</code > - - organization
113
+
114
+ | Param | Type | Description |
115
+ | --- | --- | --- |
116
+ | organization | <code >string</code > | The organization |
117
+
118
+
107
119
## getAllOrganizations
108
120
##### accessControl.getAllOrganizations() ⇒ <code >Promise</code >
109
121
-- TerminusDB API ---
Original file line number Diff line number Diff line change @@ -160,6 +160,16 @@ AccessControl.prototype.customHeaders = function (customHeaders) {
160
160
else return this . _customHeaders ;
161
161
} ;
162
162
163
+ /**
164
+ * -- TerminusDB API ---
165
+ * Get an organization from the TerminusDB API.
166
+ * @param {string } organization - The organization
167
+ * @return {object } - organization
168
+ */
169
+ AccessControl . prototype . getOrganization = function ( org ) {
170
+ return this . dispatch ( `${ this . baseURL } /organizations/${ org } ` , CONST . GET ) ;
171
+ } ;
172
+
163
173
/**
164
174
* -- TerminusDB API ---
165
175
* This end point works in basic authentication, admin user
You can’t perform that action at this time.
0 commit comments