-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenau-nlp.nswag
More file actions
100 lines (100 loc) · 19.2 KB
/
genau-nlp.nswag
File metadata and controls
100 lines (100 loc) · 19.2 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"runtime": "Net70",
"defaultVariables": null,
"documentGenerator": {
"fromDocument": {
"json": "{\r\n \"openapi\": \"3.0.2\",\r\n \"info\": {\r\n \"title\": \"FastAPI\",\r\n \"version\": \"0.1.0\"\r\n },\r\n \"paths\": {\r\n \"/transcribe/upload\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"transcribe\"\r\n ],\r\n \"summary\": \"Upload File\",\r\n \"operationId\": \"upload_file_transcribe_upload_post\",\r\n \"parameters\": [\r\n {\r\n \"required\": false,\r\n \"schema\": {\r\n \"title\": \"Language\",\r\n \"type\": \"string\"\r\n },\r\n \"name\": \"language\",\r\n \"in\": \"query\"\r\n }\r\n ],\r\n \"requestBody\": {\r\n \"content\": {\r\n \"multipart/form-data\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/Body_upload_file_transcribe_upload_post\"\r\n }\r\n }\r\n },\r\n \"required\": true\r\n },\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Successful Response\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/TranscribeResponse\"\r\n }\r\n }\r\n }\r\n },\r\n \"404\": {\r\n \"description\": \"Not Found\"\r\n },\r\n \"422\": {\r\n \"description\": \"Validation Error\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/HTTPValidationError\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/nlp/tokenize\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"nlp\"\r\n ],\r\n \"summary\": \"Generate Tags\",\r\n \"operationId\": \"generate_tags_nlp_tokenize_post\",\r\n \"parameters\": [\r\n {\r\n \"required\": true,\r\n \"schema\": {\r\n \"title\": \"Sentence\",\r\n \"type\": \"string\"\r\n },\r\n \"name\": \"sentence\",\r\n \"in\": \"query\"\r\n },\r\n {\r\n \"required\": false,\r\n \"schema\": {\r\n \"title\": \"Language\",\r\n \"type\": \"string\"\r\n },\r\n \"name\": \"language\",\r\n \"in\": \"query\"\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Successful Response\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/TokenizeResponse\"\r\n }\r\n }\r\n }\r\n },\r\n \"404\": {\r\n \"description\": \"Not Found\"\r\n },\r\n \"422\": {\r\n \"description\": \"Validation Error\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/HTTPValidationError\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/nlp/find_similarities\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"nlp\"\r\n ],\r\n \"summary\": \"Find Similarities\",\r\n \"operationId\": \"find_similarities_nlp_find_similarities_post\",\r\n \"parameters\": [\r\n {\r\n \"required\": true,\r\n \"schema\": {\r\n \"title\": \"Word\",\r\n \"type\": \"string\"\r\n },\r\n \"name\": \"word\",\r\n \"in\": \"query\"\r\n },\r\n {\r\n \"required\": true,\r\n \"schema\": {\r\n \"title\": \"Others\",\r\n \"type\": \"string\"\r\n },\r\n \"name\": \"others\",\r\n \"in\": \"query\"\r\n },\r\n {\r\n \"required\": true,\r\n \"schema\": {\r\n \"title\": \"Language\",\r\n \"type\": \"string\"\r\n },\r\n \"name\": \"language\",\r\n \"in\": \"query\"\r\n }\r\n ],\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Successful Response\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/FindSimiliaritiesResponse\"\r\n }\r\n }\r\n }\r\n },\r\n \"404\": {\r\n \"description\": \"Not Found\"\r\n },\r\n \"422\": {\r\n \"description\": \"Validation Error\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/HTTPValidationError\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"/exercises/generate/generators\": {\r\n \"get\": {\r\n \"tags\": [\r\n \"exercise-generation\"\r\n ],\r\n \"summary\": \"Get Generator List\",\r\n \"operationId\": \"get_generator_list_exercises_generate_generators_get\",\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Successful Response\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"title\": \"Response Get Generator List Exercises Generate Generators Get\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/ExerciseGenerator\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"404\": {\r\n \"description\": \"Not Found\"\r\n }\r\n }\r\n }\r\n },\r\n \"/exercises/generate/multi-choice\": {\r\n \"post\": {\r\n \"tags\": [\r\n \"exercise-generation\"\r\n ],\r\n \"summary\": \"Generate Multi Choice Exercises\",\r\n \"operationId\": \"generate_multi_choice_exercises_exercises_generate_multi_choice_post\",\r\n \"parameters\": [\r\n {\r\n \"required\": true,\r\n \"schema\": {\r\n \"title\": \"Sentence\",\r\n \"type\": \"string\"\r\n },\r\n \"name\": \"sentence\",\r\n \"in\": \"query\"\r\n }\r\n ],\r\n \"requestBody\": {\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/GenerationFilters\"\r\n }\r\n }\r\n },\r\n \"required\": true\r\n },\r\n \"responses\": {\r\n \"200\": {\r\n \"description\": \"Successful Response\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"title\": \"Response Generate Multi Choice Exercises Exercises Generate Multi Choice Post\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/MultiChoiceExercise\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"404\": {\r\n \"description\": \"Not Found\"\r\n },\r\n \"422\": {\r\n \"description\": \"Validation Error\",\r\n \"content\": {\r\n \"application/json\": {\r\n \"schema\": {\r\n \"$ref\": \"#/components/schemas/HTTPValidationError\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"components\": {\r\n \"schemas\": {\r\n \"Body_upload_file_transcribe_upload_post\": {\r\n \"title\": \"Body_upload_file_transcribe_upload_post\",\r\n \"required\": [\r\n \"file\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"file\": {\r\n \"title\": \"File\",\r\n \"type\": \"string\",\r\n \"format\": \"binary\"\r\n }\r\n }\r\n },\r\n \"CalculedSimilarity\": {\r\n \"title\": \"CalculedSimilarity\",\r\n \"required\": [\r\n \"word\",\r\n \"other\",\r\n \"result\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"word\": {\r\n \"title\": \"Word\",\r\n \"type\": \"string\"\r\n },\r\n \"other\": {\r\n \"title\": \"Other\",\r\n \"type\": \"string\"\r\n },\r\n \"result\": {\r\n \"title\": \"Result\",\r\n \"type\": \"number\"\r\n }\r\n }\r\n },\r\n \"ExerciseGenerator\": {\r\n \"title\": \"ExerciseGenerator\",\r\n \"required\": [\r\n \"id\",\r\n \"description\",\r\n \"exercise_type\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"id\": {\r\n \"title\": \"Id\",\r\n \"type\": \"string\"\r\n },\r\n \"description\": {\r\n \"title\": \"Description\",\r\n \"type\": \"string\"\r\n },\r\n \"exercise_type\": {\r\n \"title\": \"Exercise Type\",\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"FindSimiliaritiesResponse\": {\r\n \"title\": \"FindSimiliaritiesResponse\",\r\n \"required\": [\r\n \"result\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"result\": {\r\n \"title\": \"Result\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/CalculedSimilarity\"\r\n }\r\n }\r\n }\r\n },\r\n \"FragmentToken\": {\r\n \"title\": \"FragmentToken\",\r\n \"required\": [\r\n \"text\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"text\": {\r\n \"title\": \"Text\",\r\n \"type\": \"string\"\r\n },\r\n \"is_punct\": {\r\n \"title\": \"Is Punct\",\r\n \"type\": \"boolean\",\r\n \"default\": false\r\n }\r\n }\r\n },\r\n \"GenerationFilters\": {\r\n \"title\": \"GenerationFilters\",\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"generator_ids\": {\r\n \"title\": \"Generator Ids\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"default\": []\r\n }\r\n }\r\n },\r\n \"HTTPValidationError\": {\r\n \"title\": \"HTTPValidationError\",\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"detail\": {\r\n \"title\": \"Detail\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/ValidationError\"\r\n }\r\n }\r\n }\r\n },\r\n \"MultiChoiceExercise\": {\r\n \"title\": \"MultiChoiceExercise\",\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"fragments\": {\r\n \"title\": \"Fragments\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/MultiChoiceFragment\"\r\n },\r\n \"default\": []\r\n }\r\n }\r\n },\r\n \"MultiChoiceFragment\": {\r\n \"title\": \"MultiChoiceFragment\",\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"text\": {\r\n \"title\": \"Text\",\r\n \"type\": \"string\",\r\n \"default\": \"\"\r\n },\r\n \"tokens\": {\r\n \"title\": \"Tokens\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/FragmentToken\"\r\n },\r\n \"default\": []\r\n },\r\n \"options\": {\r\n \"title\": \"Options\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/FragmentToken\"\r\n }\r\n },\r\n \"default\": []\r\n }\r\n }\r\n },\r\n \"Token\": {\r\n \"title\": \"Token\",\r\n \"required\": [\r\n \"text\",\r\n \"pos\",\r\n \"morph\",\r\n \"order\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"text\": {\r\n \"title\": \"Text\",\r\n \"type\": \"string\"\r\n },\r\n \"pos\": {\r\n \"title\": \"Pos\",\r\n \"type\": \"string\"\r\n },\r\n \"morph\": {\r\n \"title\": \"Morph\",\r\n \"type\": \"object\",\r\n \"additionalProperties\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"order\": {\r\n \"title\": \"Order\",\r\n \"type\": \"integer\"\r\n }\r\n }\r\n },\r\n \"TokenizeResponse\": {\r\n \"title\": \"TokenizeResponse\",\r\n \"required\": [\r\n \"tokens\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"tokens\": {\r\n \"title\": \"Tokens\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"$ref\": \"#/components/schemas/Token\"\r\n }\r\n }\r\n }\r\n },\r\n \"TranscribeResponse\": {\r\n \"title\": \"TranscribeResponse\",\r\n \"required\": [\r\n \"language\",\r\n \"text\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"language\": {\r\n \"title\": \"Language\",\r\n \"type\": \"string\"\r\n },\r\n \"text\": {\r\n \"title\": \"Text\",\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"ValidationError\": {\r\n \"title\": \"ValidationError\",\r\n \"required\": [\r\n \"loc\",\r\n \"msg\",\r\n \"type\"\r\n ],\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"loc\": {\r\n \"title\": \"Location\",\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"anyOf\": [\r\n {\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"type\": \"integer\"\r\n }\r\n ]\r\n }\r\n },\r\n \"msg\": {\r\n \"title\": \"Message\",\r\n \"type\": \"string\"\r\n },\r\n \"type\": {\r\n \"title\": \"Error Type\",\r\n \"type\": \"string\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}",
"url": "http://localhost:8000/openapi.json",
"output": null,
"newLineBehavior": "Auto"
}
},
"codeGenerators": {
"openApiToCSharpClient": {
"clientBaseClass": "SwaggerClientBase",
"configurationClass": null,
"generateClientClasses": true,
"generateClientInterfaces": false,
"clientBaseInterface": null,
"injectHttpClient": true,
"disposeHttpClient": true,
"protectedMethods": [],
"generateExceptionClasses": true,
"exceptionClass": "ApiException",
"wrapDtoExceptions": true,
"useHttpClientCreationMethod": false,
"httpClientType": "System.Net.Http.HttpClient",
"useHttpRequestMessageCreationMethod": false,
"useBaseUrl": true,
"generateBaseUrlProperty": false,
"generateSyncMethods": false,
"generatePrepareRequestAndProcessResponseAsAsyncMethods": false,
"exposeJsonSerializerSettings": false,
"clientClassAccessModifier": "internal",
"typeAccessModifier": "public",
"generateContractsOutput": false,
"contractsNamespace": null,
"contractsOutputFilePath": null,
"parameterDateTimeFormat": "s",
"parameterDateFormat": "yyyy-MM-dd",
"generateUpdateJsonSerializerSettingsMethod": true,
"useRequestAndResponseSerializationSettings": false,
"serializeTypeInformation": false,
"queryNullValue": "",
"className": "{controller}Client",
"operationGenerationMode": "MultipleClientsFromFirstTagAndPathSegments",
"additionalNamespaceUsages": [],
"additionalContractNamespaceUsages": [],
"generateOptionalParameters": false,
"generateJsonMethods": true,
"enforceFlagEnums": false,
"parameterArrayType": "System.Collections.Generic.IEnumerable",
"parameterDictionaryType": "System.Collections.Generic.IDictionary",
"responseArrayType": "System.Collections.Generic.ICollection",
"responseDictionaryType": "System.Collections.Generic.IDictionary",
"wrapResponses": false,
"wrapResponseMethods": [],
"generateResponseClasses": true,
"responseClass": "SwaggerResponse",
"namespace": "Genau.NaturalLanguageProcessing.ApiClient",
"requiredPropertiesMustBeDefined": true,
"dateType": "System.DateTimeOffset",
"jsonConverters": null,
"anyType": "object",
"dateTimeType": "System.DateTimeOffset",
"timeType": "System.TimeSpan",
"timeSpanType": "System.TimeSpan",
"arrayType": "System.Collections.Generic.ICollection",
"arrayInstanceType": "System.Collections.ObjectModel.Collection",
"dictionaryType": "System.Collections.Generic.IDictionary",
"dictionaryInstanceType": "System.Collections.Generic.Dictionary",
"arrayBaseType": "System.Collections.ObjectModel.Collection",
"dictionaryBaseType": "System.Collections.Generic.Dictionary",
"classStyle": "Poco",
"jsonLibrary": "NewtonsoftJson",
"generateDefaultValues": true,
"generateDataAnnotations": true,
"excludedTypeNames": [],
"excludedParameterNames": [],
"handleReferences": false,
"generateImmutableArrayProperties": false,
"generateImmutableDictionaryProperties": false,
"jsonSerializerSettingsTransformationMethod": null,
"inlineNamedArrays": false,
"inlineNamedDictionaries": false,
"inlineNamedTuples": true,
"inlineNamedAny": false,
"generateDtoTypes": true,
"generateOptionalPropertiesAsNullable": false,
"generateNullableReferenceTypes": false,
"templateDirectory": null,
"typeNameGeneratorType": null,
"propertyNameGeneratorType": null,
"enumNameGeneratorType": null,
"serviceHost": null,
"serviceSchemes": null,
"output": null,
"newLineBehavior": "Auto"
}
}
}