|
|
@ -146,31 +146,31 @@ class SwaggerXc extends BaseRender { |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "fields", |
|
|
|
"name": "fields", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated fields from the model" |
|
|
|
"description": "Comma separated fields from the model" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "bt", |
|
|
|
"name": "bt", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated parent table names(Belongs To)" |
|
|
|
"description": "Comma separated parent table names(Belongs To)" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "hm", |
|
|
|
"name": "hm", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated child table names(Has Many)" |
|
|
|
"description": "Comma separated child table names(Has Many)" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "mm", |
|
|
|
"name": "mm", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated child table names(Many to Many)" |
|
|
|
"description": "Comma separated child table names(Many to Many)" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "where", |
|
|
|
"name": "where", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Where expression" |
|
|
|
"description": "Where expression" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -219,24 +219,24 @@ class SwaggerXc extends BaseRender { |
|
|
|
"in": "path", |
|
|
|
"in": "path", |
|
|
|
"description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, |
|
|
|
"description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"type": "String" |
|
|
|
"type": "string" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "bt", |
|
|
|
"name": "bt", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated parent table names(Belongs To)" |
|
|
|
"description": "Comma separated parent table names(Belongs To)" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "hm", |
|
|
|
"name": "hm", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated child table names(Has Many)" |
|
|
|
"description": "Comma separated child table names(Has Many)" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "mm", |
|
|
|
"name": "mm", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated child table names(Many to Many)" |
|
|
|
"description": "Comma separated child table names(Many to Many)" |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
@ -274,7 +274,7 @@ class SwaggerXc extends BaseRender { |
|
|
|
"in": "path", |
|
|
|
"in": "path", |
|
|
|
"description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, |
|
|
|
"description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"type": "String" |
|
|
|
"type": "string" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "body", |
|
|
|
"in": "body", |
|
|
@ -308,7 +308,7 @@ class SwaggerXc extends BaseRender { |
|
|
|
"in": "path", |
|
|
|
"in": "path", |
|
|
|
"description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, |
|
|
|
"description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"type": "String" |
|
|
|
"type": "string" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"responses": { |
|
|
@ -442,13 +442,13 @@ class SwaggerXc extends BaseRender { |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "fields", |
|
|
|
"name": "fields", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated fields from the model" |
|
|
|
"description": "Comma separated fields from the model" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "where", |
|
|
|
"name": "where", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Where expression" |
|
|
|
"description": "Where expression" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -502,7 +502,7 @@ class SwaggerXc extends BaseRender { |
|
|
|
"in": "path", |
|
|
|
"in": "path", |
|
|
|
"description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, |
|
|
|
"description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, |
|
|
|
"required": true, |
|
|
|
"required": true, |
|
|
|
"type": "String" |
|
|
|
"type": "string" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"responses": { |
|
|
@ -532,7 +532,7 @@ class SwaggerXc extends BaseRender { |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "where", |
|
|
|
"name": "where", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Where expression" |
|
|
|
"description": "Where expression" |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
@ -567,13 +567,13 @@ class SwaggerXc extends BaseRender { |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "column_name", |
|
|
|
"name": "column_name", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Column name" |
|
|
|
"description": "Column name" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "where", |
|
|
|
"name": "where", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Where expression" |
|
|
|
"description": "Where expression" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -628,7 +628,7 @@ class SwaggerXc extends BaseRender { |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "column_name", |
|
|
|
"name": "column_name", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Column name" |
|
|
|
"description": "Column name" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
@ -695,13 +695,13 @@ class SwaggerXc extends BaseRender { |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "column_name", |
|
|
|
"name": "column_name", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Column name" |
|
|
|
"description": "Column name" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "where", |
|
|
|
"name": "where", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Where expression" |
|
|
|
"description": "Where expression" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -759,25 +759,25 @@ class SwaggerXc extends BaseRender { |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "column_name", |
|
|
|
"name": "column_name", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Column name" |
|
|
|
"description": "Column name" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "func", |
|
|
|
"name": "func", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated aggregate functions" |
|
|
|
"description": "Comma separated aggregate functions" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "having", |
|
|
|
"name": "having", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Having expression" |
|
|
|
"description": "Having expression" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"in": "query", |
|
|
|
"in": "query", |
|
|
|
"name": "fields", |
|
|
|
"name": "fields", |
|
|
|
"type": "String", |
|
|
|
"type": "string", |
|
|
|
"description": "Comma separated fields from the model" |
|
|
|
"description": "Comma separated fields from the model" |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|