Allow CORS origins

This commit is contained in:
Martin Pander
2022-11-08 11:01:31 +01:00
parent 8a78711727
commit 82f062b831
7 changed files with 36 additions and 35 deletions

View File

@ -7,6 +7,18 @@ servers:
- url: http://localhost:8080/api/v1
- url: https://dash.pander.me/api/v1
paths:
/journal/entry/:
post:
operationId: writeJournalEntry
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/JournalEntry'
responses:
'200':
description: Journal entry successfully written.
/journal/entry/{date}:
get:
operationId: getJournalEntryForDate
@ -25,24 +37,6 @@ paths:
type: string
format: date
example: 2022-02-18
post:
operationId: writeJournalEntryForDate
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/JournalEntry'
responses:
'200':
description: Journal entry successfully written.
parameters:
- name: date
in: path
required: true
schema:
type: string
format: date
example: 2022-02-18
delete:
operationId: deleteJournalEntryForDate
responses: