aboutsummaryrefslogtreecommitdiff
path: root/sem7/dist/lec1/openapi.yaml
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-09-23 15:22:01 +0200
committerJulian T <julian@jtle.dk>2021-09-23 15:22:01 +0200
commit9784dd520a72b775641d649153101f4672139a9e (patch)
treed8ee83ab263c8951c68f42ff8e48a08469576db9 /sem7/dist/lec1/openapi.yaml
parentff954bdc2e33bfafbf8efac030762835583a3246 (diff)
Add assignments for dist 3
Diffstat (limited to 'sem7/dist/lec1/openapi.yaml')
-rw-r--r--sem7/dist/lec1/openapi.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/sem7/dist/lec1/openapi.yaml b/sem7/dist/lec1/openapi.yaml
new file mode 100644
index 0000000..ab547f0
--- /dev/null
+++ b/sem7/dist/lec1/openapi.yaml
@@ -0,0 +1,30 @@
+openapi: 3.0.3
+info:
+ title: open file
+ version: '1.0'
+servers:
+ - url: 'http://localhost:8080'
+paths:
+ /read/{filename}:
+ get:
+ operationId: getFile
+ responses:
+ '201':
+ description: Ok here is the file
+ content:
+ 'application/json':
+ schema:
+ type: string
+ '404':
+ description: File not found
+ content:
+ 'application/json':
+ schema:
+ type: string
+ parameters:
+ - name: filename
+ in: path
+ description: Name of file to read
+ required: true
+ schema:
+ type: string