We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/api/admin
{ "success": true, "status": 200, "message": "successed", "data": { }, }
{ "success": false, "status": 400, "message": "Error.User.Name.Required", "data": {} }
{ "success": false, "status": 400, "data": {}, "errors": [{ "message": "Error.User.Email.Wrong.Format", }] } ```
The text was updated successfully, but these errors were encountered:
api/{modelName}/{int} ?perPage={int} &curPage={int} &sort={string} &search={string}
{ // 搜尋條件 "filter": { // 篩選特定欄位 "fields": [{ "key": "", // table column name "value": "", // search value }], // 全文檢索 "keyword": "" }, // Result Object "items": [{ id: 1, username: "q12312" }], // 分頁 "paging": { "total": 50, "lastPage": 15, "perPage": 15, "curPage": 1, "sort": "DESC", } }
以 user 為例
user
request 格式
api/user
{ nickName: 'john', email: '[email protected]', }
response 格式
{ id: 1, nickName: 'john', email: '[email protected]', }
api/user/1
{ nickName: 'john1', }
{ id: 1, nickName: 'john1', email: '[email protected]', }
Sorry, something went wrong.
iamcxa
horsekitlin
No branches or pull requests
API 基本定義
/api/admin
為標準前綴Response 通用規範
成功訊息
失敗訊息
The text was updated successfully, but these errors were encountered: