Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[formrecognizer] some edits for code gen #8814

Merged
merged 10 commits into from
Apr 7, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "trainRequest",
Expand Down Expand Up @@ -74,52 +77,6 @@
"$ref": "./examples/TrainBatchWithSubFolders.json"
}
}
},
"get": {
"summary": "List Custom Models",
"description": "Get information about all custom models",
"operationId": "GetCustomModels",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "op",
"in": "query",
"description": "Specify whether to return summary or full list of models.",
"required": false,
"default": "full",
"type": "string",
"enum": [
"full",
"summary"
]
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Models"
}
},
"default": {
"description": "Response entity accompanying non-successful responses containing additional details about the error.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink",
"itemName": "modelList"
},
"x-ms-examples": {
"List custom models": {
"$ref": "./examples/GetModels.json"
}
}
}
},
"/custom/models/{modelId}": {
Expand Down Expand Up @@ -218,6 +175,9 @@
"image/png",
"image/tiff"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "modelId",
Expand Down Expand Up @@ -261,7 +221,8 @@
"Analyze form with custom model": {
"$ref": "./examples/AnalyzeBatch.json"
}
}
},
"x-ms-long-running-operation": true
}
},
"/custom/models/{modelId}/analyzeResults/{resultId}": {
Expand Down Expand Up @@ -362,7 +323,8 @@
"Analyze receipt": {
"$ref": "./examples/ReceiptsBatch.json"
}
}
},
"x-ms-long-running-operation": true
}
},
"/prebuilt/receipt/analyzeResults/{resultId}": {
Expand Down Expand Up @@ -446,7 +408,8 @@
"Analyze layout": {
"$ref": "./examples/LayoutBatch.json"
}
}
},
"x-ms-long-running-operation": true
}
},
"/layout/analyzeResults/{resultId}": {
Expand Down Expand Up @@ -490,6 +453,100 @@
}
}
},
"x-ms-paths": {
"/custom/models?op=full": {
"get": {
"summary": "List Custom Models",
"description": "Get information about all custom models",
"operationId": "ListCustomModels",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "op",
"in": "query",
"description": "Specify whether to return summary or full list of models.",
"required": false,
"default": "full",
"type": "string",
"enum": [
"full",
"summary"
]
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Models"
}
},
"default": {
"description": "Response entity accompanying non-successful responses containing additional details about the error.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink",
"itemName": "modelList"
},
"x-ms-examples": {
"List custom models": {
"$ref": "./examples/GetModels.json"
}
}
}
},
"/custom/models?op=summary": {
"get": {
"summary": "Get Custom Models",
"description": "Get information about all custom models",
"operationId": "GetCustomModels",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "op",
"in": "query",
"description": "Specify whether to return summary or full list of models.",
"required": false,
"default": "summary",
"type": "string",
"enum": [
"full",
"summary"
]
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Models"
}
},
"default": {
"description": "Response entity accompanying non-successful responses containing additional details about the error.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get models summary": {
"$ref": "./examples/GetModels.json"
}
}
}
}
},
"definitions": {
"OperationStatus": {
"type": "string",
Expand Down Expand Up @@ -626,10 +683,6 @@
}
}
},
"SourceDataStream": {
"description": "A PDF document, image (jpg/png/tiff), or JSON file to analyze.",
"type": "object"
},
"ModelInfo": {
"description": "Basic custom model information.",
"type": "object",
Expand Down Expand Up @@ -693,7 +746,7 @@
"x-nullable": false
},
"limit": {
"description": "Max number of models that can be trained for this subscription.",
"description": "Max number of models that can be trained for this account.",
"type": "integer",
"x-nullable": false
},
Expand Down Expand Up @@ -1218,6 +1271,7 @@
},
"DocumentResult": {
"description": "A set of extracted fields corresponding to the input document.",
"type": "object",
"required": [
"docType",
"pageRange",
Expand Down Expand Up @@ -1266,13 +1320,11 @@
"valueDate": {
"description": "Date value.",
"type": "string",
"format": "date-time",
"x-nullable": false
},
"valueTime": {
"description": "Time value.",
"type": "string",
"format": "date-time",
"x-nullable": false
},
"valuePhoneNumber": {
Expand Down Expand Up @@ -1373,7 +1425,7 @@
"x-ms-parameter-location": "method",
"in": "body",
"schema": {
"$ref": "#/definitions/SourceDataStream"
"$ref": "#/definitions/SourcePath"
}
}
}
Expand Down