Topics Create
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| >>>
POST /v2/topic HTTP/1.1
Host: api.edgebus.io
Content-Type: application/json
Accept: */*
{
"$schema": "https://docs.edgebus.io/schemas/v2/topic/topic.create-request.json",
"name": "MyGitHubEventsTopic",
"description": "My first topic to handle GitHub's push events. See https://developer.github.com/webhooks/",
"mediaType": "application/vnd.edgebus.http"
}
<<<
HTTP/1.1 200 OK
Content-Length: ...
Content-Type: application/json; charset=utf-8
Date: ...
{
"$schema": "https://docs.edgebus.io/schemas/v2/topic/topic.json",
"id": "EBT-27f41f8be2f243d094c42d9649742c42",
"name": "MyGitHubEventsTopic",
"description": "My first topic to handle GitHub's push events. See https://developer.github.com/webhooks/",
"mediaType": "application/vnd.edgebus.http"
}
|