GithubHelp home page GithubHelp logo

slim4-api-jwt's People

Contributors

dkben avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

amarintech

slim4-api-jwt's Issues

建立 Resource 層

把每個 Router 自動對應到 Resource 的 GET, POST, PUT, DELETE 中
這樣就不必要針對每一支 API 撰寫重複的 Router
只要增加 Resource Class 並設定 GET, POST, PUT, DELETE 的權限即可

Middleware 分離

將 Middleware 分離出 Router
因為會有共用的 before, after Middleware
也會有各自 API 獨立的 before, after Middleware
分離出各自獨立的 Class 放在 src/Middleware 資料夾中

Slack 訊息功能

目的是希望在開發時能將 PHP Error Log 發送到 Slack Channel 方便除錯

登入成功後的 API 權限控管

就算通過前、後台認證取得 TOKEN 後
也不代表可以使用所有 API
需要針對不同權限,進行每個權限、每個 API 的控管

前台 API Token 認證

針對前台用戶進行登入認證
需要資料表 users, members
所以要先做前台註冊頁面

API 分頁 pagination 功能

取得 API list 資訊時
自動將計算分頁資訊及返回一頁的資料量分頁
可能需要一個 API 內部開關決定是否返回全部,預設是要分頁
另外每一頁的筆數、排序方式、搜尋 keyword 等功能

後台 API Token 認證

針對後台用戶進行登入認證
需要資料表 admin, employees
後台不需要註冊頁面
但應該會寫死一個最高權限管理員,由他CRUD其它管理員

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.