-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenapi.yaml
62 lines (62 loc) · 2.03 KB
/
openapi.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
openapi: 3.0.0
info:
title: Plausible API
description: Plausible API allows you to record pageviews or custom events.
version: 1.0.0
servers:
- url: https://plausible.io/api
description: Production server
paths:
/event:
post:
summary: Record a pageview or custom event
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- domain
- url
properties:
name:
type: string
description: Name of the event. Can be 'pageview' or a custom event name.
example: pageview
domain:
type: string
description: Domain name of the site in Plausible.
example: dummy.site
url:
type: string
format: uri
description: URL of the page where the event was triggered.
example: http://dummy.site
referrer:
type: string
description: Referrer for this event.
example: http://referrer.site
props:
type: object
description: Custom properties for the event.
example: {"author": "John Doe", "logged_in": "false"}
revenue:
type: object
description: Revenue data for this event.
required:
- currency
- amount
properties:
currency:
type: string
description: ISO 4217 string representing the currency code.
example: USD
amount:
type: number
description: Revenue amount.
example: 1322.22
responses:
'202':
description: Accepted