-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlucifer-quotes.yaml
54 lines (54 loc) · 1.35 KB
/
lucifer-quotes.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
openapi: 3.0.3
info:
title: Lucifer Quotes - OpenAPI 3.0
description: |-
A simple API to retrieve some quotes of Lucifer, shawty!
version: 1.0.0
servers:
- url: https://lucifer-quotes.vercel.app/api
paths:
/quotes:
get:
summary: Random quote
description: Get a random quote
operationId: getRandom
responses:
'200':
description: Successful operation
content:
application/josn:
schema:
type: array
items:
$ref: '#/components/schemas/Quote'
/quotes/{number}:
get:
summary: A given number of quotes
description: Return the given number of quotes
operationId: getNumber
parameters:
- name: number
in: path
required: true
schema:
type: integer
responses:
'200':
description: Successful operation
content:
application/josn:
schema:
type: array
items:
$ref: '#/components/schemas/Quote'
components:
schemas:
Quote:
type: object
properties:
quote:
type: string
description: Text of the quote
author:
type: string
description: Name of the character who said the quote on the show