Skip to content

Commit 7df0ce5

Browse files
promoishaannatisch
authored andcommitted
Added missing PATCH operation to Api Issue resource (#4440)
1 parent 10ec74f commit 7df0ce5

File tree

4 files changed

+258
-20
lines changed

4 files changed

+258
-20
lines changed

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json

Lines changed: 111 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,6 +2645,65 @@
26452645
}
26462646
}
26472647
},
2648+
"patch": {
2649+
"tags": [
2650+
"ApiIssues"
2651+
],
2652+
"operationId": "ApiIssue_Update",
2653+
"description": "Updates an existing issue for an API.",
2654+
"x-ms-examples": {
2655+
"ApiManagementUpdateApiIssue": {
2656+
"$ref": "./examples/ApiManagementUpdateApiIssue.json"
2657+
}
2658+
},
2659+
"parameters": [
2660+
{
2661+
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
2662+
},
2663+
{
2664+
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
2665+
},
2666+
{
2667+
"$ref": "#/parameters/ApiIdParameter"
2668+
},
2669+
{
2670+
"$ref": "#/parameters/IssueIdParameter"
2671+
},
2672+
{
2673+
"name": "parameters",
2674+
"in": "body",
2675+
"required": true,
2676+
"schema": {
2677+
"$ref": "#/definitions/IssueUpdateContract"
2678+
},
2679+
"description": "Update parameters."
2680+
},
2681+
{
2682+
"name": "If-Match",
2683+
"in": "header",
2684+
"required": false,
2685+
"description": "ETag of the Issue Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.",
2686+
"type": "string"
2687+
},
2688+
{
2689+
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
2690+
},
2691+
{
2692+
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
2693+
}
2694+
],
2695+
"responses": {
2696+
"204": {
2697+
"description": "The Issue was successfully updated."
2698+
},
2699+
"default": {
2700+
"description": "Error response describing why the operation failed.",
2701+
"schema": {
2702+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
2703+
}
2704+
}
2705+
}
2706+
},
26482707
"delete": {
26492708
"tags": [
26502709
"ApiIssues"
@@ -4341,6 +4400,16 @@
43414400
],
43424401
"description": "Issue Contract details."
43434402
},
4403+
"IssueUpdateContract": {
4404+
"properties": {
4405+
"properties": {
4406+
"x-ms-client-flatten": true,
4407+
"$ref": "#/definitions/IssueUpdateContractProperties",
4408+
"description": "Issue entity Update contract properties."
4409+
}
4410+
},
4411+
"description": "Issue update Parameters."
4412+
},
43444413
"IssueContractProperties": {
43454414
"properties": {
43464415
"title": {
@@ -4351,6 +4420,47 @@
43514420
"type": "string",
43524421
"description": "Text describing the issue."
43534422
},
4423+
"userId": {
4424+
"type": "string",
4425+
"description": "A resource identifier for the user created the issue."
4426+
}
4427+
},
4428+
"required": [
4429+
"title",
4430+
"description",
4431+
"userId"
4432+
],
4433+
"allOf": [
4434+
{
4435+
"$ref": "#/definitions/IssueContractBaseProperties"
4436+
}
4437+
],
4438+
"description": "Issue contract Properties."
4439+
},
4440+
"IssueUpdateContractProperties": {
4441+
"properties": {
4442+
"title": {
4443+
"type": "string",
4444+
"description": "The issue title."
4445+
},
4446+
"description": {
4447+
"type": "string",
4448+
"description": "Text describing the issue."
4449+
},
4450+
"userId": {
4451+
"type": "string",
4452+
"description": "A resource identifier for the user created the issue."
4453+
}
4454+
},
4455+
"allOf": [
4456+
{
4457+
"$ref": "#/definitions/IssueContractBaseProperties"
4458+
}
4459+
],
4460+
"description": "Issue contract Update Properties."
4461+
},
4462+
"IssueContractBaseProperties": {
4463+
"properties": {
43544464
"createdDate": {
43554465
"type": "string",
43564466
"format": "date-time",
@@ -4393,21 +4503,12 @@
43934503
]
43944504
}
43954505
},
4396-
"userId": {
4397-
"type": "string",
4398-
"description": "A resource identifier for the user created the issue."
4399-
},
44004506
"apiId": {
44014507
"type": "string",
44024508
"description": "A resource identifier for the API the issue was created for."
44034509
}
44044510
},
4405-
"required": [
4406-
"title",
4407-
"description",
4408-
"userId"
4409-
],
4410-
"description": "Issue contract Properties."
4511+
"description": "Issue contract Base Properties."
44114512
},
44124513
"IssueCommentCollection": {
44134514
"properties": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"serviceName": "apimService1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2018-06-01-preview",
6+
"subscriptionId": "subid",
7+
"issueId": "57d2ef278aa04f0ad01d6cdc",
8+
"apiId": "57d1f7558aa04f15146d9d8a",
9+
"parameters": {
10+
"properties": {
11+
"state": "closed"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"204": { }
17+
}
18+
}

specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2018-01-01/apimapis.json

Lines changed: 111 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,6 +2857,65 @@
28572857
}
28582858
}
28592859
},
2860+
"patch": {
2861+
"tags": [
2862+
"ApiIssues"
2863+
],
2864+
"operationId": "ApiIssue_Update",
2865+
"description": "Updates an existing issue for an API.",
2866+
"x-ms-examples": {
2867+
"ApiManagementUpdateApiIssue": {
2868+
"$ref": "./examples/ApiManagementUpdateApiIssue.json"
2869+
}
2870+
},
2871+
"parameters": [
2872+
{
2873+
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
2874+
},
2875+
{
2876+
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
2877+
},
2878+
{
2879+
"$ref": "#/parameters/ApiIdParameter"
2880+
},
2881+
{
2882+
"$ref": "#/parameters/IssueIdParameter"
2883+
},
2884+
{
2885+
"name": "parameters",
2886+
"in": "body",
2887+
"required": true,
2888+
"schema": {
2889+
"$ref": "#/definitions/IssueUpdateContract"
2890+
},
2891+
"description": "Update parameters."
2892+
},
2893+
{
2894+
"name": "If-Match",
2895+
"in": "header",
2896+
"required": false,
2897+
"description": "ETag of the Issue Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.",
2898+
"type": "string"
2899+
},
2900+
{
2901+
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
2902+
},
2903+
{
2904+
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
2905+
}
2906+
],
2907+
"responses": {
2908+
"204": {
2909+
"description": "The Issue was successfully updated."
2910+
},
2911+
"default": {
2912+
"description": "Error response describing why the operation failed.",
2913+
"schema": {
2914+
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
2915+
}
2916+
}
2917+
}
2918+
},
28602919
"delete": {
28612920
"tags": [
28622921
"ApiIssues"
@@ -4549,6 +4608,16 @@
45494608
],
45504609
"description": "Issue Contract details."
45514610
},
4611+
"IssueUpdateContract": {
4612+
"properties": {
4613+
"properties": {
4614+
"x-ms-client-flatten": true,
4615+
"$ref": "#/definitions/IssueUpdateContractProperties",
4616+
"description": "Issue entity Update contract properties."
4617+
}
4618+
},
4619+
"description": "Issue update Parameters."
4620+
},
45524621
"IssueContractProperties": {
45534622
"properties": {
45544623
"title": {
@@ -4559,6 +4628,47 @@
45594628
"type": "string",
45604629
"description": "Text describing the issue."
45614630
},
4631+
"userId": {
4632+
"type": "string",
4633+
"description": "A resource identifier for the user created the issue."
4634+
}
4635+
},
4636+
"required": [
4637+
"title",
4638+
"description",
4639+
"userId"
4640+
],
4641+
"allOf": [
4642+
{
4643+
"$ref": "#/definitions/IssueContractBaseProperties"
4644+
}
4645+
],
4646+
"description": "Issue contract Properties."
4647+
},
4648+
"IssueUpdateContractProperties": {
4649+
"properties": {
4650+
"title": {
4651+
"type": "string",
4652+
"description": "The issue title."
4653+
},
4654+
"description": {
4655+
"type": "string",
4656+
"description": "Text describing the issue."
4657+
},
4658+
"userId": {
4659+
"type": "string",
4660+
"description": "A resource identifier for the user created the issue."
4661+
}
4662+
},
4663+
"allOf": [
4664+
{
4665+
"$ref": "#/definitions/IssueContractBaseProperties"
4666+
}
4667+
],
4668+
"description": "Issue contract Update Properties."
4669+
},
4670+
"IssueContractBaseProperties": {
4671+
"properties": {
45624672
"createdDate": {
45634673
"type": "string",
45644674
"format": "date-time",
@@ -4601,21 +4711,12 @@
46014711
]
46024712
}
46034713
},
4604-
"userId": {
4605-
"type": "string",
4606-
"description": "A resource identifier for the user created the issue."
4607-
},
46084714
"apiId": {
46094715
"type": "string",
46104716
"description": "A resource identifier for the API the issue was created for."
46114717
}
46124718
},
4613-
"required": [
4614-
"title",
4615-
"description",
4616-
"userId"
4617-
],
4618-
"description": "Issue contract Properties."
4719+
"description": "Issue contract Base Properties."
46194720
},
46204721
"IssueCommentCollection": {
46214722
"properties": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"serviceName": "apimService1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2018-01-01",
6+
"subscriptionId": "subid",
7+
"issueId": "57d2ef278aa04f0ad01d6cdc",
8+
"apiId": "57d1f7558aa04f15146d9d8a",
9+
"parameters": {
10+
"properties": {
11+
"state": "closed"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"204": { }
17+
}
18+
}

0 commit comments

Comments
 (0)