7.5 KiB
This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ before writing any code. Heed deprecation notices.
User List
curl -X 'GET'
'http://localhost:8080/api/v1/admin/users?page=1&limit=10'
-H 'accept: application/json'
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwidXNlcl9pZCI6IjEiLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwidXNlcm5hbWUiOiJiZXloYW5vIiwiZXhwIjoxNzc2MjY0MTEzLCJpYXQiOjE3NzYyNjMyMTMsImp0aSI6Ijk5ODZmYjMzYWFhMzc5ZDRhODA3NjVhZTg1MjMwODcxIn0.wvYGM57tE9tV1MVGsjJ-nK8GXbzRXbPNbYKFHjN2_Ic'
Request URL
http://localhost:8080/api/v1/admin/users?page=1&limit=10
Server response Code Details 200 Response body Download
{ "items": [ { "id": 1, "username": "beyhano", "email": "beyhan@beyhan.dev", "email_verified": false, "is_active": true, "is_admin": true, "created_at": "2026-04-11T22:49:35+03:00", "updated_at": "2026-04-11T23:15:42+03:00" } ], "meta": { "page": 1, "limit": 10, "total": 1 } }
Response headers
access-control-allow-headers: Authorization,Content-Type access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS access-control-allow-origin: * content-length: 246 content-type: application/json; charset=utf-8 date: Wed,15 Apr 2026 14:38:29 GMT x-ratelimit-limit: 120 x-ratelimit-remaining: 112 x-ratelimit-reset: 40
Yeni Kullanıcı
curl -X 'POST'
'http://localhost:8080/api/v1/admin/users'
-H 'accept: application/json'
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwidXNlcl9pZCI6IjEiLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwidXNlcm5hbWUiOiJiZXloYW5vIiwiZXhwIjoxNzc2MjY0MTEzLCJpYXQiOjE3NzYyNjMyMTMsImp0aSI6Ijk5ODZmYjMzYWFhMzc5ZDRhODA3NjVhZTg1MjMwODcxIn0.wvYGM57tE9tV1MVGsjJ-nK8GXbzRXbPNbYKFHjN2_Ic'
-H 'Content-Type: application/json'
-d '{
"confirm_password": "123456",
"email": "asde@asd.com",
"is_active": true,
"is_admin": true,
"password": "123456",
"username": "1234"
}'
Request URL
http://localhost:8080/api/v1/admin/users
Server response Code Details 201 Response body Download
{ "id": 2, "username": "1234", "email": "asde@asd.com", "email_verified": false, "is_active": true, "is_admin": true, "created_at": "2026-04-15T17:39:39+03:00", "updated_at": "2026-04-15T17:39:39+03:00" }
Response headers
access-control-allow-headers: Authorization,Content-Type access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS access-control-allow-origin: * content-length: 187 content-type: application/json; charset=utf-8 date: Wed,15 Apr 2026 14:39:39 GMT x-ratelimit-limit: 120 x-ratelimit-remaining: 119 x-ratelimit-reset: 59
User Detey
curl -X 'GET'
'http://localhost:8080/api/v1/admin/users/2'
-H 'accept: application/json'
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwidXNlcl9pZCI6IjEiLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwidXNlcm5hbWUiOiJiZXloYW5vIiwiZXhwIjoxNzc2MjY0MTEzLCJpYXQiOjE3NzYyNjMyMTMsImp0aSI6Ijk5ODZmYjMzYWFhMzc5ZDRhODA3NjVhZTg1MjMwODcxIn0.wvYGM57tE9tV1MVGsjJ-nK8GXbzRXbPNbYKFHjN2_Ic'
Request URL
http://localhost:8080/api/v1/admin/users/2
Server response Code Details 200 Response body Download
{ "id": 2, "username": "1234", "email": "asde@asd.com", "email_verified": false, "is_active": true, "is_admin": true, "created_at": "2026-04-15T17:39:39+03:00", "updated_at": "2026-04-15T17:39:39+03:00" }
Response headers
access-control-allow-headers: Authorization,Content-Type access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS access-control-allow-origin: * content-length: 187 content-type: application/json; charset=utf-8 date: Wed,15 Apr 2026 14:40:13 GMT x-ratelimit-limit: 120 x-ratelimit-remaining: 118 x-ratelimit-reset: 25
User Update
curl -X 'PUT'
'http://localhost:8080/api/v1/admin/users/2'
-H 'accept: application/json'
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwidXNlcl9pZCI6IjEiLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwidXNlcm5hbWUiOiJiZXloYW5vIiwiZXhwIjoxNzc2MjY0MTEzLCJpYXQiOjE3NzYyNjMyMTMsImp0aSI6Ijk5ODZmYjMzYWFhMzc5ZDRhODA3NjVhZTg1MjMwODcxIn0.wvYGM57tE9tV1MVGsjJ-nK8GXbzRXbPNbYKFHjN2_Ic'
-H 'Content-Type: application/json'
-d '{
"confirm_password": "123456",
"email": "asde@asd.com",
"is_active": true,
"is_admin": true,
"password": "123456",
"username": "1234"
}'
Request URL
http://localhost:8080/api/v1/admin/users/2
Server response Code Details 200 Response body Download
{ "id": 2, "username": "1234", "email": "asde@asd.com", "email_verified": false, "is_active": true, "is_admin": true, "created_at": "2026-04-15T17:39:39+03:00", "updated_at": "2026-04-15T17:40:48+03:00" }
Response headers
access-control-allow-headers: Authorization,Content-Type access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS access-control-allow-origin: * content-length: 187 content-type: application/json; charset=utf-8 date: Wed,15 Apr 2026 14:40:48 GMT x-ratelimit-limit: 120 x-ratelimit-remaining: 119 x-ratelimit-reset: 59
User Delete
curl -X 'DELETE'
'http://localhost:8080/api/v1/admin/users/2'
-H 'accept: application/json'
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwidXNlcl9pZCI6IjEiLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwidXNlcm5hbWUiOiJiZXloYW5vIiwiZXhwIjoxNzc2MjY0MTEzLCJpYXQiOjE3NzYyNjMyMTMsImp0aSI6Ijk5ODZmYjMzYWFhMzc5ZDRhODA3NjVhZTg1MjMwODcxIn0.wvYGM57tE9tV1MVGsjJ-nK8GXbzRXbPNbYKFHjN2_Ic'
Request URL
http://localhost:8080/api/v1/admin/users/2
Server response Code Details 200 Response body Download
{ "message": "kullanici silindi" }
Response headers
access-control-allow-headers: Authorization,Content-Type access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS access-control-allow-origin: * content-length: 31 content-type: application/json; charset=utf-8 date: Wed,15 Apr 2026 14:41:18 GMT x-ratelimit-limit: 120 x-ratelimit-remaining: 117 x-ratelimit-reset: 30
Responses
User Status change
curl -X 'PATCH'
'http://localhost:8080/api/v1/admin/users/2/status'
-H 'accept: application/json'
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwidXNlcl9pZCI6IjEiLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwidXNlcm5hbWUiOiJiZXloYW5vIiwiZXhwIjoxNzc2MjY0MTEzLCJpYXQiOjE3NzYyNjMyMTMsImp0aSI6Ijk5ODZmYjMzYWFhMzc5ZDRhODA3NjVhZTg1MjMwODcxIn0.wvYGM57tE9tV1MVGsjJ-nK8GXbzRXbPNbYKFHjN2_Ic'
-H 'Content-Type: application/json'
-d '{
"is_active": true
}'
Request URL
http://localhost:8080/api/v1/admin/users/2/status
Server response Code Details 200 Response body Download
{ "id": 2, "username": "1234", "email": "asde@asd.com", "email_verified": false, "is_active": true, "is_admin": true, "created_at": "2026-04-15T17:39:39+03:00", "updated_at": "2026-04-15T17:41:02+03:00" }
Response headers
access-control-allow-headers: Authorization,Content-Type access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS access-control-allow-origin: * content-length: 187 content-type: application/json; charset=utf-8 date: Wed,15 Apr 2026 14:41:02 GMT x-ratelimit-limit: 120 x-ratelimit-remaining: 118 x-ratelimit-reset: 46