[SOLVED] Inconsistency between Swagger and actual Status Code in POST Call


#1

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [X] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

In the Swagger configuration of my CMS instance I can see that every POST call that should be used to create a new Content expects the folliwng status codes:

  • 200: Content Created.
  • 400: Content data valid.
  • 500: Operation Failed.

However when I try to execute a POST call I get, as successful Status Code, 201. For this reason when I generate my C# client from the Swagger configuration and I try a POST call I got an exception because the 201 Status Code is not expected.
Could you please update and correct the swagger ?

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [X] Cloud version

#2

Thanks for the report, will be fixed.


#3

It is fixed and will be deployed on Monday.


#4

Sorry for the delay, it has been deployed now.