Berkay Özkan
08/07/2023, 2:49 PMAleksei Tirman [JB]
08/08/2023, 6:43 AMBerkay Özkan
08/31/2023, 10:05 AMroute("notifications") {
post {
val request = call.receive<CreateNotificationRequest>()
service.createNotification(request)
call.respond(HttpStatusCode.Created)
}
}
This route is automatically generated as in openapi doc:
paths:
/notifications:
post:
tags:
- "Notifications"
description: ""
requestBody:
content:
'*/*':
schema:
$ref: "#/components/schemas/CreateNotificationRequest"
required: true
Problem is
content:
'*/*':
When i try to test this endpoint in swagger i got error, but when i manually update the content to applitaction/json
it works.Aleksei Tirman [JB]
08/31/2023, 10:30 AMBerkay Özkan
08/31/2023, 10:32 AM