Post(帖子管理)
GET /api/Post/Posts
//api/Post/Posts?page=1&pageSize=10const myHeaders = new Headers();
myHeaders.append("Authorization", "<API Key>");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("//api/Post/Posts?page=1&pageSize=10", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));GET /api/Post/{id}
GET /api/Post/Categories
GET api/Post/Categories/:id
接口逻辑说明
GET /api/Post/CategorisedPosts
POST /api/Post/Create
GET /api/Post/Delete
GET /api/Post/Finish
GET /api/Post/Favorite
GET /api/Post/Unfavorite
GET /api/Post/Like
GET /api/Post/Unlike
GET /api/Post/GetFavorites
Last updated