Added openapi .yaml draft

This commit is contained in:
2021-03-23 17:50:43 +01:00
parent 5133808490
commit b3287db571
2 changed files with 29 additions and 1 deletions

28
api-doc.yaml Normal file
View File

@@ -0,0 +1,28 @@
openapi: 3.0.0
info:
version: 0.0.1
title: Mocked Service
description: Service for creating your own mocked enpoints
tags:
- name: "MockedMessage"
- name: "MessageHistory"
paths:
/:
get:
summary: Returns homepage
tags:
- "MockedMessage"
description: Returns html file
operationId: showHome
responses:
"200":
description: Html file received
content:
text/html:
schema:
type: document
items:
$ref: "/resources/static/html/mock.html"