Skip to content

Commit

Permalink
Merge pull request Azure#3 from omarelhariry/amgeo/packaging_apis
Browse files Browse the repository at this point in the history
Add packaging APIs
  • Loading branch information
omarelhariry authored Dec 2, 2018
2 parents 4289fc2 + 62749e2 commit d32164c
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 1 deletion.
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": []
}
}
}

0 comments on commit d32164c

Please sign in to comment.