Allow CORS origins
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user