@zhongjianxin
2018-11-27T00:25:40.000000Z
字数 2287
阅读 854
OOCL
http://api.blog.com/createPost
body: {tittle: "my article", {content: "my article bit content"}}
POST http://api.blog.com/Posts
body: {tittle: "my article", {content: "my article bit content"}}
http://api.blog.com/getPostList
GET http://api.blog.com/Posts
http://api.blog.com/getPostById?id=3
GET http://api.blog.com/Posts/3
http://api.blog.com/deletePostById?id=3
DETELE http://api.blog.com/Posts/3
http://api.blog.com/updatePostById?id=3
PUT http://api.blog.com/Posts/3
http://api.blog.com/addCommentToPostById
body: {postId: "3", tittle: "my article", {content: "my article bit content"}}
POST http://api.blog.com/Posts/3/Comments
body: {tittle: "my article", {content: "my article bit content"}}
http://api.blog.com/getAllCommentsByPostId?postId=3
body: {postId: 3, content: "my comments"}
POST http://api.blog.com/Posts/3/Comments
body: {content: "all comments for this post"}
http://api.blog.com/deleteCommentsByPostIdAndCommentId?postId=3&commentId=2
DELETET http://api.blog.com/Posts/3/Comments/2
http://api.blog.com/updateCommentsByPostIdAndCommentId?postId=3&commentId=2
body: {content: "update this comment"}
PUT http://api.blog.com/Posts/3/Comments/2
body: {content: "update this comment"}
http://api.blog.com/createPostForIndicateAuthorByManager?AuthorId=2&ManagerId=1
body: {tittle: "my article", {content: "my article bit content"}}
POST http://api.blog.com/Authors/2/Posts
body: {tittle: "my article", {content: "my article bit content"}}
http://api.blog.com/createPostByAuthor?AuthorId=2
body: {tittle: "my article", {content: "my article bit content"}}
POST http://api.blog.com/Authors/2/Posts
body: {tittle: "my article", {content: "my article bit content"}}
http://api.blog.com/getAllCommentsByAuthorId?AuthorId=2&page=1&pageSize=10
GET http://api.blog.com/Authors/2/Comments?page=1&pageSize=10