swagger order

This commit is contained in:
Ravi Prasad
2025-07-01 18:24:12 -05:00
parent 637d3e4aba
commit 3d93e26a71
7 changed files with 49 additions and 8 deletions
+18 -4
View File
@@ -98,7 +98,8 @@ const docTemplate = `{
}
}
}
}
},
"x-order": 2
}
},
"/api/playershotchart": {
@@ -183,7 +184,8 @@ const docTemplate = `{
}
}
}
}
},
"x-order": 3
}
},
"/api/playertotals": {
@@ -268,7 +270,8 @@ const docTemplate = `{
}
}
}
}
},
"x-order": 1
}
}
},
@@ -455,7 +458,18 @@ const docTemplate = `{
}
}
}
}
},
"tags": [
{
"name": "PlayerTotals"
},
{
"name": "PlayerStats"
},
{
"name": "PlayerShotChart"
}
]
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
+18 -4
View File
@@ -94,7 +94,8 @@
}
}
}
}
},
"x-order": 2
}
},
"/api/playershotchart": {
@@ -179,7 +180,8 @@
}
}
}
}
},
"x-order": 3
}
},
"/api/playertotals": {
@@ -264,7 +266,8 @@
}
}
}
}
},
"x-order": 1
}
}
},
@@ -451,5 +454,16 @@
}
}
}
}
},
"tags": [
{
"name": "PlayerTotals"
},
{
"name": "PlayerStats"
},
{
"name": "PlayerShotChart"
}
]
}
+7
View File
@@ -185,6 +185,7 @@ paths:
summary: Get player advanced stats
tags:
- PlayerStats
x-order: 2
/api/playershotchart:
get:
consumes:
@@ -242,6 +243,7 @@ paths:
summary: Get shot-chart data
tags:
- PlayerShotChart
x-order: 3
/api/playertotals:
get:
consumes:
@@ -299,6 +301,11 @@ paths:
summary: Get player total stats
tags:
- PlayerTotals
x-order: 1
schemes:
- https
swagger: "2.0"
tags:
- name: PlayerTotals
- name: PlayerStats
- name: PlayerShotChart