waha icon indicating copy to clipboard operation
waha copied to clipboard

Swagger - automaticly show only endpoint that is supported by engine.

Open devlikepro opened this issue 1 year ago • 1 comments

Right now not all features are supported by all engines and there's a page about that https://waha.devlike.pro/docs/how-to/engines/#features It can get outdated fast, and ideally, we should show DEPRECATED and add some notes to endpoint based on "engine" we're running.

patron:PRO

devlikepro avatar Jul 03 '24 10:07 devlikepro

Also please provide a full list of all possible errors that an endpoint can raise. Both documenting the error codes and the response model for the error.

As noted here you have differently formatted errors.

  • As a first priority, document the types of models i.e. json keys and expected data type, as well as required fields. That way, we can automatically parse and validate the responses generated from your server.
  • Secondly add a list of all returned http-error codes and their meaning i.e.
    • 400 - The Session you're trying to start is running already,
    • 500 - The session storage is corrupted.
    • 401 - Cannot send Message without authenticationg the session
    • 402 - This feature is only available for WAHA-Plus and WAHA-Pro

AliSot2000 avatar Jul 04 '24 12:07 AliSot2000