File tree Expand file tree Collapse file tree 4 files changed +20
-12
lines changed Expand file tree Collapse file tree 4 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 4
4
using CoreXCrud . Repositories ;
5
5
using FluentValidation ;
6
6
using Microsoft . AspNetCore . Mvc ;
7
+ using Microsoft . AspNetCore . Authorization ;
7
8
8
9
namespace CoreXCrud . Controllers
9
10
{
10
- [ Route ( "api/[controller]" ) ]
11
- [ ApiController ]
12
- public class OrderDetailsController : ControllerBase
11
+ [ Authorize ] // 📌 JWT ile yetkilendirme ekledik
12
+ [ Route ( "api/[controller]" ) ]
13
+ [ ApiController ]
14
+ public class OrderDetailsController : ControllerBase
13
15
{
14
16
private readonly IUnitOfWork _unitOfWork ;
15
17
private readonly IMapper _mapper ;
Original file line number Diff line number Diff line change 4
4
using CoreXCrud . Repositories ;
5
5
using FluentValidation ;
6
6
using Microsoft . AspNetCore . Mvc ;
7
+ using Microsoft . AspNetCore . Authorization ;
7
8
using Serilog ;
8
9
9
10
namespace CoreXCrud . Controllers
10
11
{
11
- [ Route ( "api/[controller]" ) ]
12
- [ ApiController ]
13
- public class OrdersController : ControllerBase
12
+ [ Authorize ] // 📌 JWT ile yetkilendirme ekledik
13
+ [ Route ( "api/[controller]" ) ]
14
+ [ ApiController ]
15
+ public class OrdersController : ControllerBase
14
16
{
15
17
private readonly IUnitOfWork _unitOfWork ;
16
18
private readonly IMapper _mapper ;
Original file line number Diff line number Diff line change 4
4
using CoreXCrud . Repositories ;
5
5
using FluentValidation ;
6
6
using Microsoft . AspNetCore . Mvc ;
7
+ using Microsoft . AspNetCore . Authorization ;
7
8
8
9
namespace CoreXCrud . Controllers
9
10
{
10
- [ Route ( "api/[controller]" ) ]
11
- [ ApiController ]
12
- public class UsersController : ControllerBase
11
+ [ Authorize ] // 📌 JWT ile yetkilendirme ekledik
12
+ [ Route ( "api/[controller]" ) ]
13
+ [ ApiController ]
14
+ public class UsersController : ControllerBase
13
15
{
14
16
private readonly IUnitOfWork _unitOfWork ;
15
17
private readonly IMapper _mapper ;
Original file line number Diff line number Diff line change @@ -177,9 +177,11 @@ https://localhost:7252/swagger
177
177
178
178
----------
179
179
180
- ## 📊 API Modülleri ve Uç Noktalar
181
-
182
- ### 🧑💼 1️⃣ Kullanıcı Yönetimi (Users)
180
+ ## 📊 API Modülleri ve Uç Noktalar
181
+
182
+ > ** Not:** ` /api/Auth/login ` haricindeki tüm uç noktalar JWT ile korunur. İsteklerinizde ` Authorization: Bearer {token} ` başlığını göndermeniz gerekir.
183
+
184
+ ### 🧑💼 1️⃣ Kullanıcı Yönetimi (Users)
183
185
184
186
Kullanıcı yönetimi API'si, sistemdeki kullanıcıları yönetmek için kullanılır.
185
187
You can’t perform that action at this time.
0 commit comments