-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocumentation.json
55 lines (55 loc) · 1.6 KB
/
documentation.json
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"openapi": "3.0.0",
"info": {
"description": "This is a simple application which transforms a Bitbucket payload and sends it as a New Relic Insight custom event. https://docs.newrelic.com/docs/insights/insights-data-sources/custom-data/send-custom-events-event-api",
"version": "1.0.0",
"title": "Bitbucket2Insights",
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"paths": {
"/insights/{accountNumber}/key/{xinsertkey}": {
"post": {
"parameters": [
{
"in": "path",
"name": "accountNumber",
"description": "New Relic account ID",
"schema": {
"type": "integer"
},
"required": true
},
{
"in": "path",
"name": "xinsertkey",
"description": "Get your X-INSERT-KEY here https://docs.newrelic.com/docs/insights/insights-data-sources/custom-data/send-custom-events-event-api#register",
"schema": {
"type": "integer"
},
"required": true
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"responses": {
"200": {
"description": "The event was successfully added."
},
"500": {
"description": "If Insights API fails or can not handle the request will throw this http code."
}
}
}
}
}
}