-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.nswag
72 lines (72 loc) · 16.8 KB
/
config.nswag
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"runtime": "NetCore22",
"defaultVariables": null,
"documentGenerator": {
"fromDocument": {
"json": "{\r\n \"openapi\": \"3.0.1\",\r\n \"info\": {\r\n \"title\": \"My API\",\r\n \"version\": \"v1\"\r\n },\r\n \"paths\": {\r\n \"/data/table-list/{environment}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Data\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"environment\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\",\r\n \"content\": {\r\n \"text/plain\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"application/json\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"text/json\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/data/table-content/{environment}/{tableName}\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Data\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"environment\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n },\r\n {\r\n \"name\": \"tableName\",\r\n \"in\": \"path\",\r\n \"required\": true,\r\n \"schema\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\",\r\n \"content\": {\r\n \"text/plain\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DataTable\"\r\n }\r\n },\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DataTable\"\r\n }\r\n },\r\n \"text/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DataTable\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/migrations/list-all\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Migrations\"\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\",\r\n \"content\": {\r\n \"text/plain\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/Environment\"\r\n }\r\n }\r\n },\r\n \"application/json\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/Environment\"\r\n }\r\n }\r\n },\r\n \"text/json\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/Environment\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"400\": {\r\n \"description\": \"Bad Request\",\r\n \"content\": {\r\n \"text/plain\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/ProblemDetails\"\r\n }\r\n },\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/ProblemDetails\"\r\n }\r\n },\r\n \"text/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/ProblemDetails\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/migrations/list\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Migrations\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"environment\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\",\r\n \"content\": {\r\n \"text/plain\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/EnvironmentMigration\"\r\n }\r\n }\r\n },\r\n \"application/json\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/EnvironmentMigration\"\r\n }\r\n }\r\n },\r\n \"text/json\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/EnvironmentMigration\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/migrations/set\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Migrations\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"environment\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n },\r\n {\r\n \"name\": \"migrationId\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\",\r\n \"content\": {\r\n \"text/plain\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/EnvironmentMigration\"\r\n }\r\n }\r\n },\r\n \"application/json\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/EnvironmentMigration\"\r\n }\r\n }\r\n },\r\n \"text/json\": {\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/EnvironmentMigration\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/migrations/sql\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"Migrations\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"environment\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n },\r\n {\r\n \"name\": \"fromMigrationId\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n {\r\n \"name\": \"toMigrationId\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\",\r\n \"content\": {\r\n \"text/plain\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/SqlResult\"\r\n }\r\n },\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/SqlResult\"\r\n }\r\n },\r\n \"text/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/SqlResult\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/scripts/clean\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Scripts\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"environment\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\"\r\n }\r\n }\r\n }\r\n },\r\n \"/scripts/restore\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Scripts\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"databaseEnvironment\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\"\r\n }\r\n }\r\n }\r\n },\r\n \"/scripts/backup\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"Scripts\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"databaseEnvironment\",\r\n \"in\": \"query\",\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"components\": {\r\n \"schemas\": {\r\n \"DatabaseEnvironment\": {\r\n \"enum\": [\r\n \"LOCAL_STUDI\",\r\n \"DEV_STUDI\",\r\n \"INT_STUDI\",\r\n \"UAT_STUDI\",\r\n \"PROD_STUDI\",\r\n \"LOCAL_IPAC\",\r\n \"DEV_IPAC\",\r\n \"INT_IPAC\",\r\n \"UAT_IPAC\",\r\n \"PROD_IPAC\"\r\n ],\r\n \"type\": \"string\"\r\n },\r\n \"DataTable\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"columns\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"nullable\": true\r\n },\r\n \"rows\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"nullable\": true\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"EnvironmentMigration\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"nullable\": true,\r\n \"readOnly\": true\r\n },\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"nullable\": true,\r\n \"readOnly\": true\r\n },\r\n \"date\": {\r\n \"type\": \"string\",\r\n \"format\": \"date-time\",\r\n \"readOnly\": true\r\n },\r\n \"applied\": {\r\n \"type\": \"boolean\",\r\n \"readOnly\": true\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"Environment\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"nullable\": true\r\n },\r\n \"databaseEnvironment\": {\r\n \"allOf\": [\r\n {\r\n \"$ref\": \"#/components/schemas/DatabaseEnvironment\"\r\n }\r\n ]\r\n },\r\n \"databaseName\": {\r\n \"type\": \"string\",\r\n \"nullable\": true\r\n },\r\n \"databaseServerName\": {\r\n \"type\": \"string\",\r\n \"nullable\": true\r\n },\r\n \"migrations\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/EnvironmentMigration\"\r\n },\r\n \"nullable\": true\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"ProblemDetails\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"nullable\": true\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"nullable\": true\r\n },\r\n \"status\": {\r\n \"type\": \"integer\",\r\n \"format\": \"int32\",\r\n \"nullable\": true\r\n },\r\n \"detail\": {\r\n \"type\": \"string\",\r\n \"nullable\": true\r\n },\r\n \"instance\": {\r\n \"type\": \"string\",\r\n \"nullable\": true\r\n }\r\n },\r\n \"additionalProperties\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"SqlResult\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"content\": {\r\n \"type\": \"string\",\r\n \"nullable\": true\r\n }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n }\r\n }\r\n}",
"url": "https://localhost:44304/api-docs/v1/swagger.json",
"output": null
}
},
"codeGenerators": {
"openApiToTypeScriptClient": {
"className": "MigrationClient",
"moduleName": "",
"namespace": "",
"typeScriptVersion": 2.7,
"template": "Angular",
"promiseType": "Promise",
"httpClass": "HttpClient",
"withCredentials": false,
"useSingletonProvider": true,
"injectionTokenType": "InjectionToken",
"rxJsVersion": 6.0,
"dateTimeType": "Date",
"nullValue": "Undefined",
"generateClientClasses": true,
"generateClientInterfaces": false,
"generateOptionalParameters": false,
"exportTypes": true,
"wrapDtoExceptions": false,
"exceptionClass": "ApiException",
"clientBaseClass": null,
"wrapResponses": false,
"wrapResponseMethods": [],
"generateResponseClasses": true,
"responseClass": "SwaggerResponse",
"protectedMethods": [],
"configurationClass": null,
"useTransformOptionsMethod": false,
"useTransformResultMethod": false,
"generateDtoTypes": true,
"operationGenerationMode": "MultipleClientsFromOperationId",
"markOptionalProperties": true,
"generateCloneMethod": false,
"typeStyle": "Interface",
"enumStyle": "Enum",
"useLeafType": false,
"classTypes": [],
"extendedClasses": [],
"extensionCode": null,
"generateDefaultValues": true,
"excludedTypeNames": [],
"excludedParameterNames": [],
"handleReferences": false,
"generateConstructorInterface": true,
"convertConstructorInterfaceData": false,
"importRequiredTypes": true,
"useGetBaseUrlMethod": false,
"baseUrlTokenName": "MIGRATION_API_BASE_URL",
"queryNullValue": "",
"inlineNamedDictionaries": false,
"inlineNamedAny": false,
"templateDirectory": null,
"typeNameGeneratorType": null,
"propertyNameGeneratorType": null,
"enumNameGeneratorType": null,
"serviceHost": null,
"serviceSchemes": null,
"output": "Studi.DatabaseManager/ClientApp/src/app/migration-api/migration-api.module.ts"
}
}
}