Auth(认证与授权)
POST /api/Auth/Login
{
"username": "username",
"password": "passwordHash"
}const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "<API Key>");
const raw = JSON.stringify({
"password": "<string>",
"username": "<string>"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("//api/Auth/Login", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));POST /api/Auth/Logout
POST /api/Auth/Register
POST /api/Auth/ChangePassword
GET /api/Auth/Refresh
POST /api/Auth/ForgotPassword
GET api/Auth/Certificate
POST /api/Auth/Reset
接口逻辑说明
Last updated