<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                RESTful是?種架構的規范與約束、原則,符合這種規范的架構就是RESTful架構。 先看REST是什么意思,英?Representational state transfer 表述性狀態轉移,其實就是對資源的表述性狀態轉移,即通過HTTP動詞來實現資源的狀態扭轉: 資源是REST系統的核?概念。 所有的設計都是以資源為中? **elasticsearch使?RESTful?格api來設計的** ### ![](https://img.kancloud.cn/de/3c/de3c1d2dd35967d6cc8005279c3d289f_744x318.png) ### 1. GET /user:列出所有的?戶 3. POST /user:新建?個?戶 5. PUT /user:更新某個指定?戶的信息 7. DELETE /user/ID:刪除指定?戶 ### 執行上述的各種操作我們可以使用postman工具或者ApiPost工具,除此之外我們也可以使用curl命令,接下來我們記錄一下curl命令的使用: ### 獲取es的狀態: ### ``` curl -X GET "http://10.10.16.180:9200" ``` ### 新增一個文檔 ### ``` curl -X PUT "localhost:9200/xdclass/_doc/1" -H 'Content-Type: application/json' -d' { "user" : "louis", "message" : "louis is good" } ``` ### 刪除一個文檔 ### ``` curl -X DELETE "localhost:9200/xdclass/_doc/1" ``` ###
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看