Hi, by default openapi-swagger-generator uses /*/ for content type but when using swagger with post endpoint it gets unsupported media type error. how can we fix this
a
Aleksei Tirman [JB]
08/08/2023, 6:43 AM
Can you please describe your problem in more detail?
b
Berkay Özkan
08/31/2023, 10:05 AM
@Aleksei Tirman [JB] sorry for the late response i didnt get the notificaiton.
I have a route
Copy code
route("notifications") {
post {
val request = call.receive<CreateNotificationRequest>()
service.createNotification(request)
call.respond(HttpStatusCode.Created)
}
}
This route is automatically generated as in openapi doc: