Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 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 @@ -111,7 +111,7 @@
},
"x-ms-examples": {
"WorkItemConfigurationsCreate": {
"$ref": "./examples/WorkItemConfigsCreate.json"
"$ref": "./examples/WorkItemConfigCreate.json"
}
}
}
Expand Down Expand Up @@ -173,14 +173,91 @@
"responses": {
"200": {
"description": "The work item configuration that was successfully deleted.",
"schema": {}
"schema": { }
}
},
"x-ms-examples": {
"WorkItemConfigurationDelete": {
"$ref": "./examples/WorkItemConfigDelete.json"
}
}
},
"get": {
"description": "Gets specified work item configuration for an Application Insights component.",
"operationId": "WorkItemConfigurations_GetItem",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceNameParameter"
},
{
"$ref": "#/parameters/WorkItemConfigIdParameter"
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/WorkItemConfiguration"
}
}
},
"x-ms-examples": {
"WorkItemConfigurationsGetDefault": {
"$ref": "./examples/WorkItemConfigGet.json"
}
}
},
"patch" : {
"description": "Update a work item configuration for an Application Insights component.",
"operationId": "WorkItemConfigurations_UpdateItem",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceNameParameter"
},
{
"$ref": "#/parameters/WorkItemConfigIdParameter"
},
{
"name": "WorkItemConfigurationProperties",
"description": "Properties that need to be specified to update a work item configuration for this Application Insights component.",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/WorkItemCreateConfiguration"
}
}
],
"responses": {
"200": {
"description": "Successful operation indicating the config updated by this PATCH call.",
"schema": {
"$ref": "#/definitions/WorkItemConfiguration"
}
}
},
"x-ms-examples": {
"WorkItemConfigurationsCreate": {
"$ref": "./examples/WorkItemConfigUpdate.json"
}
}
}
}
},
Expand Down Expand Up @@ -241,7 +318,10 @@
"description": "Boolean indicating validate only"
},
"WorkItemProperties": {
"type": "string",
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Custom work item properties"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
"resourceName": "my-component",
"WorkItemConfigurationProperties": {
"ConnectorId": "d334e2a4-6733-488e-8645-a9fdc1694f41",
"ConnectorDataConfiguration": {
"VSOAccountBaseUrl": "https://testtodelete.visualstudio.com",
"ProjectCollection": "DefaultCollection",
"Project": "todeletefirst",
"ResourceId": "d0662b05-439a-4a1b-840b-33a7f8b42ebf",
"Custom": "{\"/fields/System.WorkItemType\":\"Bug\",\"/fields/System.AreaPath\":\"todeletefirst\",\"/fields/System.AssignedTo\":\"\"}"
},
"ConnectorDataConfiguration": "{\"VSOAccountBaseUrl\":\"https://testtodelete.visualstudio.com\",\"ProjectCollection\":\"DefaultCollection\",\"Project\":\"todeletefirst\",\"ResourceId\":\"d0662b05-439a-4a1b-840b-33a7f8b42ebf\",\"Custom\":\"{\\\"/fields/System.WorkItemType\\\":\\\"Bug\\\",\\\"/fields/System.AreaPath\\\":\\\"todeletefirst\\\",\\\"/fields/System.AssignedTo\\\":\\\"\\\"}\"}",
"WorkItemProperties": [
{
"name": "Title",
Expand All @@ -31,4 +25,4 @@
"body": {}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"responses": {
"200": {
"body": {}
"body": { }
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "my-component",
"workItemConfigId" : "Visual Studio Team Services"
},
"responses": {
"200": {
"body": {
"ConnectorId":"d334e2a4-6733-488e-8645-a9fdc1694f41",
"IsDefault":true,
"ConfigDisplayName":"Visual Studio Team Services",
"Id":"Visual Studio Team Services",
"ConfigProperties":"{\"VSOAccountBaseUrl\":\"https://testtodelete.visualstudio.com\",\"ProjectCollection\":\"DefaultCollection\",\"Project\":\"todeletefirst\",\"ResourceId\":\"d0662b05-439a-4a1b-840b-33a7f8b42ebf\",\"ConfigurationType\":\"Standard\",\"WorkItemType\":\"Bug\",\"AreaPath\":\"todeletefirst\",\"AssignedTo\":\"\"}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2015-05-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "my-component",
"workItemConfigId": "Visual Studio Team Services",
"WorkItemConfigurationProperties": {
"ConnectorId": "d334e2a4-6733-488e-8645-a9fdc1694f41",
"ConnectorDataConfiguration": "{\"VSOAccountBaseUrl\":\"https://testtodelete.visualstudio.com\",\"ProjectCollection\":\"DefaultCollection\",\"Project\":\"todeletefirst\",\"ResourceId\":\"d0662b05-439a-4a1b-840b-33a7f8b42ebf\",\"Custom\":\"{\\\"/fields/System.WorkItemType\\\":\\\"Bug\\\",\\\"/fields/System.AreaPath\\\":\\\"todeletefirst\\\",\\\"/fields/System.AssignedTo\\\":\\\"\\\"}\"}",
"WorkItemProperties": [
{
"name": "Title",
"value": "Validate Only Title"
},
{
"name": "Description",
"value": "Validate Only Description"
}
],
"ValidateOnly": "true"
}
},
"responses": {
"200": {
"body": {
"ConnectorId": "d334e2a4-6733-488e-8645-a9fdc1694f41",
"IsDefault": true,
"ConfigDisplayName": "Visual Studio Team Services",
"Id": "Visual Studio Team Services",
"ConfigProperties": "{\"VSOAccountBaseUrl\":\"https://testtodelete.visualstudio.com\",\"ProjectCollection\":\"DefaultCollection\",\"Project\":\"todeletefirst\",\"ResourceId\":\"d0662b05-439a-4a1b-840b-33a7f8b42ebf\",\"ConfigurationType\":\"Standard\",\"WorkItemType\":\"Bug\",\"AreaPath\":\"todeletefirst\",\"AssignedTo\":\"\"}"
}
}
}
}