Code Monkey home page Code Monkey logo

drug-json-api-server-old's Introduction

drug-json-api-server

不可更動之假資料(模擬回應正常,但資料不更新)

https://my-json-server.typicode.com/JunTingLin/drug-json-api-server-old

目的 方法 URL
取得所有藥物資料 GET /XXX
取得某藥物資料 GET /XXX/1
新增藥物 POST /XXX
更改某藥物資料 PUT/PATCH /XXX/{id}
刪除某藥物 DELETE /XXX/{id}

註解: 新增、修改、刪除會傳回正確成功資訊,但不會真的影響,僅作為練習使用

image

image

可更動之假資料(有效請求後db.json資料會變)

npm下載,其實也非常方便(需裝好Node.js)

npm init

npm install -save json-server (-g 是global)

json:server": "json-server --watch db.json

image

repo: https://github.com/typicode/json-server

tutorial: https://www.youtube.com/watch?v=1zkgdLZEdwM&ab_channel=TraversyMedia

drug-json-api-server-old's People

Contributors

juntinglin avatar

Watchers

 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.