简单博客网站API设计
前言
这是中山大学数据科学与计算机学院2019年服务计算的作业项目。所有代码与博客将被上传至github当中。
Github项目地址: https://github.com/StarashZero/ServerComputing/tree/master/hw6
个人主页: https://starashzero.github.io
作业简介
模仿 Github,设计一个博客网站的 API
API
博客网站使用HTTPS协议,所有请求根地址: https://spblog.com
,数据默认以JSON形式传递
Current version
网站可以存在多个版本,默认请求最新版本,可以自行选择其他版本
Accept: application/vnd.spBlog.v3+json
Schema
所有API通过HTTPS访问,数据以JSON形式的形式发送和接收
curl -i https://spblog.com/users/articles/firstblog
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 12 Oct 2012 23:33