Forum Discussion

jeangof's avatar
jeangof
New Member
3 years ago

Status code 204

Hello,

In our project we are using openAPI 3 and generating code with plugin 

openapi-generator-maven-plugin
<generatorName>kotlin-spring</generatorName>

The problem is that when we try to call from a kotlin application the declared endpoint in the contract, the endpoint is not "seen" by our app.

The default endpoint status code is 204 because it does not return anything.

Other endpoints work perfectly, but it looks like spring web-mvc which is used in our client app does not detect this endpoint as "elligible" endpoint because the produced content type is not correct.
The schema looks like this : 

'/api/v1/users/xxxx':
post:
tags:
- user
summary: xxx
description: 'Role needed: administrator'
operationId: xxxxx
security:
- enterpriseBearerAuth: [ ]
requestBody:
description: xxxxx
required: true
content:
application/json:
schema:
$ref: '#/components/requestBodies/xxxxxCreationRequest'



 

No RepliesBe the first to reply