Skip to content

Commit 3230dec

Browse files
fix(router): Make v2 endpoints follow standard naming conventions (#8630)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
1 parent 841e923 commit 3230dec

24 files changed

+128
-56
lines changed

api-reference/v2/openapi_spec_v2.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"paths": {
23-
"/v2/organization": {
23+
"/v2/organizations": {
2424
"post": {
2525
"tags": [
2626
"Organization"
@@ -67,7 +67,7 @@
6767
]
6868
}
6969
},
70-
"/v2/organization/{id}": {
70+
"/v2/organizations/{id}": {
7171
"get": {
7272
"tags": [
7373
"Organization"
@@ -164,7 +164,7 @@
164164
]
165165
}
166166
},
167-
"/v2/organization/{id}/merchant-accounts": {
167+
"/v2/organizations/{id}/merchant-accounts": {
168168
"get": {
169169
"tags": [
170170
"Organization"
@@ -1220,7 +1220,7 @@
12201220
]
12211221
}
12221222
},
1223-
"/v2/routing-algorithm": {
1223+
"/v2/routing-algorithms": {
12241224
"post": {
12251225
"tags": [
12261226
"Routing"
@@ -1275,7 +1275,7 @@
12751275
]
12761276
}
12771277
},
1278-
"/v2/routing-algorithm/{id}": {
1278+
"/v2/routing-algorithms/{id}": {
12791279
"get": {
12801280
"tags": [
12811281
"Routing"
@@ -2850,7 +2850,7 @@
28502850
]
28512851
}
28522852
},
2853-
"/v2/payment-method-session": {
2853+
"/v2/payment-method-sessions": {
28542854
"post": {
28552855
"tags": [
28562856
"Payment Method Session"
@@ -2897,7 +2897,7 @@
28972897
]
28982898
}
28992899
},
2900-
"/v2/payment-method-session/{id}": {
2900+
"/v2/payment-method-sessions/{id}": {
29012901
"get": {
29022902
"tags": [
29032903
"Payment Method Session"
@@ -2994,7 +2994,7 @@
29942994
]
29952995
}
29962996
},
2997-
"/v2/payment-method-session/{id}/list-payment-methods": {
2997+
"/v2/payment-method-sessions/{id}/list-payment-methods": {
29982998
"get": {
29992999
"tags": [
30003000
"Payment Method Session"
@@ -3035,7 +3035,7 @@
30353035
]
30363036
}
30373037
},
3038-
"/v2/payment-method-session/{id}/update-saved-payment-method": {
3038+
"/v2/payment-method-sessions/{id}/update-saved-payment-method": {
30393039
"put": {
30403040
"tags": [
30413041
"Payment Method Session"
@@ -3098,7 +3098,7 @@
30983098
]
30993099
}
31003100
},
3101-
"/v2/payment-method-session/{id}/confirm": {
3101+
"/v2/payment-method-sessions/{id}/confirm": {
31023102
"post": {
31033103
"tags": [
31043104
"Payment Method Session"
@@ -3241,7 +3241,7 @@
32413241
]
32423242
}
32433243
},
3244-
"/v2/refunds/{id}/update_metadata": {
3244+
"/v2/refunds/{id}/update-metadata": {
32453245
"put": {
32463246
"tags": [
32473247
"Refunds"
@@ -3377,7 +3377,7 @@
33773377
]
33783378
}
33793379
},
3380-
"/v2/process_tracker/revenue_recovery_workflow/{revenue_recovery_id}": {
3380+
"/v2/process-trackers/revenue-recovery-workflow/{revenue_recovery_id}": {
33813381
"get": {
33823382
"tags": [
33833383
"Revenue Recovery"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: post /v2/organization
2+
openapi: post /v2/organizations
33
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: get /v2/organization/{id}/merchant-accounts
2+
openapi: get /v2/organizations/{id}/merchant-accounts
33
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: get /v2/organization/{id}
2+
openapi: get /v2/organizations/{id}
33
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: put /v2/organization/{id}
2+
openapi: put /v2/organizations/{id}
33
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: post /v2/payment-method-session/{id}/confirm
2+
openapi: post /v2/payment-method-sessions/{id}/confirm
33
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: post /v2/payment-method-session
2+
openapi: post /v2/payment-method-sessions
33
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: delete /v2/payment-method-session/{id}
2+
openapi: delete /v2/payment-method-sessions/{id}
33
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: get /v2/payment-method-session/{id}/list-payment-methods
2+
openapi: get /v2/payment-method-sessions/{id}/list-payment-methods
33
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
openapi: get /v2/payment-method-session/{id}
2+
openapi: get /v2/payment-method-sessions/{id}
33
---

0 commit comments

Comments
 (0)