You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -49,15 +50,18 @@ public ActionResult<CategoryDto[]> GetAll()
49
50
/// <param name="orderBy">A comma-separated list of fields to order the categories by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
50
51
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the categories. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
55
+
[FromQuery][SwaggerParameter("The maximum number of categories to fetch. If this parameter is not provided, all categories are fetched.")]int?top,
56
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the categories by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/CustomersController.cs
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
usingNorthwindCRUD.Models.DbModels;
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Services;
9
+
usingSwashbuckle.AspNetCore.Annotations;
9
10
10
11
[ApiController]
11
12
[Route("[controller]")]
@@ -49,15 +50,18 @@ public ActionResult<CustomerDto[]> GetAll()
49
50
/// <param name="orderBy">A comma-separated list of fields to order the customers by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
50
51
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the customers. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
55
+
[FromQuery][SwaggerParameter("The maximum number of customers to fetch. If this parameter is not provided, all customers are fetched.")]int?top,
56
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the customers by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/EmployeesController.cs
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
usingNorthwindCRUD.Models.DbModels;
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Services;
9
+
usingSwashbuckle.AspNetCore.Annotations;
9
10
10
11
[ApiController]
11
12
[Route("[controller]")]
@@ -51,15 +52,18 @@ public ActionResult<EmployeeDto[]> GetAll()
51
52
/// <param name="orderBy">A comma-separated list of fields to order the employees by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
52
53
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the employees. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
57
+
[FromQuery][SwaggerParameter("The maximum number of employees to fetch. If this parameter is not provided, all employees are fetched.")]int?top,
58
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the employees by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/OrdersController.cs
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Models.InputModels;
9
9
usingNorthwindCRUD.Services;
10
+
usingSwashbuckle.AspNetCore.Annotations;
10
11
11
12
[ApiController]
12
13
[Route("[controller]")]
@@ -56,15 +57,18 @@ public ActionResult<OrderDto[]> GetAll()
56
57
/// <param name="orderBy">A comma-separated list of fields to order the orders by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
57
58
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the orders. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
62
+
[FromQuery][SwaggerParameter("The maximum number of orders to fetch. If this parameter is not provided, all orders are fetched.")]int?top,
63
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the orders by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
@@ -55,15 +56,18 @@ public ActionResult<ProductDto[]> GetAll()
55
56
/// <param name="orderBy">A comma-separated list of fields to order the products by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
56
57
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the products. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
61
+
[FromQuery][SwaggerParameter("The maximum number of products to fetch. If this parameter is not provided, all products are fetched.")]int?top,
62
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the products by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/RegionsController.cs
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Models.InputModels;
9
9
usingNorthwindCRUD.Services;
10
+
usingSwashbuckle.AspNetCore.Annotations;
10
11
11
12
[ApiController]
12
13
[Route("[controller]")]
@@ -50,15 +51,18 @@ public ActionResult<RegionDto[]> GetAll()
50
51
/// <param name="orderBy">A comma-separated list of fields to order the regions by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
51
52
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the regions. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
56
+
[FromQuery][SwaggerParameter("The maximum number of regions to fetch. If this parameter is not provided, all regions are fetched.")]int?top,
57
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the regions by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/ShippersController.cs
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Models.InputModels;
9
9
usingNorthwindCRUD.Services;
10
+
usingSwashbuckle.AspNetCore.Annotations;
10
11
11
12
[ApiController]
12
13
[Route("[controller]")]
@@ -50,15 +51,18 @@ public ActionResult<ShipperDto[]> GetAll()
50
51
/// <param name="orderBy">A comma-separated list of fields to order the shippers by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
51
52
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the shippers. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
56
+
[FromQuery][SwaggerParameter("The maximum number of shippers to fetch. If this parameter is not provided, all shippers are fetched.")]int?top,
57
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the shippers by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/SuppliersController.cs
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Models.InputModels;
9
9
usingNorthwindCRUD.Services;
10
+
usingSwashbuckle.AspNetCore.Annotations;
10
11
11
12
[ApiController]
12
13
[Route("[controller]")]
@@ -50,15 +51,18 @@ public ActionResult<SupplierDto[]> GetAll()
50
51
/// <param name="orderBy">A comma-separated list of fields to order the suppliers by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
51
52
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the suppliers. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
56
+
[FromQuery][SwaggerParameter("The maximum number of suppliers to fetch. If this parameter is not provided, all suppliers are fetched.")]int?top,
57
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the suppliers by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/TerritoriesController.cs
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Models.InputModels;
9
9
usingNorthwindCRUD.Services;
10
+
usingSwashbuckle.AspNetCore.Annotations;
10
11
11
12
[ApiController]
12
13
[Route("[controller]")]
@@ -52,15 +53,18 @@ public ActionResult<TerritoryDto[]> GetAll()
52
53
/// <param name="orderBy">A comma-separated list of fields to order the territories by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
53
54
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
[FromQuery][SwaggerParameter("The number of records to skip before starting to fetch the territories. If this parameter is not provided, fetching starts from the beginning.")]int?skip,
58
+
[FromQuery][SwaggerParameter("The maximum number of territories to fetch. If this parameter is not provided, all territories are fetched.")]int?top,
59
+
[FromQuery][SwaggerParameter("A comma-separated list of fields to order the territories by, along with the sort direction (e.g., 'field1 asc, field2 desc').")]string?orderBy)
0 commit comments