post
2016-05-24 14:13:19 0 举报
Post,源自拉丁语“positus”,意为“放置”。在计算机科学中,post通常指的是HTTP协议中的POST请求,它是一种向服务器提交数据的方法。与GET请求不同,POST请求的数据包含在请求体中,不会显示在URL中,因此更适合传输敏感信息。此外,POST请求还可以实现文件上传等功能。在日常使用中,我们也会用“post”来表示“发布”、“发表”等意思,如“发一条朋友圈post”。
作者其他创作
大纲/内容
返回结果:http status code: 200json:posts: { nickname_announcer: (发布者的昵称) head_img_announcer: (发布者的头像) text_content: (发布的内容) pic_img: (发布的图片) category: (所属类别) time_announcer: (发布时间) distance_announcer: (距离) comment_num: (评论数) read_num: (阅读数) comments: [ (评论) { nickname_comment: (评论者的昵称) head_img_comment: (评论者的头像) comment_content: (评论的内容) time_comment: (评论时间) } ]}
不合法
该 post_id 是否存在
返回结果:http status code: 200json:posts: { post_category_id: (分类 ID) content: (信息内容) count_images: (包含图片数量) count_readed: (阅读次数) count_commented: (评论次数) created_user_id: (信息发布者用户 ID) deleted: (删除状图)}
检验参数合法性:动态 id: 数字经度、纬度: 数字
存在
获取参数:post_id ( 动态 id )longitude ( 经度 )latitude ( 纬度 )
返回结果: http status code: 400message: 动态不存在
合法
不存在
返回结果:http status code:400message:参数不合法
0 条评论
下一页