I didn’t improve the Swagger definition since then. But the team maintains a discourse_api gem which is the so called client.
discourse_api