Add Swagger and Redoc

Blocked by #1262
This commit is contained in:
Kukks
2020-02-18 10:50:01 +01:00
parent 276a9a95f9
commit 023e64704d
6 changed files with 122 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ namespace BTCPayServer.Controllers
[HttpPost]
[Route("{storeId}/derivations/{cryptoCode}")]
public async Task<IActionResult> AddDerivationScheme(string storeId, DerivationSchemeViewModel vm,
public async Task<IActionResult> AddDerivationScheme(string storeId, [FromBody] DerivationSchemeViewModel vm,
string cryptoCode)
{
vm.CryptoCode = cryptoCode;