make casing consistent in route template definition and method parameter declation or else Swagger will not be able to resolve
This commit is contained in:
parent
28b58b9048
commit
5a8ca24566
|
@ -42,7 +42,7 @@ namespace Oqtane.Modules.HtmlText.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET api/<controller>/5
|
// GET api/<controller>/5
|
||||||
[HttpGet("{moduleid}")]
|
[HttpGet("{moduleId}")]
|
||||||
[Authorize(Policy = PolicyNames.ViewModule)]
|
[Authorize(Policy = PolicyNames.ViewModule)]
|
||||||
public Models.HtmlText Get(int moduleId)
|
public Models.HtmlText Get(int moduleId)
|
||||||
{
|
{
|
||||||
|
@ -67,7 +67,7 @@ namespace Oqtane.Modules.HtmlText.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET api/<controller>/5/6
|
// GET api/<controller>/5/6
|
||||||
[HttpGet("{id}/{moduleid}")]
|
[HttpGet("{id}/{moduleId}")]
|
||||||
[Authorize(Policy = PolicyNames.ViewModule)]
|
[Authorize(Policy = PolicyNames.ViewModule)]
|
||||||
public Models.HtmlText Get(int id, int moduleId)
|
public Models.HtmlText Get(int id, int moduleId)
|
||||||
{
|
{
|
||||||
|
@ -103,7 +103,7 @@ namespace Oqtane.Modules.HtmlText.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
// DELETE api/<controller>/5
|
// DELETE api/<controller>/5
|
||||||
[HttpDelete("{id}/{moduleid}")]
|
[HttpDelete("{id}/{moduleId}")]
|
||||||
[Authorize(Policy = PolicyNames.EditModule)]
|
[Authorize(Policy = PolicyNames.EditModule)]
|
||||||
public void Delete(int id, int moduleId)
|
public void Delete(int id, int moduleId)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user