Skip to content

Commit 4151ec8

Browse files
committed
almost final
1 parent df65d3a commit 4151ec8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Api/Endpoints/V1/Products/Create.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public ProductsController(Database db)
2121
}
2222

2323
/// <summary>
24-
/// Add product by sending valid JWT token provided through . 'api/{culture}/v1/Login/Admin'
24+
/// Add product by sending valid JWT token provided through only 'api/{culture}/v1/Login/Admin' endpoint
2525
/// </summary>
2626
/// <param name="product">Enter the product</param>
2727
/// <param name="culture">Enter the culture</param>

src/Api/Endpoints/V1/Products/Delete.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public partial class ProductsController
1414
private readonly bool deleted = rowCountDeleted != 1;
1515

1616
/// <summary>
17-
/// Delete product by sending valid JWT token provided through . 'api/{culture}/v1/Login/Admin'
17+
/// Delete product by sending valid JWT token provided through only 'api/{culture}/v1/Login/Admin' endpoint
1818
/// </summary>
1919
/// <param name="id">Enter the product id</param>
2020
/// <param name="culture"></param>

src/Api/Endpoints/V1/Products/Read.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Xero.Demo.Api.Endpoints.V1.Products
1515
public partial class ProductsController
1616
{
1717
/// <summary>
18-
/// Get products by sending valid JWT token provided through . 'api/{culture}/v1/Login/Reader'
18+
/// Get products by sending valid JWT token provided through 'api/{culture}/v1/Login/Admin' or 'api/en-US/v1/Login/Editor' or 'api/{culture}/v1/Login/Reader'
1919
/// </summary>
2020
/// <returns>Returns list of products</returns>
2121
[Authorize(Policy = Policy.ShouldBeAReader)]
@@ -43,7 +43,7 @@ public async Task<IActionResult> GetAsync(string culture = "en-US")
4343
}
4444

4545
/// <summary>
46-
/// Get product by id by sending valid JWT token provided through . 'api/{culture}/v1/Login/Reader'
46+
/// Get product by id by sending valid JWT token provided through 'api/{culture}/v1/Login/Admin' or 'api/en-US/v1/Login/Editor' or 'api/{culture}/v1/Login/Reader'
4747
/// </summary>
4848
/// <param name="id">Enter the id of product</param>
4949
/// <returns>Returns list of products</returns>

src/Api/Endpoints/V1/Products/Update.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Xero.Demo.Api.Endpoints.V1.Products
1212
public partial class ProductsController
1313
{
1414
/// <summary>
15-
/// Get products by sending valid JWT token provided through . 'api/en-US/v1/Login/Editor'
15+
/// Get products by sending valid JWT token provided wither through 'api/en-US/v1/Login/Admin' or 'api/en-US/v1/Login/Editor'
1616
/// </summary>
1717
/// <param name="id">Enter the product id</param>
1818
/// <param name="product">Enter the product</param>

0 commit comments

Comments
 (0)