Closed jmls closed 5 years ago
By default, only models actually used by services are generated.
If you want to generate all models, set ignoreUnusedModels
to false
in the configuration file.
This might also be related to #15. Closing.
I'm having this exact same issue. The generated api code does include a reference to a model file, which wasn't generated at all! This is all the more frustrating because there are no obvious errors.
The configuration is:
{
"$schema": "node_modules/ng-openapi-gen/ng-openapi-gen-schema.json",
"input": "http://localhost:52705/swagger/docs/v1",
"output": "src/app/api",
"skipJsonSuffix": true,
"ignoreUnusedModels" : false,
"module": "ApiModule"
}
The result I get on running ng-openapi-gen is:
Wrote src\app\api\api-configuration.ts
Wrote src\app\api\api.module.ts
Wrote src\app\api\base-service.ts
Wrote src\app\api\request-builder.ts
Wrote src\app\api\services\controller.service.ts
Wrote src\app\api\services.ts
Wrote src\app\api\strict-http-response.ts
Generation from http://localhost:52705/swagger/docs/v1 finished with 0 models and 1 services.
The open-api json is as follows:
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "MyApiName"
},
"host": "localhost:52705",
"schemes": [
"http"
],
"paths": {
"/Controller/GetSiteMap": {
"get": {
"tags": [
"Controller"
],
"operationId": "Controller_GetSiteMap",
"consumes": [],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/SiteMapNode"
}
}
}
}
}
},
"/Controller/GetFilters": {
"get": {
"tags": [
"Controller"
],
"operationId": "Controller_GetFilters",
"consumes": [],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/FiltersViewModel"
}
}
}
}
},
"/Controller/GetGroups": {
"get": {
"tags": [
"Controller"
],
"operationId": "Controller_GetGroups",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "regionId",
"in": "query",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "monthYear",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "companyType",
"in": "query",
"required": true,
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"collectionFormat": "multi"
},
{
"name": "salesType",
"in": "query",
"required": true,
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"collectionFormat": "multi"
},
{
"name": "usageType",
"in": "query",
"required": true,
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"collectionFormat": "multi"
},
{
"name": "request.offset",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "request.limit",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "request.search",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "request.sort",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "request.order",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/TableDataSourceResponse[GroupViewModel]"
}
}
}
}
},
"/Controller/GetAgencies": {
"get": {
"tags": [
"Controller"
],
"operationId": "Controller_GetAgencies",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "regionId",
"in": "query",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "monthYear",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "salesType",
"in": "query",
"required": true,
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"collectionFormat": "multi"
},
{
"name": "usageType",
"in": "query",
"required": true,
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"collectionFormat": "multi"
},
{
"name": "docTransferType",
"in": "query",
"required": true,
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"collectionFormat": "multi"
},
{
"name": "request.offset",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "request.limit",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "request.search",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "request.sort",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "request.order",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/TableDataSourceResponse[AgencyViewModel]"
}
}
}
}
},
"/Controller/GetAgencyDetails": {
"get": {
"tags": [
"Controller"
],
"operationId": "Controller_GetAgencyDetails",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "careProviderId",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "monthYear",
"in": "query",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AgencyDetailHeaderViewModel"
}
}
}
}
},
"/Controller/GetUsersByAgency": {
"get": {
"tags": [
"Controller"
],
"operationId": "Controller_GetUsersByAgency",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "careProviderId",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "monthYear",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "request.offset",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "request.limit",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "request.search",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "request.sort",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "request.order",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/TableDataSourceResponse[AgencyDetailViewModel]"
}
}
}
}
},
"/Controller/GetGroupDetails": {
"get": {
"tags": [
"Controller"
],
"operationId": "Controller_GetGroupDetails",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "GroupId",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "monthYear",
"in": "query",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/GroupDetailHeaderViewModel"
}
}
}
}
},
"/Controller/GetPowerUsersByGroup": {
"get": {
"tags": [
"Controller"
],
"operationId": "Controller_GetPowerUsersByGroup",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "GroupId",
"in": "query",
"required": true,
"type": "integer",
"format": "int64"
},
{
"name": "monthYear",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "request.offset",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "request.limit",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "request.search",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "request.sort",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "request.order",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/TableDataSourceResponse[GroupDetailViewModel]"
}
}
}
}
},
"/Controller/SaveAgencyFlags": {
"post": {
"tags": [
"Controller"
],
"operationId": "Controller_SaveAgencyFlags",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "agencyFlags",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AgencyFlagsUpdateViewModel"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object"
}
}
}
}
},
"/Controller/SavePowerUserCompanyFlags": {
"post": {
"tags": [
"Controller"
],
"operationId": "Controller_SavePowerUserCompanyFlags",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "powerUserCompanyFlags",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/PowerUserCompanyFlagsUpdateViewModel"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object"
}
}
}
}
}
},
"definitions": {
"SiteMapNode": {
"type": "object",
"properties": {
"SystemName": {
"type": "string"
},
"Title": {
"type": "string"
},
"ControllerName": {
"type": "string"
},
"ActionName": {
"type": "string"
},
"Href": {
"type": "string"
},
"RouteValues": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"Url": {
"type": "string"
},
"ChildNodes": {
"type": "array",
"items": {
"$ref": "#/definitions/SiteMapNode"
}
},
"IconClass": {
"type": "string"
},
"Visible": {
"type": "boolean"
},
"OpenUrlInNewTab": {
"type": "boolean"
}
}
},
"FiltersViewModel": {
"type": "object",
"properties": {
"Regions": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectListItem"
}
},
"RegionId": {
"format": "int32",
"type": "integer"
},
"MonthYear": {
"type": "string"
},
"DashboardData": {
"$ref": "#/definitions/DashboardViewModel"
},
"CareProviderSalesTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectListItem"
}
},
"CareProviderUsageTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectListItem"
}
},
"CareProviderDocTransferTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectListItem"
}
},
"PowerUserCompanyTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectListItem"
}
},
"PowerUserCompanySalesTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectListItem"
}
},
"PowerUserCompanyUsageTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/SelectListItem"
}
}
}
},
"SelectListItem": {
"type": "object",
"properties": {
"Disabled": {
"type": "boolean"
},
"Group": {
"$ref": "#/definitions/SelectListGroup"
},
"Selected": {
"type": "boolean"
},
"Text": {
"type": "string"
},
"Value": {
"type": "string"
}
}
},
"DashboardViewModel": {
"type": "object",
"properties": {
"Matrix": {
"$ref": "#/definitions/PowerUserAgencyMatrixViewModel"
},
"AgenciesInfo": {
"$ref": "#/definitions/AgenciesFlagCountsViewModel"
},
"GroupsInfo": {
"$ref": "#/definitions/GroupsFlagCountsViewModel"
}
}
},
"SelectListGroup": {
"type": "object",
"properties": {
"Disabled": {
"type": "boolean"
},
"Name": {
"type": "string"
}
}
},
"PowerUserAgencyMatrixViewModel": {
"type": "object",
"properties": {
"DA_PowerUser_DA_Agency": {
"$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel"
},
"DA_PowerUser_NonDA_Agency": {
"$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel"
},
"DA_PowerUser": {
"$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel"
},
"NonDA_PowerUser_DA_Agency": {
"$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel"
},
"DA_Agency": {
"$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel"
},
"GrandTotal": {
"$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel"
}
}
},
"AgenciesFlagCountsViewModel": {
"type": "object",
"properties": {
"SalesType": {
"type": "array",
"items": {
"$ref": "#/definitions/FlagCountInfoViewModel"
}
},
"UsageType": {
"type": "array",
"items": {
"$ref": "#/definitions/FlagCountInfoViewModel"
}
},
"DocTransferType": {
"type": "array",
"items": {
"$ref": "#/definitions/FlagCountInfoViewModel"
}
}
}
},
"GroupsFlagCountsViewModel": {
"type": "object",
"properties": {
"CompanyType": {
"type": "array",
"items": {
"$ref": "#/definitions/FlagCountInfoViewModel"
}
},
"SalesType": {
"type": "array",
"items": {
"$ref": "#/definitions/FlagCountInfoViewModel"
}
},
"UsageType": {
"type": "array",
"items": {
"$ref": "#/definitions/FlagCountInfoViewModel"
}
}
}
},
"PowerUserAgencyMatrixStatisticsViewModel": {
"type": "object",
"properties": {
"UploadedDocsCount": {
"format": "int32",
"type": "integer"
},
"UploadedPowerUsersCount": {
"format": "int32",
"type": "integer"
},
"UploadedGroupsCount": {
"format": "int32",
"type": "integer"
},
"UploadedUsersCount": {
"format": "int32",
"type": "integer"
},
"SignedDocsCount": {
"format": "int32",
"type": "integer"
},
"SignedPowerUsersCount": {
"format": "int32",
"type": "integer"
},
"SignedGroupsCount": {
"format": "int32",
"type": "integer"
},
"SignedUsersCount": {
"format": "int32",
"type": "integer"
}
}
},
"FlagCountInfoViewModel": {
"type": "object",
"properties": {
"Id": {
"format": "int32",
"type": "integer"
},
"Name": {
"type": "string"
},
"Count": {
"format": "int32",
"type": "integer"
},
"Total": {
"format": "int32",
"type": "integer"
},
"Percent": {
"format": "int32",
"type": "integer",
"readOnly": true
}
}
},
"TableDataSourceRequest": {
"type": "object",
"properties": {
"Offset": {
"format": "int32",
"type": "integer"
},
"Limit": {
"format": "int32",
"type": "integer"
},
"Search": {
"type": "string"
},
"Sort": {
"type": "string"
},
"Order": {
"type": "string"
}
}
},
"TableDataSourceResponse[GroupViewModel]": {
"type": "object",
"properties": {
"total": {
"format": "int32",
"type": "integer"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/definitions/GroupViewModel"
}
},
"error": {
"type": "string"
}
}
},
"GroupViewModel": {
"type": "object",
"properties": {
"GroupId": {
"format": "int64",
"type": "integer"
},
"GroupName": {
"type": "string"
},
"LocationName": {
"type": "string"
},
"ZipCode": {
"type": "string"
},
"MSATitle": {
"type": "string"
},
"CompanyTypeId": {
"format": "int32",
"type": "integer"
},
"CompanyType": {
"type": "string"
},
"SalesTypeId": {
"format": "int32",
"type": "integer"
},
"SalesType": {
"type": "string"
},
"UsageTypeId": {
"format": "int32",
"type": "integer"
},
"UsageType": {
"type": "string"
},
"County": {
"type": "string"
},
"NoOfPowerUsers": {
"format": "int32",
"type": "integer"
},
"PowerUserNames": {
"type": "string"
},
"NoOfUsers": {
"format": "int32",
"type": "integer"
},
"DocsCreated": {
"format": "int32",
"type": "integer"
},
"DocsSigned": {
"format": "int32",
"type": "integer"
},
"NoOfAgencies": {
"format": "int32",
"type": "integer"
},
"AgencyNames": {
"type": "string"
}
}
},
"TableDataSourceResponse[AgencyViewModel]": {
"type": "object",
"properties": {
"total": {
"format": "int32",
"type": "integer"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/definitions/AgencyViewModel"
}
},
"error": {
"type": "string"
}
}
},
"AgencyViewModel": {
"type": "object",
"properties": {
"AgencyId": {
"format": "int64",
"type": "integer"
},
"AgencyName": {
"type": "string"
},
"Parent": {
"type": "array",
"items": {
"type": "string"
}
},
"MSATitle": {
"type": "string"
},
"CSATitle": {
"type": "string"
},
"SalesTypeId": {
"format": "int32",
"type": "integer"
},
"SalesType": {
"type": "string"
},
"UsageTypeId": {
"format": "int32",
"type": "integer"
},
"UsageType": {
"type": "string"
},
"DocTransferTypeId": {
"format": "int32",
"type": "integer"
},
"DocTransferType": {
"type": "string"
},
"TicketsCount": {
"format": "int32",
"type": "integer"
},
"DocsUploadedThisMonth": {
"format": "int32",
"type": "integer"
},
"DocsSignedThisMonth": {
"format": "int32",
"type": "integer"
},
"TotalUnsignedDocs": {
"format": "int32",
"type": "integer"
},
"UsersUploadedThisMonth": {
"format": "int32",
"type": "integer"
},
"UsersSignedThisMonth": {
"format": "int32",
"type": "integer"
},
"CensusTotal": {
"format": "int32",
"type": "integer"
},
"CensusDAPowerUser": {
"format": "int32",
"type": "integer"
},
"CensusNonDAPowerUser": {
"format": "int32",
"type": "integer"
},
"TotalPowerUsers": {
"format": "int32",
"type": "integer"
},
"Top2DAPowerUsers": {
"type": "array",
"items": {
"$ref": "#/definitions/EntityNameWithId[Int64]"
}
},
"Top2NonDAPowerUsers": {
"type": "array",
"items": {
"$ref": "#/definitions/EntityNameWithId[Int64]"
}
},
"TotalGroups": {
"format": "int32",
"type": "integer"
},
"Top2DAGroups": {
"type": "array",
"items": {
"$ref": "#/definitions/EntityNameWithId[Int64]"
}
},
"Top2NonDAGroups": {
"type": "array",
"items": {
"$ref": "#/definitions/EntityNameWithId[Int64]"
}
}
}
},
"EntityNameWithId[Int64]": {
"type": "object",
"properties": {
"Id": {
"format": "int64",
"type": "integer"
},
"Name": {
"type": "string"
}
}
},
"AgencyDetailHeaderViewModel": {
"type": "object",
"properties": {
"CareProviderId": {
"format": "int64",
"type": "integer"
},
"CareProviderName": {
"type": "string"
},
"LocationName": {
"type": "string"
},
"MonthYear": {
"type": "string"
},
"SalesTypeId": {
"format": "int32",
"type": "integer"
},
"SalesType": {
"type": "string"
},
"UsageTypeId": {
"format": "int32",
"type": "integer"
},
"UsageType": {
"type": "string"
},
"DocTransferTypeId": {
"format": "int32",
"type": "integer"
},
"DocTransferType": {
"type": "string"
}
}
},
"TableDataSourceResponse[AgencyDetailViewModel]": {
"type": "object",
"properties": {
"total": {
"format": "int32",
"type": "integer"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/definitions/AgencyDetailViewModel"
}
},
"error": {
"type": "string"
}
}
},
"AgencyDetailViewModel": {
"type": "object",
"properties": {
"UserId": {
"format": "int64",
"type": "integer"
},
"UserName": {
"type": "string"
},
"PowerUserId": {
"format": "int64",
"type": "integer"
},
"PowerUserName": {
"type": "string"
},
"GroupId": {
"format": "int64",
"type": "integer"
},
"GroupName": {
"type": "string"
}
}
},
"GroupDetailHeaderViewModel": {
"type": "object",
"properties": {
"GroupId": {
"format": "int64",
"type": "integer"
},
"GroupName": {
"type": "string"
},
"LocationName": {
"type": "string"
},
"NoOfPowerUsers": {
"format": "int32",
"type": "integer"
},
"MonthYear": {
"type": "string"
},
"SalesTypeId": {
"format": "int32",
"type": "integer"
},
"SalesType": {
"type": "string"
},
"UsageTypeId": {
"format": "int32",
"type": "integer"
},
"UsageType": {
"type": "string"
}
}
},
"TableDataSourceResponse[GroupDetailViewModel]": {
"type": "object",
"properties": {
"total": {
"format": "int32",
"type": "integer"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/definitions/GroupDetailViewModel"
}
},
"error": {
"type": "string"
}
}
},
"GroupDetailViewModel": {
"type": "object",
"properties": {
"PowerUserId": {
"format": "int64",
"type": "integer"
},
"PowerUserName": {
"type": "string"
},
"UserId": {
"format": "int64",
"type": "integer"
},
"UserName": {
"type": "string"
},
"DocsCreated": {
"format": "int32",
"type": "integer"
},
"DocsSigned": {
"format": "int32",
"type": "integer"
}
}
},
"AgencyFlagsUpdateViewModel": {
"type": "object",
"properties": {
"CareProviderId": {
"format": "int64",
"type": "integer"
},
"CareProviderSalesType": {
"format": "int32",
"type": "integer"
},
"CareProviderUsageType": {
"format": "int32",
"type": "integer"
},
"CareProviderDocTransferType": {
"format": "int32",
"type": "integer"
}
}
},
"PowerUserCompanyFlagsUpdateViewModel": {
"type": "object",
"properties": {
"PowerUserCompanyId": {
"format": "int64",
"type": "integer"
},
"PowerUserCompanyType": {
"format": "int32",
"type": "integer"
},
"PowerUserCompanySalesType": {
"format": "int32",
"type": "integer"
},
"PowerUserCompanyUsageType": {
"format": "int32",
"type": "integer"
}
}
}
}
}
You're using a Swagger 2 input, whereas this generator works for OpenAPI 3.
Em sáb., 11 de mar. de 2023 15:04, Raghavendra K @.***> escreveu:
I'm having this exact same issue. The generated api code does include a reference to a model file, which wasn't generated at all! This is all the more frustrating because there are no obvious errors.
The configuration is:
{ "$schema": "node_modules/ng-openapi-gen/ng-openapi-gen-schema.json", "input": "http://localhost:52705/swagger/docs/v1", "output": "src/app/api", "skipJsonSuffix": true, "ignoreUnusedModels" : true, "module": "ApiModule" }
The result I get on running ng-openapi-gen is:
Wrote src\app\api\api-configuration.ts Wrote src\app\api\api.module.ts Wrote src\app\api\base-service.ts Wrote src\app\api\request-builder.ts Wrote src\app\api\services\controller.service.ts Wrote src\app\api\services.ts Wrote src\app\api\strict-http-response.ts Generation from http://localhost:52705/swagger/docs/v1 finished with 0 models and 1 services.
The open-api json is as follows:
{ "swagger": "2.0", "info": { "version": "v1", "title": "MyApiName" }, "host": "localhost:52705", "schemes": [ "http" ], "paths": { "/Controller/GetSiteMap": { "get": { "tags": [ "Controller" ], "operationId": "Controller_GetSiteMap", "consumes": [], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/SiteMapNode" } } } } } }, "/Controller/GetFilters": { "get": { "tags": [ "Controller" ], "operationId": "Controller_GetFilters", "consumes": [], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/FiltersViewModel" } } } } }, "/Controller/GetGroups": { "get": { "tags": [ "Controller" ], "operationId": "Controller_GetGroups", "consumes": [], "produces": [ "application/json" ], "parameters": [ { "name": "regionId", "in": "query", "required": true, "type": "integer", "format": "int32" }, { "name": "monthYear", "in": "query", "required": true, "type": "string" }, { "name": "companyType", "in": "query", "required": true, "type": "array", "items": { "type": "integer", "format": "int32" }, "collectionFormat": "multi" }, { "name": "salesType", "in": "query", "required": true, "type": "array", "items": { "type": "integer", "format": "int32" }, "collectionFormat": "multi" }, { "name": "usageType", "in": "query", "required": true, "type": "array", "items": { "type": "integer", "format": "int32" }, "collectionFormat": "multi" }, { "name": "request.offset", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "request.limit", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "request.search", "in": "query", "required": false, "type": "string" }, { "name": "request.sort", "in": "query", "required": false, "type": "string" }, { "name": "request.order", "in": "query", "required": false, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/TableDataSourceResponse[GroupViewModel]" } } } } }, "/Controller/GetAgencies": { "get": { "tags": [ "Controller" ], "operationId": "Controller_GetAgencies", "consumes": [], "produces": [ "application/json" ], "parameters": [ { "name": "regionId", "in": "query", "required": true, "type": "integer", "format": "int32" }, { "name": "monthYear", "in": "query", "required": true, "type": "string" }, { "name": "salesType", "in": "query", "required": true, "type": "array", "items": { "type": "integer", "format": "int32" }, "collectionFormat": "multi" }, { "name": "usageType", "in": "query", "required": true, "type": "array", "items": { "type": "integer", "format": "int32" }, "collectionFormat": "multi" }, { "name": "docTransferType", "in": "query", "required": true, "type": "array", "items": { "type": "integer", "format": "int32" }, "collectionFormat": "multi" }, { "name": "request.offset", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "request.limit", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "request.search", "in": "query", "required": false, "type": "string" }, { "name": "request.sort", "in": "query", "required": false, "type": "string" }, { "name": "request.order", "in": "query", "required": false, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/TableDataSourceResponse[AgencyViewModel]" } } } } }, "/Controller/GetAgencyDetails": { "get": { "tags": [ "Controller" ], "operationId": "Controller_GetAgencyDetails", "consumes": [], "produces": [ "application/json" ], "parameters": [ { "name": "careProviderId", "in": "query", "required": true, "type": "integer", "format": "int64" }, { "name": "monthYear", "in": "query", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/AgencyDetailHeaderViewModel" } } } } }, "/Controller/GetUsersByAgency": { "get": { "tags": [ "Controller" ], "operationId": "Controller_GetUsersByAgency", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "careProviderId", "in": "query", "required": true, "type": "integer", "format": "int64" }, { "name": "monthYear", "in": "query", "required": true, "type": "string" }, { "name": "request.offset", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "request.limit", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "request.search", "in": "query", "required": false, "type": "string" }, { "name": "request.sort", "in": "query", "required": false, "type": "string" }, { "name": "request.order", "in": "query", "required": false, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/TableDataSourceResponse[AgencyDetailViewModel]" } } } } }, "/Controller/GetGroupDetails": { "get": { "tags": [ "Controller" ], "operationId": "Controller_GetGroupDetails", "consumes": [], "produces": [ "application/json" ], "parameters": [ { "name": "GroupId", "in": "query", "required": true, "type": "integer", "format": "int64" }, { "name": "monthYear", "in": "query", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/GroupDetailHeaderViewModel" } } } } }, "/Controller/GetPowerUsersByGroup": { "get": { "tags": [ "Controller" ], "operationId": "Controller_GetPowerUsersByGroup", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "GroupId", "in": "query", "required": true, "type": "integer", "format": "int64" }, { "name": "monthYear", "in": "query", "required": true, "type": "string" }, { "name": "request.offset", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "request.limit", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "request.search", "in": "query", "required": false, "type": "string" }, { "name": "request.sort", "in": "query", "required": false, "type": "string" }, { "name": "request.order", "in": "query", "required": false, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/TableDataSourceResponse[GroupDetailViewModel]" } } } } }, "/Controller/SaveAgencyFlags": { "post": { "tags": [ "Controller" ], "operationId": "Controller_SaveAgencyFlags", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "agencyFlags", "in": "body", "required": true, "schema": { "$ref": "#/definitions/AgencyFlagsUpdateViewModel" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "object" } } } } }, "/Controller/SavePowerUserCompanyFlags": { "post": { "tags": [ "Controller" ], "operationId": "Controller_SavePowerUserCompanyFlags", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "powerUserCompanyFlags", "in": "body", "required": true, "schema": { "$ref": "#/definitions/PowerUserCompanyFlagsUpdateViewModel" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "object" } } } } } }, "definitions": { "SiteMapNode": { "type": "object", "properties": { "SystemName": { "type": "string" }, "Title": { "type": "string" }, "ControllerName": { "type": "string" }, "ActionName": { "type": "string" }, "Href": { "type": "string" }, "RouteValues": { "type": "object", "additionalProperties": { "type": "object" } }, "Url": { "type": "string" }, "ChildNodes": { "type": "array", "items": { "$ref": "#/definitions/SiteMapNode" } }, "IconClass": { "type": "string" }, "Visible": { "type": "boolean" }, "OpenUrlInNewTab": { "type": "boolean" } } }, "FiltersViewModel": { "type": "object", "properties": { "Regions": { "type": "array", "items": { "$ref": "#/definitions/SelectListItem" } }, "RegionId": { "format": "int32", "type": "integer" }, "MonthYear": { "type": "string" }, "DashboardData": { "$ref": "#/definitions/DashboardViewModel" }, "CareProviderSalesTypes": { "type": "array", "items": { "$ref": "#/definitions/SelectListItem" } }, "CareProviderUsageTypes": { "type": "array", "items": { "$ref": "#/definitions/SelectListItem" } }, "CareProviderDocTransferTypes": { "type": "array", "items": { "$ref": "#/definitions/SelectListItem" } }, "PowerUserCompanyTypes": { "type": "array", "items": { "$ref": "#/definitions/SelectListItem" } }, "PowerUserCompanySalesTypes": { "type": "array", "items": { "$ref": "#/definitions/SelectListItem" } }, "PowerUserCompanyUsageTypes": { "type": "array", "items": { "$ref": "#/definitions/SelectListItem" } } } }, "SelectListItem": { "type": "object", "properties": { "Disabled": { "type": "boolean" }, "Group": { "$ref": "#/definitions/SelectListGroup" }, "Selected": { "type": "boolean" }, "Text": { "type": "string" }, "Value": { "type": "string" } } }, "DashboardViewModel": { "type": "object", "properties": { "Matrix": { "$ref": "#/definitions/PowerUserAgencyMatrixViewModel" }, "AgenciesInfo": { "$ref": "#/definitions/AgenciesFlagCountsViewModel" }, "GroupsInfo": { "$ref": "#/definitions/GroupsFlagCountsViewModel" } } }, "SelectListGroup": { "type": "object", "properties": { "Disabled": { "type": "boolean" }, "Name": { "type": "string" } } }, "PowerUserAgencyMatrixViewModel": { "type": "object", "properties": { "DA_PowerUser_DA_Agency": { "$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel" }, "DA_PowerUser_NonDA_Agency": { "$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel" }, "DA_PowerUser": { "$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel" }, "NonDA_PowerUser_DA_Agency": { "$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel" }, "DA_Agency": { "$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel" }, "GrandTotal": { "$ref": "#/definitions/PowerUserAgencyMatrixStatisticsViewModel" } } }, "AgenciesFlagCountsViewModel": { "type": "object", "properties": { "SalesType": { "type": "array", "items": { "$ref": "#/definitions/FlagCountInfoViewModel" } }, "UsageType": { "type": "array", "items": { "$ref": "#/definitions/FlagCountInfoViewModel" } }, "DocTransferType": { "type": "array", "items": { "$ref": "#/definitions/FlagCountInfoViewModel" } } } }, "GroupsFlagCountsViewModel": { "type": "object", "properties": { "CompanyType": { "type": "array", "items": { "$ref": "#/definitions/FlagCountInfoViewModel" } }, "SalesType": { "type": "array", "items": { "$ref": "#/definitions/FlagCountInfoViewModel" } }, "UsageType": { "type": "array", "items": { "$ref": "#/definitions/FlagCountInfoViewModel" } } } }, "PowerUserAgencyMatrixStatisticsViewModel": { "type": "object", "properties": { "UploadedDocsCount": { "format": "int32", "type": "integer" }, "UploadedPowerUsersCount": { "format": "int32", "type": "integer" }, "UploadedGroupsCount": { "format": "int32", "type": "integer" }, "UploadedUsersCount": { "format": "int32", "type": "integer" }, "SignedDocsCount": { "format": "int32", "type": "integer" }, "SignedPowerUsersCount": { "format": "int32", "type": "integer" }, "SignedGroupsCount": { "format": "int32", "type": "integer" }, "SignedUsersCount": { "format": "int32", "type": "integer" } } }, "FlagCountInfoViewModel": { "type": "object", "properties": { "Id": { "format": "int32", "type": "integer" }, "Name": { "type": "string" }, "Count": { "format": "int32", "type": "integer" }, "Total": { "format": "int32", "type": "integer" }, "Percent": { "format": "int32", "type": "integer", "readOnly": true } } }, "TableDataSourceRequest": { "type": "object", "properties": { "Offset": { "format": "int32", "type": "integer" }, "Limit": { "format": "int32", "type": "integer" }, "Search": { "type": "string" }, "Sort": { "type": "string" }, "Order": { "type": "string" } } }, "TableDataSourceResponse[GroupViewModel]": { "type": "object", "properties": { "total": { "format": "int32", "type": "integer" }, "rows": { "type": "array", "items": { "$ref": "#/definitions/GroupViewModel" } }, "error": { "type": "string" } } }, "GroupViewModel": { "type": "object", "properties": { "GroupId": { "format": "int64", "type": "integer" }, "GroupName": { "type": "string" }, "LocationName": { "type": "string" }, "ZipCode": { "type": "string" }, "MSATitle": { "type": "string" }, "CompanyTypeId": { "format": "int32", "type": "integer" }, "CompanyType": { "type": "string" }, "SalesTypeId": { "format": "int32", "type": "integer" }, "SalesType": { "type": "string" }, "UsageTypeId": { "format": "int32", "type": "integer" }, "UsageType": { "type": "string" }, "County": { "type": "string" }, "NoOfPowerUsers": { "format": "int32", "type": "integer" }, "PowerUserNames": { "type": "string" }, "NoOfUsers": { "format": "int32", "type": "integer" }, "DocsCreated": { "format": "int32", "type": "integer" }, "DocsSigned": { "format": "int32", "type": "integer" }, "NoOfAgencies": { "format": "int32", "type": "integer" }, "AgencyNames": { "type": "string" } } }, "TableDataSourceResponse[AgencyViewModel]": { "type": "object", "properties": { "total": { "format": "int32", "type": "integer" }, "rows": { "type": "array", "items": { "$ref": "#/definitions/AgencyViewModel" } }, "error": { "type": "string" } } }, "AgencyViewModel": { "type": "object", "properties": { "AgencyId": { "format": "int64", "type": "integer" }, "AgencyName": { "type": "string" }, "Parent": { "type": "array", "items": { "type": "string" } }, "MSATitle": { "type": "string" }, "CSATitle": { "type": "string" }, "SalesTypeId": { "format": "int32", "type": "integer" }, "SalesType": { "type": "string" }, "UsageTypeId": { "format": "int32", "type": "integer" }, "UsageType": { "type": "string" }, "DocTransferTypeId": { "format": "int32", "type": "integer" }, "DocTransferType": { "type": "string" }, "TicketsCount": { "format": "int32", "type": "integer" }, "DocsUploadedThisMonth": { "format": "int32", "type": "integer" }, "DocsSignedThisMonth": { "format": "int32", "type": "integer" }, "TotalUnsignedDocs": { "format": "int32", "type": "integer" }, "UsersUploadedThisMonth": { "format": "int32", "type": "integer" }, "UsersSignedThisMonth": { "format": "int32", "type": "integer" }, "CensusTotal": { "format": "int32", "type": "integer" }, "CensusDAPowerUser": { "format": "int32", "type": "integer" }, "CensusNonDAPowerUser": { "format": "int32", "type": "integer" }, "TotalPowerUsers": { "format": "int32", "type": "integer" }, "Top2DAPowerUsers": { "type": "array", "items": { "$ref": "#/definitions/EntityNameWithId[Int64]" } }, "Top2NonDAPowerUsers": { "type": "array", "items": { "$ref": "#/definitions/EntityNameWithId[Int64]" } }, "TotalGroups": { "format": "int32", "type": "integer" }, "Top2DAGroups": { "type": "array", "items": { "$ref": "#/definitions/EntityNameWithId[Int64]" } }, "Top2NonDAGroups": { "type": "array", "items": { "$ref": "#/definitions/EntityNameWithId[Int64]" } } } }, "EntityNameWithId[Int64]": { "type": "object", "properties": { "Id": { "format": "int64", "type": "integer" }, "Name": { "type": "string" } } }, "AgencyDetailHeaderViewModel": { "type": "object", "properties": { "CareProviderId": { "format": "int64", "type": "integer" }, "CareProviderName": { "type": "string" }, "LocationName": { "type": "string" }, "MonthYear": { "type": "string" }, "SalesTypeId": { "format": "int32", "type": "integer" }, "SalesType": { "type": "string" }, "UsageTypeId": { "format": "int32", "type": "integer" }, "UsageType": { "type": "string" }, "DocTransferTypeId": { "format": "int32", "type": "integer" }, "DocTransferType": { "type": "string" } } }, "TableDataSourceResponse[AgencyDetailViewModel]": { "type": "object", "properties": { "total": { "format": "int32", "type": "integer" }, "rows": { "type": "array", "items": { "$ref": "#/definitions/AgencyDetailViewModel" } }, "error": { "type": "string" } } }, "AgencyDetailViewModel": { "type": "object", "properties": { "UserId": { "format": "int64", "type": "integer" }, "UserName": { "type": "string" }, "PowerUserId": { "format": "int64", "type": "integer" }, "PowerUserName": { "type": "string" }, "GroupId": { "format": "int64", "type": "integer" }, "GroupName": { "type": "string" } } }, "GroupDetailHeaderViewModel": { "type": "object", "properties": { "GroupId": { "format": "int64", "type": "integer" }, "GroupName": { "type": "string" }, "LocationName": { "type": "string" }, "NoOfPowerUsers": { "format": "int32", "type": "integer" }, "MonthYear": { "type": "string" }, "SalesTypeId": { "format": "int32", "type": "integer" }, "SalesType": { "type": "string" }, "UsageTypeId": { "format": "int32", "type": "integer" }, "UsageType": { "type": "string" } } }, "TableDataSourceResponse[GroupDetailViewModel]": { "type": "object", "properties": { "total": { "format": "int32", "type": "integer" }, "rows": { "type": "array", "items": { "$ref": "#/definitions/GroupDetailViewModel" } }, "error": { "type": "string" } } }, "GroupDetailViewModel": { "type": "object", "properties": { "PowerUserId": { "format": "int64", "type": "integer" }, "PowerUserName": { "type": "string" }, "UserId": { "format": "int64", "type": "integer" }, "UserName": { "type": "string" }, "DocsCreated": { "format": "int32", "type": "integer" }, "DocsSigned": { "format": "int32", "type": "integer" } } }, "AgencyFlagsUpdateViewModel": { "type": "object", "properties": { "CareProviderId": { "format": "int64", "type": "integer" }, "CareProviderSalesType": { "format": "int32", "type": "integer" }, "CareProviderUsageType": { "format": "int32", "type": "integer" }, "CareProviderDocTransferType": { "format": "int32", "type": "integer" } } }, "PowerUserCompanyFlagsUpdateViewModel": { "type": "object", "properties": { "PowerUserCompanyId": { "format": "int64", "type": "integer" }, "PowerUserCompanyType": { "format": "int32", "type": "integer" }, "PowerUserCompanySalesType": { "format": "int32", "type": "integer" }, "PowerUserCompanyUsageType": { "format": "int32", "type": "integer" } } } } }
— Reply to this email directly, view it on GitHub https://github.com/cyclosproject/ng-openapi-gen/issues/17#issuecomment-1464967857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJA76ITRZVLPJAUNWBNLP3W3S5D3ANCNFSM4HW5MKWA . You are receiving this because you modified the open/close state.Message ID: @.***>
Thanks for the quick response.
Got it. I am unfortunately dealing with a legacy .NET Framework Web API project and unable to upgrade the dependencies there at the moment. Is there an older version of ng-openapi-gen that would work with Swagger 2 input?
Thanks, Raghu
That would be ng-swagger-gen. Check this project's readme, there's a link.
Em dom., 12 de mar. de 2023 13:47, Raghavendra K @.***> escreveu:
Thanks for the quick response.
Got it. I am unfortunately dealing with a legacy .NET Framework Web API project and unable to upgrade the dependencies there at the moment. Is there an older version of ng-openapi-gen that would work with Swagger 2 input?
Thanks, Raghu
— Reply to this email directly, view it on GitHub https://github.com/cyclosproject/ng-openapi-gen/issues/17#issuecomment-1465245412, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJA76MBGNCZZZ7MQPPDZ2DW3X4ZRANCNFSM4HW5MKWA . You are receiving this because you modified the open/close state.Message ID: @.***>
when running the generator, no models are created, although they are referenced in the api code
in api/services/api.service.ts
but there is no folder called
models
. There is an emptymodels.ts
filewhat am I missing ?