This repository has been archived by the owner on Mar 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nswag_config.nswag
76 lines (76 loc) · 9.97 KB
/
nswag_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
73
74
75
76
{
"runtime": "NetCore21",
"defaultVariables": null,
"documentGenerator": {
"fromDocument": {
"json": "{\r\n \"swagger\": \"2.0\",\r\n \"basePath\": \"/api\",\r\n \"paths\": {\r\n \"/recognize/withAll\": {\r\n \"post\": {\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\",\r\n \"schema\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/definitions/TranscriptionResult\"\r\n }\r\n }\r\n }\r\n },\r\n \"summary\": \"Transcribe audio file\",\r\n \"description\": \"Transcribe audio file.\",\r\n \"operationId\": \"post_stt_all\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"audio/wav\",\r\n \"in\": \"formData\",\r\n \"type\": \"file\",\r\n \"required\": true\r\n },\r\n {\r\n \"name\": \"X-Fields\",\r\n \"in\": \"header\",\r\n \"type\": \"string\",\r\n \"format\": \"mask\",\r\n \"description\": \"An optional fields mask\"\r\n }\r\n ],\r\n \"consumes\": [\r\n \"multipart/form-data\"\r\n ],\r\n \"tags\": [\r\n \"STT\"\r\n ]\r\n }\r\n },\r\n \"/recognize/withOne\": {\r\n \"post\": {\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/TranscriptionResult\"\r\n }\r\n }\r\n },\r\n \"summary\": \"Transcribe audio file\",\r\n \"description\": \"Transcribe audio file.\",\r\n \"operationId\": \"post_stt_single\",\r\n \"parameters\": [\r\n {\r\n \"name\": \"audio/wav\",\r\n \"in\": \"formData\",\r\n \"type\": \"file\",\r\n \"required\": true\r\n },\r\n {\r\n \"in\": \"query\",\r\n \"description\": \"The provider to perform of the transcription.\",\r\n \"name\": \"provider\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"in\": \"query\",\r\n \"description\": \"The language of the audio file.\",\r\n \"name\": \"language\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"X-Fields\",\r\n \"in\": \"header\",\r\n \"type\": \"string\",\r\n \"format\": \"mask\",\r\n \"description\": \"An optional fields mask\"\r\n }\r\n ],\r\n \"consumes\": [\r\n \"multipart/form-data\"\r\n ],\r\n \"tags\": [\r\n \"STT\"\r\n ]\r\n }\r\n },\r\n \"/synthesize/\": {\r\n \"post\": {\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Success\"\r\n }\r\n },\r\n \"description\": \"Synthesize text to speech.\",\r\n \"operationId\": \"post_tts\",\r\n \"parameters\": [\r\n {\r\n \"required\": true,\r\n \"type\": \"string\",\r\n \"in\": \"formData\",\r\n \"description\": \"The text to synthesize.\",\r\n \"name\": \"text\"\r\n },\r\n {\r\n \"required\": true,\r\n \"type\": \"string\",\r\n \"in\": \"formData\",\r\n \"description\": \"The provider to perform of the synthesis.\",\r\n \"name\": \"provider\"\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"in\": \"formData\",\r\n \"description\": \"The language of the text.\",\r\n \"name\": \"language\"\r\n }\r\n ],\r\n \"produces\": [\r\n \"application/octet-stream\"\r\n ],\r\n \"consumes\": [\r\n \"application/x-www-form-urlencoded\",\r\n \"multipart/form-data\"\r\n ],\r\n \"tags\": [\r\n \"TTS\"\r\n ]\r\n }\r\n },\r\n \"/translate/\": {\r\n \"post\": {\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"The translation result.\",\r\n \"schema\": {\r\n \"$ref\": \"#/definitions/TranslationResult\"\r\n }\r\n }\r\n },\r\n \"description\": \"Translate text to english.\",\r\n \"operationId\": \"post_ttt\",\r\n \"parameters\": [\r\n {\r\n \"required\": true,\r\n \"type\": \"string\",\r\n \"in\": \"formData\",\r\n \"description\": \"The text to translate.\",\r\n \"name\": \"text\"\r\n },\r\n {\r\n \"required\": true,\r\n \"type\": \"string\",\r\n \"in\": \"formData\",\r\n \"description\": \"The provider to perform of the translation.\",\r\n \"name\": \"provider\"\r\n },\r\n {\r\n \"type\": \"string\",\r\n \"in\": \"formData\",\r\n \"description\": \"The language of the text.\",\r\n \"name\": \"language\"\r\n },\r\n {\r\n \"name\": \"X-Fields\",\r\n \"in\": \"header\",\r\n \"type\": \"string\",\r\n \"format\": \"mask\",\r\n \"description\": \"An optional fields mask\"\r\n }\r\n ],\r\n \"consumes\": [\r\n \"application/x-www-form-urlencoded\",\r\n \"multipart/form-data\"\r\n ],\r\n \"tags\": [\r\n \"Translation\"\r\n ]\r\n }\r\n }\r\n },\r\n \"info\": {\r\n \"title\": \"Voice Over APIs\",\r\n \"version\": \"1.0\",\r\n \"description\": \"API for the Voice Over application.\"\r\n },\r\n \"produces\": [\r\n \"application/json\"\r\n ],\r\n \"consumes\": [\r\n \"application/json\"\r\n ],\r\n \"tags\": [\r\n {\r\n \"name\": \"Translation\",\r\n \"description\": \"Text translation API\"\r\n },\r\n {\r\n \"name\": \"TTS\",\r\n \"description\": \"Text to speech API\"\r\n },\r\n {\r\n \"name\": \"STT\",\r\n \"description\": \"Speech to text API\"\r\n }\r\n ],\r\n \"definitions\": {\r\n \"TranslationResult\": {\r\n \"properties\": {\r\n \"source\": {\r\n \"type\": \"string\",\r\n \"description\": \"The source text.\"\r\n },\r\n \"translation\": {\r\n \"type\": \"string\",\r\n \"description\": \"The translated text.\"\r\n },\r\n \"provider\": {\r\n \"type\": \"string\",\r\n \"description\": \"The provider of the translated text.\"\r\n },\r\n \"language\": {\r\n \"type\": \"string\",\r\n \"description\": \"The language of the translated text.\"\r\n }\r\n },\r\n \"type\": \"object\"\r\n },\r\n \"TranscriptionResult\": {\r\n \"properties\": {\r\n \"transcription\": {\r\n \"type\": \"string\",\r\n \"description\": \"The transcription of the audio.\"\r\n },\r\n \"provider\": {\r\n \"type\": \"string\",\r\n \"description\": \"The provider of the transcription.\"\r\n },\r\n \"confidence\": {\r\n \"type\": \"number\",\r\n \"description\": \"The confidence of the transcription.\"\r\n },\r\n \"time\": {\r\n \"type\": \"number\",\r\n \"description\": \"Execution time of the transcription.\"\r\n }\r\n },\r\n \"type\": \"object\"\r\n }\r\n },\r\n \"responses\": {\r\n \"ParseError\": {\r\n \"description\": \"When a mask can't be parsed\"\r\n },\r\n \"MaskError\": {\r\n \"description\": \"When any error occurs on mask\"\r\n }\r\n }\r\n}",
"url": "http://127.0.0.1:5000/api/swagger.json",
"output": null,
"newLineBehavior": "Auto"
}
},
"codeGenerators": {
"openApiToTypeScriptClient": {
"className": "{controller}Service",
"moduleName": "",
"namespace": "",
"typeScriptVersion": 2.7,
"template": "Angular",
"promiseType": "Promise",
"httpClass": "HttpClient",
"withCredentials": false,
"useSingletonProvider": true,
"injectionTokenType": "InjectionToken",
"rxJsVersion": 7.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": "MultipleClientsFromFirstTagAndPathSegments",
"markOptionalProperties": true,
"generateCloneMethod": false,
"typeStyle": "Class",
"enumStyle": "Enum",
"useLeafType": false,
"classTypes": [],
"extendedClasses": [],
"extensionCode": null,
"generateDefaultValues": true,
"excludedTypeNames": [],
"excludedParameterNames": [],
"handleReferences": false,
"generateConstructorInterface": true,
"convertConstructorInterfaceData": false,
"importRequiredTypes": true,
"useGetBaseUrlMethod": false,
"baseUrlTokenName": "API_BASE_URL",
"queryNullValue": "",
"useAbortSignal": false,
"inlineNamedDictionaries": false,
"inlineNamedAny": false,
"includeHttpContext": false,
"templateDirectory": null,
"typeNameGeneratorType": null,
"propertyNameGeneratorType": null,
"enumNameGeneratorType": null,
"serviceHost": null,
"serviceSchemes": null,
"output": null,
"newLineBehavior": "Auto"
}
}
}