1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-05 18:22:46 +00:00

openapi: group endpoints by tag in file

This reduces the amount of files generated by arround 300 and makes for
quicker compilation times.
This commit is contained in:
Chris Josten 2021-09-01 14:50:02 +02:00
parent 54235f298e
commit 03bc3f795a
1262 changed files with 7949 additions and 105833 deletions

View file

@ -1,21 +1,23 @@
{{#if endpoint.hasSuccessResponse}}
using namespace {{dtoNamespace}};
{{#if endpoint.description.length > 0}}
{{#each endpoints as |e|}}
{{#if e.endpoint.hasSuccessResponse}}
{{#if e.endpoint.description.length > 0}}
/**
* @brief {{endpoint.description}}
* @brief {{e.endpoint.description}}
*/
{{/if}}
class {{className}}Loader : public {{supportNamespace}}::HttpLoader<{{endpoint.resultType}}, {{endpoint.parameterType}}> {
class {{e.className}}Loader : public {{supportNamespace}}::HttpLoader<{{e.endpoint.resultType}}, {{e.endpoint.parameterType}}> {
public:
explicit {{className}}Loader(ApiClient *apiClient = nullptr);
explicit {{e.className}}Loader(ApiClient *apiClient = nullptr);
protected:
QString path(const {{endpoint.parameterType}}& parameters) const override;
QUrlQuery query(const {{endpoint.parameterType}}& parameters) const override;
QString path(const {{e.endpoint.parameterType}}& parameters) const override;
QUrlQuery query(const {{e.endpoint.parameterType}}& parameters) const override;
};
{{/if}}
{{/each}}