-
Notifications
You must be signed in to change notification settings - Fork 39
/
api-spec.yaml
71 lines (63 loc) · 1.82 KB
/
api-spec.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
openapi: "3.0.3"
info:
title: The Sample Service API
version: 0.0.1
description: Send errors to Rollbar or Sentry
servers:
- url: https://sample-service.backstage-demo.roadie.io
description: A plublic instance which anyone can hit to generate sample data.
paths:
/:
get:
summary: Return Hello World
responses:
'200':
description: A JSON object with a message key and Hello World value.
content:
application/json:
schema:
type: object
example:
message: Hello world!
/debug-sentry:
post:
summary: Send an error to Sentry
requestBody:
description: Optional error text to send to Sentry.
required: false
content:
application/json:
schema:
type: object
example:
errorMessage: My first Sentry Error
responses:
'200':
description: Confirmation that the error was sent.
content:
application/json:
schema:
type: object
example:
message: 'Error sent to Sentry: "My first error"'
/debug-rollbar:
post:
summary: Send an error to Rollbar
requestBody:
description: Optional error text to send to Rollbar.
required: false
content:
application/json:
schema:
type: object
example:
errorMessage: My first Rollbar Error
responses:
'200':
description: Confirmation that the error was sent.
content:
application/json:
schema:
type: object
example:
message: 'Error sent to Rollbar: "My first error"'