tie/scarf-api.yaml

52 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2022-02-22 12:34:38 +03:00
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"