-
Notifications
You must be signed in to change notification settings - Fork 0
/
kismet.yml
44 lines (41 loc) · 996 Bytes
/
kismet.yml
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
swagger: '2.0'
info:
title: 'Fortune Telling API'
description: 'API for generating random fortunes.'
version: '1.0'
paths:
/api/fortune:
post:
tags:
- 'Fortune'
summary: 'Get a Random Fortune'
description: 'Returns a random fortune based on the user\'s question.'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
description: 'The user\'s question.'
required: true
schema:
$ref: '#/definitions/Question'
responses:
'200':
description: 'A random fortune.'
schema:
$ref: '#/definitions/Fortune'
definitions:
Question:
type: 'object'
properties:
question:
type: 'string'
description: 'The user\'s question.'
Fortune:
type: 'object'
properties:
fortune:
type: 'string'
description: 'The random fortune.'