/
swagger.yml
52 lines (51 loc) · 1.19 KB
/
swagger.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
45
46
47
48
49
50
51
52
---
swagger: "2.0"
info:
description: "Feedbacktool endpoints"
version: "0.0.1"
title: "Feedbacktool Service API"
host: "localhost:8080"
schemes:
- "http"
produces:
- "application/json"
paths:
/feedback:
post:
summary: "Post a new Feedback"
description: "endpoint for posting a newly created feedback to the server"
operationId: "postDwarf"
parameters:
- name: payload
in: body
required: true
description: A single JSON object containing the dwarf definition
schema:
$ref: '#/definitions/Dwarf'
responses:
200:
description: indicates a successful update
get:
summary: "All feedback"
description: "Gets all feedback"
operationId: getFeedback
responses:
200:
description: "An array of feedback objects"
schema:
type: array
items:
$ref: '#/definitions/Dwarf'
definitions:
Feedback:
type: object
description: a short sturdy creature fond of drink and industry!
properties:
text:
type: string
os:
type: string
stars:
type: int
id:
type: int