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

Add packaging APIs #3

Merged
merged 1 commit into from
Dec 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7574,7 +7574,7 @@
"post": {
"description": "Assigns an azure account to the application.",
"operationId": "5be32228e8473de116325515",
"summary": "apps - Assign a LUIS azure accounts to an application",
"summary": "apps - Assign a LUIS azure account to an application",
"parameters": [
{
"$ref": "#/parameters/AppIdInPath"
Expand Down Expand Up @@ -7768,6 +7768,98 @@
}
}
}
},
"/package/{appId}/slot/{slotName}/gzip": {
"get": {
"description": "Packages published LUIS application as GZip.",
"operationId": "apps-packagepublishedapplicationasgzip",
"summary": "package - Gets published LUIS application package in binary stream GZip format",
"parameters": [
{
"$ref": "#/parameters/AppIdInPath"
},
{
"$ref": "#/parameters/SlotNameInPath"
}
],
"responses": {
"200": {
"description": "The GZip binary stream of the published application package.",
"schema": {
"$ref": "#/definitions/PackageBinaryStreamObject"
}
},
"429": {
"$ref": "#/responses/429"
},
"400": {
"description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"401": {
"$ref": "#/responses/401"
},
"403": {
"$ref": "#/responses/403"
}
},
"produces": [
"application/octet-stream"
],
"x-ms-examples": {
"Successful Get published application package request": {
"$ref": "./examples/package/SuccessfulGetTrainedApplicationPackageRequest.json"
}
}
}
},
"/package/{appId}/versions/{versionId}/gzip": {
"get": {
"description": "Packages trained LUIS application as GZip.",
"operationId": "apps-packagetrainedapplicationasgzip",
"summary": "package - Gets trained LUIS application package in binary stream GZip format",
"parameters": [
{
"$ref": "#/parameters/AppIdInPath"
},
{
"$ref": "#/parameters/VersionIdInPath"
}
],
"responses": {
"200": {
"description": "The GZip binary stream of the trained application package.",
"schema": {
"$ref": "#/definitions/PackageBinaryStreamObject"
}
},
"429": {
"$ref": "#/responses/429"
},
"400": {
"description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"401": {
"$ref": "#/responses/401"
},
"403": {
"$ref": "#/responses/403"
}
},
"produces": [
"application/octet-stream"
],
"x-ms-examples": {
"Successful Get published application package request": {
"$ref": "./examples/package/SuccessfulGetPublishedApplicationPackageRequest.json"
}
}
}
}
},
"responses": {
Expand Down Expand Up @@ -10087,6 +10179,15 @@
"type": "string"
}
}
},
"PackageBinaryStreamObject": {
"description": "The binary stream of the application package.",
"type": "array",
"items": {
"type": "byte"
},
"required": [],
"properties": { }
}
},
"parameters": {
Expand Down Expand Up @@ -10134,6 +10235,15 @@
"format": "uuid",
"x-ms-parameter-location": "method"
},
"SlotNameInPath": {
"name": "slotName",
"in": "path",
"description": "The publishing slot name.",
"required": true,
"type": "string",
"format": "uuid",
"x-ms-parameter-location": "method"
},
"SkipInPath": {
"name": "skip",
"in": "query",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
"appId": "363187f1-c573-46b3-bc4c-ae01d686e68e",
"slotName": "PRODUCTION"
},
"responses": {
"200": {
"headers": {},
"body": []
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
"appId": "363187f1-c573-46b3-bc4c-ae01d686e68e",
"versionId": "0.1"
},
"responses": {
"200": {
"headers": {},
"body": []
}
}
}