# spring-boot-starter **Repository Path**: eurasia-training/spring-boot-starter ## Basic Information - **Project Name**: spring-boot-starter - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-25 - **Last Updated**: 2021-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 实现一个 todo list 功能 ### 功能需求 1. 可以新增一个 todo 2. 可以对已经存在的 todo 标记完成状态 3. 可以对已经存在的 todo 撤销完成状态 4. 可以删除已经存在的 todo 5. 可以修改一个已经存在的 todo ### 建表 SQL ```sql CREATE TABLE `t_todo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) default null, `status` int(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ``` ### RESTful API 新增 | 功能 | method | uri | | ---- | ---- | ---- | | 新增 | POST |/api/todos | | 标记完成 |PUT | /api/todos/{todoId}/finish | | 撤销完成 |PUT | /api/todos/{todoId}/cancel | | 删除 |DELETE | /api/todos/{todoId} | | 修改名称 |PUT | /api/todos/{todoId} |