forked from docs/doc-exports
ddm_api
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
This commit is contained in:
@ -173,14 +173,6 @@ Content-Type: application/json
|
||||
}</pre>
|
||||
<p id="ddm_03_0002__en-us_topic_0121682347_p1859663401915">If all data required for the API request is available, you can send the request to call the API through <a href="https://curl.haxx.se/" target="_blank" rel="noopener noreferrer">curl</a>, <a href="https://www.getpostman.com/" target="_blank" rel="noopener noreferrer">Postman</a>, or coding. For the API of obtaining a user token, <strong id="ddm_03_0002__b14361621114819">x-subject-token</strong> in the response header is the required user token. This token can then be used to authenticate the calling of other APIs.</p>
|
||||
</div>
|
||||
<div class="section" id="ddm_03_0002__section140743661613"><h4 class="sectiontitle">Initiating Requests</h4><p id="ddm_03_0002__abe87411d02f441d8acf5a5f63d52edbe">You can initiate a request based on the constructed request message in one of the following ways:</p>
|
||||
<ul id="ddm_03_0002__u69bb0fd8d11a4e428f4e6fedc1515950"><li id="ddm_03_0002__la8e5f209e37b4c9eb0ae66f73d0ec1f0">cURL<p id="ddm_03_0002__a04f9f8ebd6674f36b25f63e65a92dcf2"><a name="ddm_03_0002__la8e5f209e37b4c9eb0ae66f73d0ec1f0"></a><a name="la8e5f209e37b4c9eb0ae66f73d0ec1f0"></a>cURL is a command-line tool used to perform URL operations and transmit information. It serves as an HTTP client that can send HTTP requests to the server and receive response messages. cURL is used for API debugging. For more information about cURL, visit <a href="https://curl.haxx.se/" target="_blank" rel="noopener noreferrer">https://curl.haxx.se/</a>.</p>
|
||||
<div class="note" id="ddm_03_0002__note8908839101715"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="ddm_03_0002__p090973919173">For security purposes, run the <strong id="ddm_03_0002__b1693674220152">curl</strong> command on the server to query information, and then clear operation records, including but not limited to records in the <strong id="ddm_03_0002__b1293610426157">~/.bash_history</strong> and <strong id="ddm_03_0002__b393724217157">/var/log/messages</strong> directories (if any).</p>
|
||||
</div></div>
|
||||
</li><li id="ddm_03_0002__lae3f7b6d508b43cd8565d0e8c4d9700b">Code<p id="ddm_03_0002__a02b0199016c4467693bc9cd4dcd9d74f"><a name="ddm_03_0002__lae3f7b6d508b43cd8565d0e8c4d9700b"></a><a name="lae3f7b6d508b43cd8565d0e8c4d9700b"></a>You can call APIs using code to assemble, send, and process request messages.</p>
|
||||
</li><li id="ddm_03_0002__l805ff59aa3f24f4ab7fbaa4962dd48e5">REST client<p id="ddm_03_0002__a26871275c663449488fffa9d8f492f51"><a name="ddm_03_0002__l805ff59aa3f24f4ab7fbaa4962dd48e5"></a><a name="l805ff59aa3f24f4ab7fbaa4962dd48e5"></a>Both Mozilla Firefox and Google Chrome provide a graphical browser plug-in, REST client, to send and process requests. For Mozilla Firefox, see <a href="https://addons.mozilla.org/en-US/firefox/addon/restclient/" target="_blank" rel="noopener noreferrer">Firefox REST Client</a>. For Google Chrome, see <a href="https://chrome.google.com/webstore/detail/postman-interceptor/aicmkgpgakddgnaphhhpliifpcfhicfo/?hl=en" target="_blank" rel="noopener noreferrer">Chrome REST Client</a>.</p>
|
||||
</li></ul>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
|
||||
Reference in New Issue
Block a user