Go框架demo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

878 B

接口

IP:   192.168.100.50
PORT: 8000
HOST: baidu-link-submit-ms.juejin.im

资源创建通知

请求

POST /v1/events/created

参数

# 格式

Content-Type: application/json; charset=utf-8

{
  type,
  id
}
# 说明

type := 'link' | 'column'
# type -> 资源类型,必需
# link -> 链接
# column -> 专栏

id := <string>
# id -> 资源 ID,必需

响应

{
    "s": 1,
    "m": "success",
    "d": []
}

示例

# 专栏文章创建后

POST http://192.168.100.50:8000/v1/events/created HTTP/1.1
Host: baidu-link-submit-ms.juejin.im
Content-Type: application/json

{
	"type": "column",
	"id": "5ac9dc9af265da23884d5543"
}

资源更新通知

请求

POST /v1/events/updated

其余同上。

资源删除通知

请求

POST /v1/events/deleted

其余同上。