文章相關 API
新增文章 (POST /api/articles)
更新文章 (PUT /api/articles/1)
刪除文章 (DELETE /api/articles/1)
使用者相關 API
新增使用者 (POST /api/users)
更新使用者 (PUT /api/users/1)
刪除使用者 (DELETE /api/users/1)
認證相關 API
登入 (POST /api/auth/login)
登出 (POST /api/auth/logout)
JWT 登入 (POST /api/authJWT/login)
JWT 更新 (POST /api/authJWT/refresh)
檔案相關 API
上傳檔案 (POST /api/files)
更新檔案 (PUT /api/files/1)
刪除檔案 (DELETE /api/files/1)
其他 API
更新庫存 (POST /api/inventory/update)
序列化 (POST /api/serialize)
GraphQL API
查詢所有: Query { users { id username email } }
查詢特定使用者: Query { user(id: "1") { username posts { title } } }
建立新使用者: Mutation { createUser(username: "newuser", email: "new@example.com", password: "password123") { id username } }
危險查詢: Query { dangerousQuery(query: "console.log('Hello')") }