-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.yaml
53 lines (53 loc) · 1.23 KB
/
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
53
swagger: "2.0"
info:
description: "This is a Swagger API description for the Advice collection on [https://api.adviceslip.com](https://api.adviceslip.com)"
version: "1.0.0"
title: "Swagger Advices"
termsOfService: "http://swagger.io/terms/"
contact:
email: "nagyniki.hu@gmail.com"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
host: "api.adviceslip.com"
basePath: "/"
tags:
- name: "advice"
description: "Collection of advices"
externalDocs:
description: "Find out more"
url: "https://api.adviceslip.com"
schemes:
- "https"
- "http"
paths:
/advice:
get:
tags:
- "advice"
summary: "Get a random advice"
description: ""
operationId: "getRandomAdvice"
produces:
- "application/json"
responses:
200:
description: "successful operation"
schema:
$ref: "#/definitions/AdviceSlip"
definitions:
AdviceSlip:
type: "object"
properties:
slip:
$ref: "#/definitions/Advice"
Advice:
type: "object"
properties:
slip_id:
type: "string"
advice:
type: "string"
externalDocs:
description: "Find out more about Swagger"
url: "http://swagger.io"