Closed Lhcfl closed 4 months ago
Can you provide a copy of the openapi spec that is causing the issue?
You can download it here: https://stelpolva.moe/api.json
(Sorry, a few days after this issue was issued, we temporarily switched to Redoc, resulting in the original scene not being visible.)
@Lhcfl looking at your spec, it appears that the operationId
is the same for both your POST and GET methods. These should be unique. Could you try making those unique to see if it resolves your issue?
Thanks for your help! This is indeed our problem, not following the OpenAPI spec correctly. Then this issue can be closed
If the same endpoint has both POST and GET methods, only one of them can be accessed
Context
Example: https://stelpolva.moe/api-doc#/operations/notes/reactions
As shown in the figure, when trying to view notes/reactions, both the GET and POST methods are active, and only the previous POST can be viewed.
Environment