Skip to content

Commit 04efa7d

Browse files
authored
[Microsoft.Capacity] Fixing API paths (#20671)
* [Microsoft.Capacity] Fixing API paths * update * update example
1 parent 543a51d commit 04efa7d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/CalculateRefund.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"parameters": {
33
"api-version": "2022-03-01",
4+
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
45
"body": {
56
"id": "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004",
67
"properties": {

specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Return.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"parameters": {
33
"api-version": "2022-03-01",
4+
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
45
"body": {
56
"properties": {
67
"sessionId": "10000000-aaaa-bbbb-cccc-200000000000",

specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/reservations.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@
726726
}
727727
}
728728
},
729-
"/providers/Microsoft.Capacity/calculateRefund": {
729+
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/calculateRefund": {
730730
"post": {
731731
"summary": "Calculate the refund amount of a reservation order.",
732732
"description": "Calculate price for returning `Reservations` if there are no policy errors.\n",
@@ -737,6 +737,9 @@
737737
}
738738
},
739739
"parameters": [
740+
{
741+
"$ref": "#/parameters/ReservationOrderIdParameter"
742+
},
740743
{
741744
"$ref": "#/parameters/ApiVersionParameter"
742745
},
@@ -763,7 +766,7 @@
763766
}
764767
}
765768
},
766-
"/providers/Microsoft.Capacity/return": {
769+
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/return": {
767770
"post": {
768771
"summary": "Return a reservation.",
769772
"description": "Return a reservation.",
@@ -774,6 +777,9 @@
774777
}
775778
},
776779
"parameters": [
780+
{
781+
"$ref": "#/parameters/ReservationOrderIdParameter"
782+
},
777783
{
778784
"$ref": "#/parameters/ApiVersionParameter"
779785
},

0 commit comments

Comments
 (0)