devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click!
https://waha.devlike.pro/
Apache License 2.0
820 stars 249 forks source link

[Swagger] Undocumented Return Model for Endpoints #420

Open AliSot2000 opened 3 days ago

AliSot2000 commented 3 days ago

The following endpoints specify only a string as their response but response model isn't a string but an object. Please add documentation for the following endpoints:

Version

{
  "version": "2024.6.8",
  "engine": "NOWEB",
  "tier": "PLUS",
  "browser": "/usr/bin/chromium"
}
  1. Start an Instance and authenticate
  2. Go to the API Docs
  3. Create a Session
  4. Check the documentation of the listed endoints O
  5. Observe it says string Actual Return Value for GET /api/{session}/groups/{id}:
{
  "id": "120363299344494403@g.us",
  "subject": "TestingGroup5",
  "subjectOwner": "11111111111@s.whatsapp.net",
  "subjectTime": 1720124255,
  "size": 3,
  "creation": 1720124255,
  "owner": "11111111111@s.whatsapp.net",
  "restrict": false,
  "announce": false,
  "isCommunity": false,
  "isCommunityAnnounce": false,
  "joinApprovalMode": false,
  "memberAddMode": false,
  "participants": [
    {
      "id": "11111111111@s.whatsapp.net",
      "admin": "superadmin"
    },
    {
      "id": "1111111111@s.whatsapp.net",
      "admin": null
    },
    {
      "id": "11111111111@s.whatsapp.net",
      "admin": null
    }
  ]
}