定制 mms80/todo-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mms80/todo-api

Composer 安装命令:

composer require mms80/todo-api

包简介

todo api

README 文档

README

This project is defined for Laravel to design a project-independent package that adds the Todo ability to the main project. At the end, after copying your package files to the main project and adding it to composer , your package is expected to connect to the main project and enable the Todo feature for that project.

Installation

  composer require mms80/todo-api

requires

  • PHP ^7.4
  • Laravel ^7.x

environments

Documentation

  • To create tables in the database :

      php artisan migrate
    
  • Create a user in database.

  • All requests must include the "Authorization" parameter in the header (Authorization value is an Bearer TOKEN) .

  • Config "mailtrap" environments in ".env" file.

task api :

  • To show all tasks of the logged in user :

      GET "/tasks"
    
  • To create a task :

      POST "/tasks" -d {"title":"foo","description":"bar","labels --optional":["label1","label2"]}
    
  • To show a task :

      GET "/tasks/{id}"
    
  • To edit a task :

      PUT "/tasks/{id}" -d {"title --optional":"foo" , "description --optional":"bar" , "status --optional":"1 || 2" , "labels --optional":["label1","label2"] , "detaching --optional":true}
    

    When the "status" is "1" , the task is open and when the "status" is "2" , the task is closed.

    "detaching" is an optional parameter . When it is true , new labels are added to the task and old labels are removed, and when it is false , new labels are added to old task labels (It is false by default).

label api :

  • To Show all labels :

      GET "/labels"
    
  • To create a label :

      POST "/labels" -d {"title --unique":"foo"}
    

Test

in the package folder path :

composer update
composer run test

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固