-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Unknown
committed
Mar 13, 2024
1 parent
b527721
commit 152b751
Showing
152 changed files
with
431 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1022,7 +1022,7 @@ <h5 class="topLinePageInfo__text"> | |
|
||
<li class="md-nav__item"> | ||
<a href="../../../Coiote_IoT_DM/Configurations/" class="md-nav__link"> | ||
Configurations | ||
FOTA Configurations | ||
</a> | ||
</li> | ||
|
||
|
@@ -1046,7 +1046,7 @@ <h5 class="topLinePageInfo__text"> | |
|
||
<li class="md-nav__item"> | ||
<a href="../../../Coiote_IoT_DM/Campaigns/" class="md-nav__link"> | ||
Campaigns | ||
FOTA Campaigns | ||
</a> | ||
</li> | ||
|
||
|
@@ -3509,17 +3509,15 @@ <h1 id="how-to-create-a-domain-and-add-users">How to create a domain and add use | |
</ul> | ||
<h3 id="step-1-create-a-domain">Step 1: Create a domain<a class="headerlink" href="#step-1-create-a-domain" title="Permanent link">#</a></h3> | ||
<p>To create a domain, send a <code>POST</code> request to the endpoint <code>/domains</code>. Customize the data in the request body with the necessary parameters for creating a domain: the domain identity and description. Domain identity consists of the root domain name followed by any number of sub-domain names, and must start and end with ”/”, for example: “/sub_domain1/sub_domain2/”. The following is an example of the request:</p> | ||
<div class="tabbed-set tabbed-alternate" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">cURL</label><label for="__tabbed_1_2">Coiote Python</label></div> | ||
<div class="tabbed-content"> | ||
<div class="tabbed-block"> | ||
<div class="tabbed-set" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><label for="__tabbed_1_1">cURL</label><div class="tabbed-content"> | ||
<div class="highlight"><pre><span></span><code>curl -X POST \ | ||
-H "Authorization: Bearer #TOKEN" \ | ||
-H "Content-Type: application/json" \ | ||
-d '{"id":"/sub_domain1/sub_domain2/","description":"Example domain"}' \ | ||
https://#HOSTNAME/api/coiotedm/v3/domains | ||
</code></pre></div> | ||
</div> | ||
<div class="tabbed-block"> | ||
<input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><label for="__tabbed_1_2">Coiote Python</label><div class="tabbed-content"> | ||
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">coiote.client</span> <span class="kn">import</span> <span class="n">Coiote</span> | ||
<span class="kn">from</span> <span class="nn">coiote.v3.model.domains</span> <span class="kn">import</span> <span class="n">Domain</span> | ||
|
||
|
@@ -3538,7 +3536,6 @@ <h3 id="step-1-create-a-domain">Step 1: Create a domain<a class="headerlink" hre | |
</code></pre></div> | ||
</div> | ||
</div> | ||
</div> | ||
<p>Replace <code>#TOKEN</code> with your actual access token and <code>#HOSTNAME</code> with your actual hostname.</p> | ||
<h3 id="step-2-add-users-to-your-domain">Step 2: Add users to your domain<a class="headerlink" href="#step-2-add-users-to-your-domain" title="Permanent link">#</a></h3> | ||
<p>To add users, send a <code>POST</code> request to the endpoint <code>/users</code>. Specify your domain in the path parameter. In the request body provide a user object. You have to include the following information:</p> | ||
|
@@ -3553,17 +3550,15 @@ <h3 id="step-2-add-users-to-your-domain">Step 2: Add users to your domain<a clas | |
<li>tosAccepted - set true to create a user with already accepted Terms of Service</li> | ||
</ul> | ||
<p>The following is an example of the request:</p> | ||
<div class="tabbed-set tabbed-alternate" data-tabs="2:2"><input checked="checked" id="__tabbed_2_1" name="__tabbed_2" type="radio" /><input id="__tabbed_2_2" name="__tabbed_2" type="radio" /><div class="tabbed-labels"><label for="__tabbed_2_1">cURL</label><label for="__tabbed_2_2">Coiote Python</label></div> | ||
<div class="tabbed-content"> | ||
<div class="tabbed-block"> | ||
<div class="tabbed-set" data-tabs="2:2"><input checked="checked" id="__tabbed_2_1" name="__tabbed_2" type="radio" /><label for="__tabbed_2_1">cURL</label><div class="tabbed-content"> | ||
<div class="highlight"><pre><span></span><code>curl -X POST \ | ||
-H "Authorization: Bearer #TOKEN" \ | ||
-H "Content-Type: application/json" \ | ||
-d '{"login":"example_user","email":"[email protected]","emailVerified":true,"domain":"/sub_domain1/sub_domain2/","password":"example_password","roles":["string"],"permissions":["string"],"tosAccepted":true"}' \ | ||
https://#HOSTNAME/api/coiotedm/v3/users | ||
</code></pre></div> | ||
</div> | ||
<div class="tabbed-block"> | ||
<input id="__tabbed_2_2" name="__tabbed_2" type="radio" /><label for="__tabbed_2_2">Coiote Python</label><div class="tabbed-content"> | ||
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">coiote.client</span> <span class="kn">import</span> <span class="n">Coiote</span> | ||
<span class="kn">from</span> <span class="nn">coiote.v3.model.users</span> <span class="kn">import</span> <span class="n">UserCreateRequest</span> | ||
|
||
|
@@ -3589,7 +3584,6 @@ <h3 id="step-2-add-users-to-your-domain">Step 2: Add users to your domain<a clas | |
</code></pre></div> | ||
</div> | ||
</div> | ||
</div> | ||
<p>Replace <code>#TOKEN</code> with your actual access token and <code>#HOSTNAME</code> with your actual hostname.</p> | ||
|
||
<!-- Link to previous and/or next page --> | ||
|
Oops, something went wrong.