Code Monkey home page Code Monkey logo

restful_task's Introduction

任务

  • Todo list

    使用node框架,构建一个Restful API,能够完成Todo list的以下功能。

    • 返回所有Todo任务
    • 创建一个新的Todo任务
    • 返回一个指定ID的Todo任务
    • 删除一个Todo任务
  • Todo中一个任务的JSON格式定义为:

  {
    "id": 1,
    "content": "Restful API homework",
    "createdTime": "2019-05-15T00:00:00Z"
  }
  • 进一步的功能提示:需完成的四个功能的Restful API定义如下,实现即可。
 GET /api/tasks/
 POST /api/tasks/
 GET /api/tasks/{id}
 DELETE /api/tasks/{id}

代码说明

  • 在本任务中,选择springboot作为框架,进行增删改查操作。
  • 由于在controller中,两个get方法 api/tasks 会导致重名,故将获取所有任务列表的api改为:api/taskALL

Postman测试截图

pic

pic

pic

pic

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.