mirror of
https://github.com/scarf-sh/tie.git
synced 2024-11-30 01:33:37 +03:00
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
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" |