-
Notifications
You must be signed in to change notification settings - Fork 5
/
scarf-api.yaml
52 lines (51 loc) · 1.09 KB
/
scarf-api.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
openapi: "3.0.0"
info:
version: 1.0.0
title: Scarf
license:
name: AllRightsReserved
servers:
- url: https://scarf.sh/api/v1
paths:
/packages:
get:
summary: List all packages
operationId: listPackages
tags:
- packages
responses:
'200':
description: An array of packages
content:
application/json:
schema:
$ref: "#/components/schemas/Packages"
/packages2:
get:
summary: List all packages
operationId: listPackages2
tags:
- packages
responses:
'200':
description: An array of Inlines
content:
application/json:
schema:
$ref: "#/components/schemas/Inline"
components:
schemas:
Package:
properties:
name:
type: string
Packages:
oneOf:
- $ref: "#/components/schemas/Package"
Inline:
properties:
value:
oneOf:
- type: integer
- type: string
- $ref: "#/components/schemas/Package"