mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Order swagger's docs tags
This commit is contained in:
@@ -135,6 +135,12 @@ namespace BTCPayServer.Controllers
|
|||||||
var servers = new JArray();
|
var servers = new JArray();
|
||||||
servers.Add(new JObject(new JProperty("url", HttpContext.Request.GetAbsoluteRoot())));
|
servers.Add(new JObject(new JProperty("url", HttpContext.Request.GetAbsoluteRoot())));
|
||||||
json["servers"] = servers;
|
json["servers"] = servers;
|
||||||
|
var tags = (JArray)json["tags"];
|
||||||
|
json["tags"] = new JArray(tags
|
||||||
|
.Select(o => (name: ((JObject)o)["name"].Value<string>(), o))
|
||||||
|
.OrderBy(o => o.name)
|
||||||
|
.Select(o => o.o)
|
||||||
|
.ToArray());
|
||||||
return Json(json);
|
return Json(json);
|
||||||
}
|
}
|
||||||
[Route("docs")]
|
[Route("docs")]
|
||||||
|
|||||||
@@ -92,5 +92,10 @@
|
|||||||
"security": []
|
"security": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"name": "Authorization"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -554,7 +554,7 @@
|
|||||||
},
|
},
|
||||||
"CreatePayoutRequest": {
|
"CreatePayoutRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties":{
|
"properties": {
|
||||||
"destination": {
|
"destination": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
|
"example": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
|
||||||
@@ -571,7 +571,7 @@
|
|||||||
"example": "BTC",
|
"example": "BTC",
|
||||||
"description": "The payment method of the payout"
|
"description": "The payment method of the payout"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PayoutData": {
|
"PayoutData": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -689,5 +689,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"name": "Pull payments (Management)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Pull payments (Public)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Pull payments payout (Public)"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"/api/v1/stores/{storeId}/payment-methods/LNURL": {
|
"/api/v1/stores/{storeId}/payment-methods/LNURL": {
|
||||||
"get": {
|
"get": {
|
||||||
"tags": [
|
"tags": [
|
||||||
"Store Payment Methods (LNURL)"
|
"Store Payment Methods (LNURL Pay)"
|
||||||
],
|
],
|
||||||
"summary": "Get store LNURL payment methods",
|
"summary": "Get store LNURL payment methods",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
|||||||
Reference in New Issue
Block a user