Coder Social home page Coder Social logo

api-hbase's Introduction

新增四項功能於DataApi.java

預設port為8095,可自行更改。

資料儲存於server之arraylist,一旦關閉伺服器,資料將被清除。

附件users內含四名使用者之JSON假資料,可直接使用。

1. POST : 新增資料。

於postman選擇POST,路徑: http:localhost:8095/data
於body打上欲新增資料之JSON格式,send。
image
伺服器回應:ok

2. GET : 查詢資料。

於postman選擇GET,路徑:http://localhost:8095/data/(手機號碼/家裡電話/姓名/email)
image2
伺服器回應:所查詢之資料。
若查詢無結果:
fail1
伺服器回應:查無此人。

3. PUT : 更新資料。

於postman選擇PUT,路徑:http://localhost:8095/data/(手機號碼/家裡電話/姓名/email)
於BODY打上欲更改之資料(JSON)
patch
伺服器回應:成功更新資料。 '新資料'

4. DELETE : 刪除資料。

於postman選擇DELETE,路徑:http://localhost:8095/data/(手機號碼/家裡電話/姓名/email)
delete
伺服器回應:已成功移除資料。

api-hbase's People

Contributors

c-sung avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.