我使用邮递员并使用 openAPI 3.0 创建 API。\n问题是当我发送此请求时,如果我添加主体或不添加主体,它会返回状态代码 200。我不明白,因为我说我的代码是请求主体和字段所需的在这个身体中,但没有什么价值(没有身体代码 200 和没有 GRP_CNOM 代码 200)...\nSomeOne 可以帮助我吗?
\n我的 openAPI 代码:
\n post:\n operationId: CreationGroup\n summary: Creation groupe\n requestBody:\n $ref: '#/components/requestBodies/crea'\n responses:\n '200':\n description: '200 - Cr\xc3\xa9ation du groupe effectu\xc3\xa9'\n content:\n application/json:\n schema:\n type: object\n properties:\n code:\n type: integer\n message:\n type: string\n example:\n code: 200\n message: Le groupe a bien \xc3\xa9t\xc3\xa9 cr\xc3\xa9\xc3\xa9\n '400':\n description: '400 - Cr\xc3\xa9ation du groupe \xc3\xa9chou\xc3\xa9e'\n content:\n application/json:\n schema:\n type: object\n properties:\n code:\n type: integer\n message:\n type: string\n example:\n code: 200\n …Run Code Online (Sandbox Code Playgroud)