first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:07:47 +03:00
commit 5285a0dd86
522 changed files with 41738 additions and 0 deletions

0
content/LoginRegiter.md Normal file
View File

654
content/admin_cors.md Normal file
View File

@@ -0,0 +1,654 @@
White List
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/cors/whitelist' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/cors/whitelist
Server response
Code Details
200
Response body
Download
{
"count": 3,
"items": [
{
"ID": 3,
"CreatedAt": "2026-02-15T07:43:24.505+03:00",
"UpdatedAt": "2026-02-15T07:43:24.505+03:00",
"DeletedAt": null,
"origin": "http://localhost:8080",
"description": "default seeded whitelist",
"is_active": true,
"created_by": "seed"
},
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:24.488+03:00",
"UpdatedAt": "2026-02-15T07:43:24.488+03:00",
"DeletedAt": null,
"origin": "http://localhost:5173",
"description": "default seeded whitelist",
"is_active": true,
"created_by": "seed"
},
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:24.473+03:00",
"UpdatedAt": "2026-02-15T07:43:24.473+03:00",
"DeletedAt": null,
"origin": "http://localhost:3000",
"description": "default seeded whitelist",
"is_active": true,
"created_by": "seed"
}
]
}
Response headers
content-length: 696
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:36:01 GMT
whitelist add
curl -X 'POST' \
'http://localhost:8080/api/v1/admin/cors/whitelist' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E' \
-H 'Content-Type: application/json' \
-d '{
"description": "test",
"is_active": true,
"origin": "http://test.com"
}'
Request URL
http://localhost:8080/api/v1/admin/cors/whitelist
Server response
Code Details
201
Response body
Download
{
"item": {
"ID": 4,
"CreatedAt": "2026-02-15T20:37:14.89782Z",
"UpdatedAt": "2026-02-15T20:37:14.89782Z",
"DeletedAt": null,
"origin": "http://test.com",
"description": "test",
"is_active": true,
"created_by": "beyhan@beyhan.dev"
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 214
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:37:14 GMT
vary: Origin
whitelist Update
curl -X 'PUT' \
'http://localhost:8080/api/v1/admin/cors/whitelist/4' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E' \
-H 'Content-Type: application/json' \
-d '{
"description": "Test",
"is_active": true,
"origin": "http://updatetest.com"
}'
Request URL
http://localhost:8080/api/v1/admin/cors/whitelist/4
Server response
Code Details
200
Response body
Download
{
"item": {
"ID": 4,
"CreatedAt": "2026-02-15T23:37:14.897+03:00",
"UpdatedAt": "2026-02-15T20:38:29.294829Z",
"DeletedAt": null,
"origin": "http://updatetest.com",
"description": "Test",
"is_active": true,
"created_by": "beyhan@beyhan.dev"
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 224
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:38:28 GMT
vary: Origin
whitelist delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/admin/cors/whitelist/4' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/cors/whitelist/4
Server response
Code Details
200
Response body
Download
{
"id": 4,
"message": "soft deleted"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 33
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:39:22 GMT
vary: Origin
whitelist hard delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/admin/cors/whitelist/4/hard' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/cors/whitelist/4/hard
Server response
Code Details
200
Response body
Download
{
"id": 4,
"message": "hard deleted"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 33
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:40:08 GMT
vary: Origin
########################################################################
Blacklist add
curl -X 'POST' \
'http://localhost:8080/api/v1/admin/cors/blacklist' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E' \
-H 'Content-Type: application/json' \
-d '{
"is_active": true,
"origin": "http://post.test.com",
"reason": "spamer"
}'
Request URL
http://localhost:8080/api/v1/admin/cors/blacklist
Server response
Code Details
201
Response body
Download
{
"item": {
"ID": 1,
"CreatedAt": "2026-02-15T20:42:27.229052Z",
"UpdatedAt": "2026-02-15T20:42:27.229052Z",
"DeletedAt": null,
"origin": "http://post.test.com",
"reason": "spamer",
"is_active": true,
"created_by": "beyhan@beyhan.dev"
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 218
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:42:26 GMT
vary: Origin
Blacklist List
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/cors/blacklist' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/cors/blacklist
Server response
Code Details
200
Response body
Download
{
"count": 1,
"items": [
{
"ID": 1,
"CreatedAt": "2026-02-15T23:42:27.229+03:00",
"UpdatedAt": "2026-02-15T23:42:27.229+03:00",
"DeletedAt": null,
"origin": "http://post.test.com",
"reason": "spamer",
"is_active": true,
"created_by": "beyhan@beyhan.dev"
}
]
}
Response headers
content-length: 235
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:43:26 GMT
Blacklist Update
curl -X 'PUT' \
'http://localhost:8080/api/v1/admin/cors/blacklist/1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E' \
-H 'Content-Type: application/json' \
-d '{
"is_active": true,
"origin": "http://update.test.com",
"reason": "Sapammer Update"
}'
Request URL
http://localhost:8080/api/v1/admin/cors/blacklist/1
Server response
Code Details
200
Response body
Download
{
"item": {
"ID": 1,
"CreatedAt": "2026-02-15T23:42:27.229+03:00",
"UpdatedAt": "2026-02-15T20:44:35.812266Z",
"DeletedAt": null,
"origin": "http://update.test.com",
"reason": "Sapammer Update",
"is_active": true,
"created_by": "beyhan@beyhan.dev"
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 231
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:44:35 GMT
vary: Origin
Blacklist Delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/admin/cors/blacklist/1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/cors/blacklist/1
Server response
Code Details
200
Response body
Download
{
"id": 1,
"message": "soft deleted"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 33
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:45:14 GMT
vary: Origin
Blacklist Hard Delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/admin/cors/blacklist/1/hard' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/cors/blacklist/1/hard
Server response
Code Details
200
Response body
Download
{
"id": 1,
"message": "hard deleted"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 33
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:45:40 GMT
vary: Origin
Rate Limit List
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/rate-limit' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/rate-limit
Server response
Code Details
200
Response body
Download
{
"count": 2,
"items": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:24.453+03:00",
"UpdatedAt": "2026-02-15T07:43:24.453+03:00",
"DeletedAt": null,
"name": "login",
"description": "Login endpoint default rate limit",
"max_requests": 10,
"window_seconds": 60,
"is_active": true,
"updated_by": "seed"
},
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:24.439+03:00",
"UpdatedAt": "2026-02-15T07:43:24.439+03:00",
"DeletedAt": null,
"name": "register",
"description": "Register endpoint default rate limit",
"max_requests": 5,
"window_seconds": 60,
"is_active": true,
"updated_by": "seed"
}
]
}
Response headers
content-length: 534
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:46:22 GMT
Rate Limit Create
curl -X 'POST' \
'http://localhost:8080/api/v1/admin/rate-limit' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E' \
-H 'Content-Type: application/json' \
-d '{
"description": "test için",
"is_active": true,
"max_requests": 100,
"name": "test",
"window_seconds": 100
}'
Request URL
http://localhost:8080/api/v1/admin/rate-limit
Server response
Code Details
201
Response body
Download
{
"item": {
"ID": 3,
"CreatedAt": "2026-02-15T20:47:20.555797Z",
"UpdatedAt": "2026-02-15T20:47:20.555797Z",
"DeletedAt": null,
"name": "test",
"description": "test için",
"max_requests": 100,
"window_seconds": 100,
"is_active": true,
"updated_by": "beyhan@beyhan.dev"
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 249
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:47:20 GMT
vary: Origin
Rate Limit Update
curl -X 'PUT' \
'http://localhost:8080/api/v1/admin/rate-limit/3' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E' \
-H 'Content-Type: application/json' \
-d '{
"description": "update",
"is_active": true,
"max_requests": 34,
"name": "update",
"window_seconds": 34
}'
Request URL
http://localhost:8080/api/v1/admin/rate-limit/3
Server response
Code Details
200
Response body
Download
{
"item": {
"ID": 3,
"CreatedAt": "2026-02-15T23:47:20.555+03:00",
"UpdatedAt": "2026-02-15T20:48:22.836239Z",
"DeletedAt": null,
"name": "update",
"description": "update",
"max_requests": 34,
"window_seconds": 34,
"is_active": true,
"updated_by": "beyhan@beyhan.dev"
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 247
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:48:22 GMT
vary: Origin
Rate Limit Delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/admin/rate-limit/3' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/rate-limit/3
Server response
Code Details
200
Response body
Download
{
"id": 3,
"message": "soft deleted"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 33
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:48:56 GMT
vary: Origin
Rate Limit Hard Delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/admin/rate-limit/3/hard' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/admin/rate-limit/3/hard
Server response
Code Details
200
Response body
Download
{
"id": 3,
"message": "hard deleted"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 33
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 20:49:21 GMT
vary: Origin

380
content/admin_kategori.md Normal file
View File

@@ -0,0 +1,380 @@
css ler /public/css/ kalsorunde
* Bootstrap v5.2.0-beta1 kullanarak yapabilirsin
sweetaler2
sadece soft delete edilmis
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/categories?trashed=only' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/categories?trashed=only
Server response
Code Details
200
Response body
Download
{
"data": [
{
"ID": 11,
"CreatedAt": "2026-02-16T02:27:17.611+03:00",
"UpdatedAt": "2026-02-16T02:46:47.319+03:00",
"DeletedAt": "2026-02-16T02:56:25.664+03:00",
"title": "rftghyujkiiiüüğğççöö",
"slug": "rftghyujkiiiuuggccoo",
"description": "sfdfsd",
"parent_id": 1
}
],
"meta": {
"page": 1,
"per_page": 10,
"total": 1
}
}
Response headers
content-length: 300
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 10:45:03 GMT
#############
admin kategoriler list hepsi
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/categories?trashed=with' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/categories?trashed=with
Server response
Code Details
200
Response body
Download
{
"data": [
{
"ID": 13,
"CreatedAt": "2026-02-16T02:48:15.651+03:00",
"UpdatedAt": "2026-02-16T02:48:15.651+03:00",
"DeletedAt": null,
"title": "sdadasd",
"slug": "sdadasd",
"description": "asdasdad"
},
{
"ID": 12,
"CreatedAt": "2026-02-16T02:29:37.895+03:00",
"UpdatedAt": "2026-02-16T02:40:55.819+03:00",
"DeletedAt": null,
"title": "update",
"slug": "update",
"description": "update"
},
{
"ID": 11,
"CreatedAt": "2026-02-16T02:27:17.611+03:00",
"UpdatedAt": "2026-02-16T02:46:47.319+03:00",
"DeletedAt": "2026-02-16T02:56:25.664+03:00",
"title": "rftghyujkiiiüüğğççöö",
"slug": "rftghyujkiiiuuggccoo",
"description": "sfdfsd",
"parent_id": 1
},
{
"ID": 10,
"CreatedAt": "2026-02-16T02:26:53.621+03:00",
"UpdatedAt": "2026-02-16T02:55:27.599+03:00",
"DeletedAt": null,
"title": "34345345",
"slug": "34345345",
"description": "sfdfsd",
"parent_id": 8
},
{
"ID": 8,
"CreatedAt": "2026-02-15T07:43:42.09+03:00",
"UpdatedAt": "2026-02-15T07:43:42.09+03:00",
"DeletedAt": null,
"title": "Finans",
"slug": "finans",
"description": "Finans kategorisi seed verisi",
"children": [
{
"ID": 10,
"CreatedAt": "2026-02-16T02:26:53.621+03:00",
"UpdatedAt": "2026-02-16T02:55:27.599+03:00",
"DeletedAt": null,
"title": "34345345",
"slug": "34345345",
"description": "sfdfsd",
"parent_id": 8
}
]
},
{
"ID": 7,
"CreatedAt": "2026-02-15T07:43:42.07+03:00",
"UpdatedAt": "2026-02-15T07:43:42.07+03:00",
"DeletedAt": null,
"title": "Saglik",
"slug": "saglik",
"description": "Saglik kategorisi seed verisi"
},
{
"ID": 6,
"CreatedAt": "2026-02-15T07:43:42.053+03:00",
"UpdatedAt": "2026-02-15T07:43:42.053+03:00",
"DeletedAt": null,
"title": "Spor",
"slug": "spor",
"description": "Spor kategorisi seed verisi"
},
{
"ID": 5,
"CreatedAt": "2026-02-15T07:43:42.038+03:00",
"UpdatedAt": "2026-02-16T02:48:47.358+03:00",
"DeletedAt": null,
"title": "Egitim",
"slug": "egitim",
"description": "Egitim kategorisi seed verisi",
"parent_id": 2
},
{
"ID": 4,
"CreatedAt": "2026-02-15T07:43:42.023+03:00",
"UpdatedAt": "2026-02-15T07:43:42.023+03:00",
"DeletedAt": null,
"title": "Yasam",
"slug": "yasam",
"description": "Yasam kategorisi seed verisi"
},
{
"ID": 3,
"CreatedAt": "2026-02-15T07:43:42.005+03:00",
"UpdatedAt": "2026-02-15T07:43:42.005+03:00",
"DeletedAt": null,
"title": "Guncel",
"slug": "guncel",
"description": "Guncel kategorisi seed verisi"
}
],
"meta": {
"page": 1,
"per_page": 10,
"total": 12
}
}
Response headers
content-length: 2197
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 10:43:49 GMT
#################################################
kategorileri ekleme
curl -X 'POST' \
'http://localhost:8080/api/v1/categories' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMjA1MDM2LCJpYXQiOjE3NzExOTc4MzZ9.p1hHNkMya9mEII-Bkc9TkMtBeWt6k3bp2e-pR5zw_EI' \
-H 'Content-Type: application/json' \
-d '{
"description": "sfdfsd",
"parent_id": null,
"title": "öçşiğüIi"
}'
Request URL
http://localhost:8080/api/v1/categories
Server response
Code Details
201
Response body
Download
{
"ID": 12,
"CreatedAt": "2026-02-15T23:29:37.89581Z",
"UpdatedAt": "2026-02-15T23:29:37.89581Z",
"DeletedAt": null,
"title": "öçşiğüIi",
"slug": "ocsiguii",
"description": "sfdfsd"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 173
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 23:29:37 GMT
vary: Origin
Responses
Code Description
201
Created
{
"children": [
"string"
],
"description": "string",
"id": 0,
"parent_id": 0,
"title": "string"
}
400
#################################################
kategoriler update
curl -X 'PUT' \
'http://localhost:8080/api/v1/categories/12' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMjA1MDM2LCJpYXQiOjE3NzExOTc4MzZ9.p1hHNkMya9mEII-Bkc9TkMtBeWt6k3bp2e-pR5zw_EI' \
-H 'Content-Type: application/json' \
-d '{
"description": "update",
"parent_id": null,
"title": "update"
}'
Request URL
http://localhost:8080/api/v1/categories/12
Server response
Code Details
200
Response body
Download
{
"ID": 12,
"CreatedAt": "2026-02-16T02:29:37.895+03:00",
"UpdatedAt": "2026-02-15T23:40:55.819633Z",
"DeletedAt": null,
"title": "update",
"slug": "update",
"description": "update"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 168
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 23:40:55 GMT
vary: Origin
############################
kategorileri silme
curl -X 'DELETE' \
'http://localhost:8080/api/v1/categories/12' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMjA1MDM2LCJpYXQiOjE3NzExOTc4MzZ9.p1hHNkMya9mEII-Bkc9TkMtBeWt6k3bp2e-pR5zw_EI'
Request URL
http://localhost:8080/api/v1/categories/12
Server response
Code Details
200
Response body
Download
{
"message": "category deleted"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 30
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 23:42:58 GMT
vary: Origin
####################
restore etme
curl -X 'POST' \
'http://localhost:8080/api/v1/admin/categories/11/restore' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0' \
-d ''
Request URL
http://localhost:8080/api/v1/admin/categories/11/restore
Server response
Code Details
200
Response body
Download
{
"category_id": 11,
"message": "category restored successfully"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 61
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 10:46:40 GMT
vary: Origin
###########
hard delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/admin/categories/11/hard' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/categories/11/hard

475
content/admin_oanel.md Normal file
View File

@@ -0,0 +1,475 @@
css ler /public/css/ kalsorunde
* Bootstrap v5.2.0-beta1 kullanarak yapabilirsin
settings index.vue de tab li bir yapi ile settings ve hero yu yapalim
solda bir sidebar menu ile yapalim
Admin Panel Settings
settings ve hero da resimleri gondermeden once en boy format kalite ayarlarini yapacaz "sharp": "^0.34.5",
bu kutuplahnetyi kulanalim seçmelerde default olarak avif formati olsun
# Login olmak#
is_admin = true olanalar sadece girebilir adminb kismina
curl -X 'POST' \
'http://localhost:8080/api/v1/auth/login' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"email": "beyhan@beyhan.dev",
"password": "1923btO**"
}'
Request URL
http://localhost:8080/api/v1/auth/login
Server response
Code Details
200
Response body
Download
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTgzOTc5LCJpYXQiOjE3NzExNzY3Nzl9.bVzWG3KHsKkqm11A1uNru5H3g5kZtq30lQxgasCqhBk",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJyZWZyZXNoIiwic3ViIjoiMSIsImV4cCI6MTc3Mzc2ODc3OSwiaWF0IjoxNzcxMTc2Nzc5fQ.wRT0ECN-UsF4ileQHUXl0evePXlaCuG8vb11wWt75Es",
"user": {
"email": "beyhan@beyhan.dev",
"first_name": "Beyhan",
"id": 1,
"is_admin": true,
"last_name": "Oğur",
"username": "beyhano"
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 765
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:32:58 GMT
vary: Origin
#####################################
#Settings Yeni Ekle#
'''
curl -X 'POST' \
'http://localhost:8080/api/v1/setting' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTgwODI4LCJpYXQiOjE3NzExNzM2Mjh9.l51p91--l7JcUbBPHwwVjqRgoT7KXFtU-33HLr4YfBE' \
-H 'Content-Type: multipart/form-data' \
-F 'title=Title' \
-F 'meta_title=Meta Title' \
-F 'meta_description=Meta Description' \
-F 'phone=Phone' \
-F 'url=URL' \
-F 'email=Email' \
-F 'facebook=Facebook' \
-F 'x=x' \
-F 'instagram=Instagram' \
-F 'whatsapp=Whatsapp' \
-F 'pinterest=Pinterest' \
-F 'linkedin=Linkedin' \
-F 'slogan=Slogan' \
-F 'address=Address' \
-F 'copyright=Copyright' \
-F 'map_embed=Map Embed' \
-F 'is_active=true' \
-F 'w_logo=@845660.png;type=image/png' \
-F 'b_logo=@845660.png;type=image/png'
Request URL
http://localhost:8080/api/v1/setting
Server response
Code Details
201
Response body
Download
{
"ID": 2,
"CreatedAt": "2026-02-15T17:24:34.125454Z",
"UpdatedAt": "2026-02-15T17:24:34.125454Z",
"DeletedAt": null,
"title": "Title",
"meta_title": "Meta Title",
"meta_description": "Meta Description",
"phone": "Phone",
"url": "URL",
"email": "Email",
"facebook": "Facebook",
"x": "x",
"instagram": "Instagram",
"whatsapp": "Whatsapp",
"pinterest": "Pinterest",
"linkedin": "Linkedin",
"slogan": "Slogan",
"address": "Address",
"copyright": "Copyright",
"map_embed": "Map Embed",
"w_logo": "/uploads/settings/w_1771176274_845660.png",
"b_logo": "/uploads/settings/b_1771176274_845660.png",
"is_active": true
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 564
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:24:33 GMT
vary: Origin
'''
#Settings Güncelle#
'''
curl -X 'PUT' \
'http://localhost:8080/api/v1/setting/1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTgwODI4LCJpYXQiOjE3NzExNzM2Mjh9.l51p91--l7JcUbBPHwwVjqRgoT7KXFtU-33HLr4YfBE' \
-H 'Content-Type: multipart/form-data' \
-F 'title=Title' \
-F 'meta_title=Meta Title' \
-F 'meta_description=Meta Description' \
-F 'phone=Phone' \
-F 'url=URL' \
-F 'email=Email' \
-F 'facebook=Facebook' \
-F 'x=x' \
-F 'instagram=Instagram' \
-F 'whatsapp=Whatsapp' \
-F 'pinterest=Pinterest' \
-F 'linkedin=Linkedin' \
-F 'slogan=Slogan' \
-F 'address=Address' \
-F 'copyright=Copyright' \
-F 'map_embed=Map Embed' \
-F 'is_active=true' \
-F 'w_logo=@18d11cf76c60f0b453aaea8da0838d3b.png;type=image/png' \
-F 'b_logo=@1657955547black-google-icon.png;type=image/png'
Request URL
http://localhost:8080/api/v1/setting/1
Server response
Code Details
200
Response body
Download
{
"ID": 1,
"CreatedAt": "2026-02-15T19:43:23.226+03:00",
"UpdatedAt": "2026-02-15T17:27:21.266645Z",
"DeletedAt": null,
"title": "Title",
"meta_title": "Meta Title",
"meta_description": "Meta Description",
"phone": "Phone",
"url": "URL",
"email": "Email",
"facebook": "Facebook",
"x": "x",
"instagram": "Instagram",
"whatsapp": "Whatsapp",
"pinterest": "Pinterest",
"linkedin": "Linkedin",
"slogan": "Slogan",
"address": "Address",
"copyright": "Copyright",
"map_embed": "Map Embed",
"w_logo": "/uploads/settings/w_1771176441_18d11cf76c60f0b453aaea8da0838d3b.png",
"b_logo": "/uploads/settings/b_1771176441_1657955547black-google-icon.png",
"is_active": true
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 613
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:27:20 GMT
vary: Origin
'''
#Settings Silme#
'''
curl -X 'DELETE' \
'http://localhost:8080/api/v1/setting/1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTgwODI4LCJpYXQiOjE3NzExNzM2Mjh9.l51p91--l7JcUbBPHwwVjqRgoT7KXFtU-33HLr4YfBE'
Request URL
http://localhost:8080/api/v1/setting/1
Server response
Code Details
200
Response body
Download
{
"message": "setting deleted successfully"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 38
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:26:38 GMT
vary: Origin
'''
#Settings Listeleme#
'''
curl -X 'GET' \
'http://localhost:8080/api/v1/setting' \
-H 'accept: application/json'
Request URL
http://localhost:8080/api/v1/setting
Server response
Code Details
200
Response body
Download
{
"ID": 1,
"CreatedAt": "2026-02-15T19:43:23.226+03:00",
"UpdatedAt": "2026-02-15T20:27:21.266+03:00",
"DeletedAt": null,
"title": "Title",
"meta_title": "Meta Title",
"meta_description": "Meta Description",
"phone": "Phone",
"url": "URL",
"email": "Email",
"facebook": "Facebook",
"x": "x",
"instagram": "Instagram",
"whatsapp": "Whatsapp",
"pinterest": "Pinterest",
"linkedin": "Linkedin",
"slogan": "Slogan",
"address": "Address",
"copyright": "Copyright",
"map_embed": "Map Embed",
"w_logo": "/uploads/settings/w_1771176441_18d11cf76c60f0b453aaea8da0838d3b.png",
"b_logo": "/uploads/settings/b_1771176441_1657955547black-google-icon.png",
"is_active": true
}
Response headers
content-length: 615
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:28:37 GMT
'''
#####################################
admin için Hero ayarlari
#Hero Yeni Ekle#
'''
curl -X 'POST' \
'http://localhost:8080/api/v1/hero' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTgwODI4LCJpYXQiOjE3NzExNzM2Mjh9.l51p91--l7JcUbBPHwwVjqRgoT7KXFtU-33HLr4YfBE' \
-H 'Content-Type: multipart/form-data' \
-F 'title=Title' \
-F 'text1=Text1' \
-F 'text2=Text2' \
-F 'text4=Text4' \
-F 'text5=Text5' \
-F 'color=Color' \
-F 'is_active=true' \
-F 'image=@1200x630bb.png;type=image/png'
Request URL
http://localhost:8080/api/v1/hero
Server response
Code Details
201
Response body
Download
{
"ID": 2,
"CreatedAt": "2026-02-15T17:13:52.46361Z",
"UpdatedAt": "2026-02-15T17:13:52.46361Z",
"DeletedAt": null,
"color": "Color",
"title": "Title",
"text1": "Text1",
"text2": "Text2",
"text4": "Text4",
"text5": "Text5",
"image": "/uploads/heroes/1771175632_1200x630bb.png",
"is_active": true
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 272
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:13:51 GMT
vary: Origin
'''
#Hero Güncelle#
'''
curl -X 'PUT' \
'http://localhost:8080/api/v1/hero/2' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTgwODI4LCJpYXQiOjE3NzExNzM2Mjh9.l51p91--l7JcUbBPHwwVjqRgoT7KXFtU-33HLr4YfBE' \
-H 'Content-Type: multipart/form-data' \
-F 'title=Title' \
-F 'text1=Text1' \
-F 'text2=Text2' \
-F 'text4=Text4' \
-F 'text5=Text5' \
-F 'color=Color' \
-F 'is_active=true' \
-F 'image=@1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg;type=image/jpeg'
Request URL
http://localhost:8080/api/v1/hero/2
Server response
Code Details
200
Response body
Download
{
"ID": 2,
"CreatedAt": "2026-02-15T20:13:52.463+03:00",
"UpdatedAt": "2026-02-15T17:17:21.182814Z",
"DeletedAt": null,
"color": "Color",
"title": "Title",
"text1": "Text1",
"text2": "Text2",
"text4": "Text4",
"text5": "Text5",
"image": "/uploads/heroes/1771175841_1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg",
"is_active": true
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 312
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:17:21 GMT
vary: Origin
'''
#Hero Silme#
'''
curl -X 'DELETE' \
'http://localhost:8080/api/v1/hero/1' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTgwODI4LCJpYXQiOjE3NzExNzM2Mjh9.l51p91--l7JcUbBPHwwVjqRgoT7KXFtU-33HLr4YfBE'
Request URL
http://localhost:8080/api/v1/hero/1
Server response
Code Details
200
Response body
Download
{
"message": "hero deleted successfully"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 39
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:18:39 GMT
vary: Origin
'''
#Hero Listeleme#
'''
curl -X 'GET' \
'http://localhost:8080/api/v1/hero' \
-H 'accept: application/json'
Request URL
http://localhost:8080/api/v1/hero
Server response
Code Details
200
Response body
Download
{
"ID": 2,
"CreatedAt": "2026-02-15T20:13:52.463+03:00",
"UpdatedAt": "2026-02-15T20:17:21.182+03:00",
"DeletedAt": null,
"color": "Color",
"title": "Title",
"text1": "Text1",
"text2": "Text2",
"text4": "Text4",
"text5": "Text5",
"image": "/uploads/heroes/1771175841_1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg",
"is_active": true
}
Response headers
content-length: 314
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 17:20:30 GMT
'''
##############################################################################################

1175
content/admin_post.md Normal file

File diff suppressed because it is too large Load Diff

934
content/admin_tags.md Normal file
View File

@@ -0,0 +1,934 @@
css ler /public/css/ kalsorunde
* Bootstrap v5.2.0-beta1 kullanarak yapabilirsin
tags ekleme
curl -X 'POST' \
'http://localhost:8080/api/v1/tags' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0' \
-H 'Content-Type: application/json' \
-d '{
"name": "test4444"
}'
Request URL
http://localhost:8080/api/v1/tags
Server response
Code Details
201
Response body
Download
{
"ID": 13,
"CreatedAt": "2026-02-17T09:50:12.778586Z",
"UpdatedAt": "2026-02-17T09:50:12.778586Z",
"DeletedAt": null,
"name": "test4444"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 128
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:50:12 GMT
vary: Origi
#################
tags güncelleme
curl -X 'PUT' \
'http://localhost:8080/api/v1/tags/13' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0' \
-H 'Content-Type: application/json' \
-d '{
"name": "test4444_update"
}'
Request URL
http://localhost:8080/api/v1/tags/13
Server response
Code Details
200
Response body
Download
{
"ID": 13,
"CreatedAt": "2026-02-17T12:50:12.778+03:00",
"UpdatedAt": "2026-02-17T09:51:54.295883Z",
"DeletedAt": null,
"name": "test4444_update"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 137
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:51:53 GMT
vary: Origin
#################
tags silme
curl -X 'DELETE' \
'http://localhost:8080/api/v1/tags/13' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/tags/13
Server response
Code Details
200
Response body
Download
{
"message": "tag deleted"
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 25
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:55:04 GMT
vary: Origin
#################
Listele hepsi
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/tags?trashed=with' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/tags?trashed=with
Server response
Code Details
200
Response body
Download
{
"data": [
{
"ID": 13,
"CreatedAt": "2026-02-17T12:50:12.778+03:00",
"UpdatedAt": "2026-02-17T12:51:54.295+03:00",
"DeletedAt": "2026-02-17T12:55:04.871+03:00",
"name": "test4444_update"
},
{
"ID": 12,
"CreatedAt": "2026-02-15T07:43:42.295+03:00",
"UpdatedAt": "2026-02-15T07:43:42.295+03:00",
"DeletedAt": null,
"name": "testing",
"posts": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:42.673+03:00",
"UpdatedAt": "2026-02-15T07:43:42.673+03:00",
"DeletedAt": null,
"title": "Seed Post 1",
"images": "uploads/posts/post_1_75e8c4.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 1.",
"slug": "seed-post-1"
},
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:44.525+03:00",
"UpdatedAt": "2026-02-15T07:43:44.525+03:00",
"DeletedAt": null,
"title": "Seed Post 9",
"images": "uploads/posts/post_9_03c3b8.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 9.",
"slug": "seed-post-9"
},
{
"ID": 21,
"CreatedAt": "2026-02-15T07:43:46.483+03:00",
"UpdatedAt": "2026-02-15T07:43:46.483+03:00",
"DeletedAt": null,
"title": "Seed Post 21",
"images": "uploads/posts/post_21_626d54.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 21.",
"slug": "seed-post-21"
},
{
"ID": 31,
"CreatedAt": "2026-02-15T07:43:48.197+03:00",
"UpdatedAt": "2026-02-15T07:43:48.197+03:00",
"DeletedAt": null,
"title": "Seed Post 31",
"images": "uploads/posts/post_31_7a6f61.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 31.",
"slug": "seed-post-31"
}
]
},
{
"ID": 11,
"CreatedAt": "2026-02-15T07:43:42.277+03:00",
"UpdatedAt": "2026-02-15T07:43:42.277+03:00",
"DeletedAt": null,
"name": "security",
"posts": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.829+03:00",
"UpdatedAt": "2026-02-15T07:43:42.829+03:00",
"DeletedAt": null,
"title": "Seed Post 2",
"images": "uploads/posts/post_2_a15fd6.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 2.",
"slug": "seed-post-2"
},
{
"ID": 18,
"CreatedAt": "2026-02-15T07:43:45.891+03:00",
"UpdatedAt": "2026-02-15T07:43:45.891+03:00",
"DeletedAt": null,
"title": "Seed Post 18",
"images": "uploads/posts/post_18_ec88ac.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 18.",
"slug": "seed-post-18"
},
{
"ID": 20,
"CreatedAt": "2026-02-15T07:43:46.25+03:00",
"UpdatedAt": "2026-02-15T07:43:46.25+03:00",
"DeletedAt": null,
"title": "Seed Post 20",
"images": "uploads/posts/post_20_09d967.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 20.",
"slug": "seed-post-20"
},
{
"ID": 30,
"CreatedAt": "2026-02-15T07:43:48.058+03:00",
"UpdatedAt": "2026-02-15T07:43:48.058+03:00",
"DeletedAt": null,
"title": "Seed Post 30",
"images": "uploads/posts/post_30_d116c0.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 30.",
"slug": "seed-post-30"
},
{
"ID": 37,
"CreatedAt": "2026-02-15T07:43:49.511+03:00",
"UpdatedAt": "2026-02-15T07:43:49.511+03:00",
"DeletedAt": null,
"title": "Seed Post 37",
"images": "uploads/posts/post_37_573af9.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 37.",
"slug": "seed-post-37"
}
]
},
{
"ID": 10,
"CreatedAt": "2026-02-15T07:43:42.259+03:00",
"UpdatedAt": "2026-02-15T07:43:42.259+03:00",
"DeletedAt": null,
"name": "devops",
"posts": [
{
"ID": 3,
"CreatedAt": "2026-02-15T07:43:42.966+03:00",
"UpdatedAt": "2026-02-15T07:43:42.966+03:00",
"DeletedAt": null,
"title": "Seed Post 3",
"images": "uploads/posts/post_3_291f5f.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 3.",
"slug": "seed-post-3"
},
{
"ID": 5,
"CreatedAt": "2026-02-15T07:43:43.624+03:00",
"UpdatedAt": "2026-02-15T07:43:43.624+03:00",
"DeletedAt": null,
"title": "Seed Post 5",
"images": "uploads/posts/post_5_954662.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 5.",
"slug": "seed-post-5"
},
{
"ID": 14,
"CreatedAt": "2026-02-15T07:43:45.377+03:00",
"UpdatedAt": "2026-02-15T07:43:45.377+03:00",
"DeletedAt": null,
"title": "Seed Post 14",
"images": "uploads/posts/post_14_c21ae0.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 14.",
"slug": "seed-post-14"
},
{
"ID": 18,
"CreatedAt": "2026-02-15T07:43:45.891+03:00",
"UpdatedAt": "2026-02-15T07:43:45.891+03:00",
"DeletedAt": null,
"title": "Seed Post 18",
"images": "uploads/posts/post_18_ec88ac.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 18.",
"slug": "seed-post-18"
},
{
"ID": 22,
"CreatedAt": "2026-02-15T07:43:46.611+03:00",
"UpdatedAt": "2026-02-15T07:43:46.611+03:00",
"DeletedAt": null,
"title": "Seed Post 22",
"images": "uploads/posts/post_22_2aa79a.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 22.",
"slug": "seed-post-22"
},
{
"ID": 28,
"CreatedAt": "2026-02-15T07:43:47.546+03:00",
"UpdatedAt": "2026-02-15T07:43:47.546+03:00",
"DeletedAt": null,
"title": "Seed Post 28",
"images": "uploads/posts/post_28_a10a99.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 28.",
"slug": "seed-post-28"
},
{
"ID": 35,
"CreatedAt": "2026-02-15T07:43:49.258+03:00",
"UpdatedAt": "2026-02-15T07:43:49.258+03:00",
"DeletedAt": null,
"title": "Seed Post 35",
"images": "uploads/posts/post_35_30ee16.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 35.",
"slug": "seed-post-35"
},
{
"ID": 39,
"CreatedAt": "2026-02-15T07:43:49.767+03:00",
"UpdatedAt": "2026-02-17T12:28:44.936+03:00",
"DeletedAt": null,
"title": "Seed Post 39",
"images": "uploads/posts/post_39_0e773c.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 39.",
"slug": "seed-post-39"
}
]
},
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:42.242+03:00",
"UpdatedAt": "2026-02-15T07:43:42.242+03:00",
"DeletedAt": null,
"name": "cloud",
"posts": [
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:44.525+03:00",
"UpdatedAt": "2026-02-15T07:43:44.525+03:00",
"DeletedAt": null,
"title": "Seed Post 9",
"images": "uploads/posts/post_9_03c3b8.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 9.",
"slug": "seed-post-9"
},
{
"ID": 10,
"CreatedAt": "2026-02-15T07:43:44.653+03:00",
"UpdatedAt": "2026-02-15T07:43:44.653+03:00",
"DeletedAt": null,
"title": "Seed Post 10",
"images": "uploads/posts/post_10_19b004.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 10.",
"slug": "seed-post-10"
},
{
"ID": 12,
"CreatedAt": "2026-02-15T07:43:44.905+03:00",
"UpdatedAt": "2026-02-15T07:43:44.905+03:00",
"DeletedAt": null,
"title": "Seed Post 12",
"images": "uploads/posts/post_12_ddfaa3.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 12.",
"slug": "seed-post-12"
},
{
"ID": 21,
"CreatedAt": "2026-02-15T07:43:46.483+03:00",
"UpdatedAt": "2026-02-15T07:43:46.483+03:00",
"DeletedAt": null,
"title": "Seed Post 21",
"images": "uploads/posts/post_21_626d54.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 21.",
"slug": "seed-post-21"
},
{
"ID": 22,
"CreatedAt": "2026-02-15T07:43:46.611+03:00",
"UpdatedAt": "2026-02-15T07:43:46.611+03:00",
"DeletedAt": null,
"title": "Seed Post 22",
"images": "uploads/posts/post_22_2aa79a.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 22.",
"slug": "seed-post-22"
},
{
"ID": 26,
"CreatedAt": "2026-02-15T07:43:47.278+03:00",
"UpdatedAt": "2026-02-15T07:43:47.278+03:00",
"DeletedAt": null,
"title": "Seed Post 26",
"images": "uploads/posts/post_26_ce05c4.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 26.",
"slug": "seed-post-26"
},
{
"ID": 29,
"CreatedAt": "2026-02-15T07:43:47.674+03:00",
"UpdatedAt": "2026-02-15T07:43:47.674+03:00",
"DeletedAt": null,
"title": "Seed Post 29",
"images": "uploads/posts/post_29_5a1d1f.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 29.",
"slug": "seed-post-29"
},
{
"ID": 30,
"CreatedAt": "2026-02-15T07:43:48.058+03:00",
"UpdatedAt": "2026-02-15T07:43:48.058+03:00",
"DeletedAt": null,
"title": "Seed Post 30",
"images": "uploads/posts/post_30_d116c0.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 30.",
"slug": "seed-post-30"
},
{
"ID": 31,
"CreatedAt": "2026-02-15T07:43:48.197+03:00",
"UpdatedAt": "2026-02-15T07:43:48.197+03:00",
"DeletedAt": null,
"title": "Seed Post 31",
"images": "uploads/posts/post_31_7a6f61.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 31.",
"slug": "seed-post-31"
},
{
"ID": 34,
"CreatedAt": "2026-02-15T07:43:49.078+03:00",
"UpdatedAt": "2026-02-15T07:43:49.078+03:00",
"DeletedAt": null,
"title": "Seed Post 34",
"images": "uploads/posts/post_34_6f7963.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 34.",
"slug": "seed-post-34"
}
]
},
{
"ID": 8,
"CreatedAt": "2026-02-15T07:43:42.227+03:00",
"UpdatedAt": "2026-02-15T07:43:42.227+03:00",
"DeletedAt": null,
"name": "docker",
"posts": [
{
"ID": 4,
"CreatedAt": "2026-02-15T07:43:43.484+03:00",
"UpdatedAt": "2026-02-15T07:43:43.484+03:00",
"DeletedAt": null,
"title": "Seed Post 4",
"images": "uploads/posts/post_4_3d6f3f.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 4.",
"slug": "seed-post-4"
},
{
"ID": 6,
"CreatedAt": "2026-02-15T07:43:43.759+03:00",
"UpdatedAt": "2026-02-15T07:43:43.759+03:00",
"DeletedAt": null,
"title": "Seed Post 6",
"images": "uploads/posts/post_6_ad3af8.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 6.",
"slug": "seed-post-6"
},
{
"ID": 8,
"CreatedAt": "2026-02-15T07:43:44.393+03:00",
"UpdatedAt": "2026-02-15T07:43:44.393+03:00",
"DeletedAt": null,
"title": "Seed Post 8",
"images": "uploads/posts/post_8_80cbb5.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 8.",
"slug": "seed-post-8"
},
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:44.525+03:00",
"UpdatedAt": "2026-02-15T07:43:44.525+03:00",
"DeletedAt": null,
"title": "Seed Post 9",
"images": "uploads/posts/post_9_03c3b8.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 9.",
"slug": "seed-post-9"
},
{
"ID": 32,
"CreatedAt": "2026-02-15T07:43:48.329+03:00",
"UpdatedAt": "2026-02-15T07:43:48.329+03:00",
"DeletedAt": null,
"title": "Seed Post 32",
"images": "uploads/posts/post_32_214285.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 32.",
"slug": "seed-post-32"
},
{
"ID": 39,
"CreatedAt": "2026-02-15T07:43:49.767+03:00",
"UpdatedAt": "2026-02-17T12:28:44.936+03:00",
"DeletedAt": null,
"title": "Seed Post 39",
"images": "uploads/posts/post_39_0e773c.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 39.",
"slug": "seed-post-39"
}
]
},
{
"ID": 7,
"CreatedAt": "2026-02-15T07:43:42.212+03:00",
"UpdatedAt": "2026-02-15T07:43:42.212+03:00",
"DeletedAt": null,
"name": "api",
"posts": [
{
"ID": 5,
"CreatedAt": "2026-02-15T07:43:43.624+03:00",
"UpdatedAt": "2026-02-15T07:43:43.624+03:00",
"DeletedAt": null,
"title": "Seed Post 5",
"images": "uploads/posts/post_5_954662.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 5.",
"slug": "seed-post-5"
},
{
"ID": 7,
"CreatedAt": "2026-02-15T07:43:44.243+03:00",
"UpdatedAt": "2026-02-15T07:43:44.243+03:00",
"DeletedAt": null,
"title": "Seed Post 7",
"images": "uploads/posts/post_7_d973fd.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 7.",
"slug": "seed-post-7"
},
{
"ID": 16,
"CreatedAt": "2026-02-15T07:43:45.629+03:00",
"UpdatedAt": "2026-02-15T07:43:45.629+03:00",
"DeletedAt": null,
"title": "Seed Post 16",
"images": "uploads/posts/post_16_6a0c58.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 16.",
"slug": "seed-post-16"
},
{
"ID": 27,
"CreatedAt": "2026-02-15T07:43:47.412+03:00",
"UpdatedAt": "2026-02-15T07:43:47.412+03:00",
"DeletedAt": null,
"title": "Seed Post 27",
"images": "uploads/posts/post_27_c75542.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 27.",
"slug": "seed-post-27"
},
{
"ID": 29,
"CreatedAt": "2026-02-15T07:43:47.674+03:00",
"UpdatedAt": "2026-02-15T07:43:47.674+03:00",
"DeletedAt": null,
"title": "Seed Post 29",
"images": "uploads/posts/post_29_5a1d1f.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 29.",
"slug": "seed-post-29"
},
{
"ID": 31,
"CreatedAt": "2026-02-15T07:43:48.197+03:00",
"UpdatedAt": "2026-02-15T07:43:48.197+03:00",
"DeletedAt": null,
"title": "Seed Post 31",
"images": "uploads/posts/post_31_7a6f61.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 31.",
"slug": "seed-post-31"
}
]
},
{
"ID": 6,
"CreatedAt": "2026-02-15T07:43:42.192+03:00",
"UpdatedAt": "2026-02-15T07:43:42.192+03:00",
"DeletedAt": null,
"name": "jwt",
"posts": [
{
"ID": 13,
"CreatedAt": "2026-02-15T07:43:45.044+03:00",
"UpdatedAt": "2026-02-15T07:43:45.044+03:00",
"DeletedAt": null,
"title": "Seed Post 13",
"images": "uploads/posts/post_13_b37f04.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 13.",
"slug": "seed-post-13"
},
{
"ID": 19,
"CreatedAt": "2026-02-15T07:43:46.017+03:00",
"UpdatedAt": "2026-02-15T07:43:46.017+03:00",
"DeletedAt": null,
"title": "Seed Post 19",
"images": "uploads/posts/post_19_25715c.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 19.",
"slug": "seed-post-19"
},
{
"ID": 24,
"CreatedAt": "2026-02-15T07:43:46.876+03:00",
"UpdatedAt": "2026-02-15T07:43:46.876+03:00",
"DeletedAt": null,
"title": "Seed Post 24",
"images": "uploads/posts/post_24_97be20.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 24.",
"slug": "seed-post-24"
},
{
"ID": 34,
"CreatedAt": "2026-02-15T07:43:49.078+03:00",
"UpdatedAt": "2026-02-15T07:43:49.078+03:00",
"DeletedAt": null,
"title": "Seed Post 34",
"images": "uploads/posts/post_34_6f7963.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 34.",
"slug": "seed-post-34"
}
]
},
{
"ID": 5,
"CreatedAt": "2026-02-15T07:43:42.176+03:00",
"UpdatedAt": "2026-02-15T07:43:42.176+03:00",
"DeletedAt": null,
"name": "redis",
"posts": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.829+03:00",
"UpdatedAt": "2026-02-15T07:43:42.829+03:00",
"DeletedAt": null,
"title": "Seed Post 2",
"images": "uploads/posts/post_2_a15fd6.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 2.",
"slug": "seed-post-2"
},
{
"ID": 4,
"CreatedAt": "2026-02-15T07:43:43.484+03:00",
"UpdatedAt": "2026-02-15T07:43:43.484+03:00",
"DeletedAt": null,
"title": "Seed Post 4",
"images": "uploads/posts/post_4_3d6f3f.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 4.",
"slug": "seed-post-4"
},
{
"ID": 12,
"CreatedAt": "2026-02-15T07:43:44.905+03:00",
"UpdatedAt": "2026-02-15T07:43:44.905+03:00",
"DeletedAt": null,
"title": "Seed Post 12",
"images": "uploads/posts/post_12_ddfaa3.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 12.",
"slug": "seed-post-12"
},
{
"ID": 20,
"CreatedAt": "2026-02-15T07:43:46.25+03:00",
"UpdatedAt": "2026-02-15T07:43:46.25+03:00",
"DeletedAt": null,
"title": "Seed Post 20",
"images": "uploads/posts/post_20_09d967.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 20.",
"slug": "seed-post-20"
},
{
"ID": 23,
"CreatedAt": "2026-02-15T07:43:46.742+03:00",
"UpdatedAt": "2026-02-15T07:43:46.742+03:00",
"DeletedAt": null,
"title": "Seed Post 23",
"images": "uploads/posts/post_23_4ff46d.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 23.",
"slug": "seed-post-23"
},
{
"ID": 34,
"CreatedAt": "2026-02-15T07:43:49.078+03:00",
"UpdatedAt": "2026-02-15T07:43:49.078+03:00",
"DeletedAt": null,
"title": "Seed Post 34",
"images": "uploads/posts/post_34_6f7963.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 34.",
"slug": "seed-post-34"
},
{
"ID": 35,
"CreatedAt": "2026-02-15T07:43:49.258+03:00",
"UpdatedAt": "2026-02-15T07:43:49.258+03:00",
"DeletedAt": null,
"title": "Seed Post 35",
"images": "uploads/posts/post_35_30ee16.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 35.",
"slug": "seed-post-35"
}
]
},
{
"ID": 4,
"CreatedAt": "2026-02-15T07:43:42.16+03:00",
"UpdatedAt": "2026-02-15T07:43:42.16+03:00",
"DeletedAt": null,
"name": "mysql",
"posts": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:42.673+03:00",
"UpdatedAt": "2026-02-15T07:43:42.673+03:00",
"DeletedAt": null,
"title": "Seed Post 1",
"images": "uploads/posts/post_1_75e8c4.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 1.",
"slug": "seed-post-1"
},
{
"ID": 4,
"CreatedAt": "2026-02-15T07:43:43.484+03:00",
"UpdatedAt": "2026-02-15T07:43:43.484+03:00",
"DeletedAt": null,
"title": "Seed Post 4",
"images": "uploads/posts/post_4_3d6f3f.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 4.",
"slug": "seed-post-4"
},
{
"ID": 8,
"CreatedAt": "2026-02-15T07:43:44.393+03:00",
"UpdatedAt": "2026-02-15T07:43:44.393+03:00",
"DeletedAt": null,
"title": "Seed Post 8",
"images": "uploads/posts/post_8_80cbb5.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 8.",
"slug": "seed-post-8"
},
{
"ID": 21,
"CreatedAt": "2026-02-15T07:43:46.483+03:00",
"UpdatedAt": "2026-02-15T07:43:46.483+03:00",
"DeletedAt": null,
"title": "Seed Post 21",
"images": "uploads/posts/post_21_626d54.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 21.",
"slug": "seed-post-21"
},
{
"ID": 22,
"CreatedAt": "2026-02-15T07:43:46.611+03:00",
"UpdatedAt": "2026-02-15T07:43:46.611+03:00",
"DeletedAt": null,
"title": "Seed Post 22",
"images": "uploads/posts/post_22_2aa79a.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 22.",
"slug": "seed-post-22"
},
{
"ID": 23,
"CreatedAt": "2026-02-15T07:43:46.742+03:00",
"UpdatedAt": "2026-02-15T07:43:46.742+03:00",
"DeletedAt": null,
"title": "Seed Post 23",
"images": "uploads/posts/post_23_4ff46d.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 23.",
"slug": "seed-post-23"
},
{
"ID": 28,
"CreatedAt": "2026-02-15T07:43:47.546+03:00",
"UpdatedAt": "2026-02-15T07:43:47.546+03:00",
"DeletedAt": null,
"title": "Seed Post 28",
"images": "uploads/posts/post_28_a10a99.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 28.",
"slug": "seed-post-28"
}
]
}
],
"meta": {
"page": 1,
"per_page": 10,
"total": 13
}
}
Response headers
content-length: 16263
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:56:17 GMT
##############
listele sadece sotf delete
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/tags?trashed=only' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/tags?trashed=only
Server response
Code Details
200
Response body
Download
{
"data": [
{
"ID": 13,
"CreatedAt": "2026-02-17T12:50:12.778+03:00",
"UpdatedAt": "2026-02-17T12:51:54.295+03:00",
"DeletedAt": "2026-02-17T12:55:04.871+03:00",
"name": "test4444_update"
}
],
"meta": {
"page": 1,
"per_page": 10,
"total": 1
}
}
Response headers
content-length: 219
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:57:29 GMT
Responses
######
hard delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/admin/tags/13/hard' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/tags/13/hard
Server response
Code Details
200
Response body
Download
{
"message": "tag permanently deleted",
"tag_id": 13
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 49
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:58:06 GMT
vary: Origin
Responses
####################
restore
curl -X 'POST' \
'http://localhost:8080/api/v1/admin/tags/14/restore' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0' \
-d ''
Request URL
http://localhost:8080/api/v1/admin/tags/14/restore
Server response
Code Details
200
Response body
Download
{
"message": "tag restored successfully",
"tag_id": 14
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 51
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:59:31 GMT
vary: Origin
Responses
Code Description

305
content/admin_users.md Normal file
View File

@@ -0,0 +1,305 @@
admin users List
curl -X 'GET' \
'http://localhost:8080/api/v1/users/list' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/users/list
Server response
Code Details
200
Response body
Download
{
"count": 1,
"users": [
{
"ID": 1,
"CreatedAt": "2026-02-15T19:38:23.59+03:00",
"UpdatedAt": "2026-02-15T19:38:23.59+03:00",
"DeletedAt": null,
"username": "beyhano",
"email": "beyhan@beyhan.dev",
"email_verified": true,
"email_verified_at": "2026-02-18T19:39:41+03:00",
"is_admin": true,
"profiles": [
{
"ID": 1,
"CreatedAt": "2026-02-15T19:38:23.602+03:00",
"UpdatedAt": "2026-02-15T19:38:23.602+03:00",
"DeletedAt": null,
"user_id": 1,
"first_name": "Beyhan",
"last_name": "Oğur"
}
]
}
]
}
Response headers
content-length: 449
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 21:11:44 GMT
user add
curl -X 'POST' \
'http://localhost:8080/api/v1/auth/register' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"email": "test@test.com",
"first_name": "test",
"last_name": "tset",
"password": "password",
"username": "testuser"
}'
Request URL
http://localhost:8080/api/v1/auth/register
Server response
Code Details
201
Response body
Download
{
"message": "registration successful, please verify your email before login",
"user": {
"email": "test@test.com",
"email_verified": false,
"first_name": "test",
"id": 2,
"is_admin": false,
"last_name": "tset",
"username": "testuser"
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 217
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 21:14:11 GMT
vary: Origin
user soft delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/users/2' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/users/2
Server response
Code Details
200
Response body
Download
{
"message": "user soft-deleted successfully",
"user_id": 2
}
user soft delete list
curl -X 'GET' \
'http://localhost:8080/api/v1/users/list/deleted' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/users/list/deleted
Server response
Code Details
200
Response body
Download
{
"count": 1,
"users": [
{
"ID": 2,
"CreatedAt": "2026-02-16T00:14:11.53+03:00",
"UpdatedAt": "2026-02-16T00:14:11.53+03:00",
"DeletedAt": "2026-02-16T00:15:34.342+03:00",
"username": "testuser",
"email": "test@test.com",
"email_verified": false,
"is_admin": false,
"profiles": [
{
"ID": 2,
"CreatedAt": "2026-02-16T00:14:11.546+03:00",
"UpdatedAt": "2026-02-16T00:14:11.546+03:00",
"DeletedAt": null,
"user_id": 2,
"first_name": "test",
"last_name": "tset"
}
]
}
]
}
Response headers
content-length: 424
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 21:16:16 GMT
soft delete user restore
curl -X 'POST' \
'http://localhost:8080/api/v1/users/2/restore' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E' \
-d ''
Request URL
http://localhost:8080/api/v1/users/2/restore
Server response
Code Details
200
Response body
Download
{
"message": "user restored successfully",
"user_id": 2
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 52
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 21:17:10 GMT
vary: Origin
user hard delete
curl -X 'DELETE' \
'http://localhost:8080/api/v1/users/2/hard' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E'
Request URL
http://localhost:8080/api/v1/users/2/hard
Server response
Code Details
200
Response body
Download
{
"message": "user permanently deleted",
"user_id": 2
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 50
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 21:18:01 GMT
vary: Origin
user update
curl -X 'PUT' \
'http://localhost:8080/api/v1/users/3' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMTk0OTI4LCJpYXQiOjE3NzExODc3Mjh9.E6Kd65yQoIysJEDoHA-pVqLi4JvG4FBUeRdv8RiVh4E' \
-H 'Content-Type: multipart/form-data' \
-F 'username=Username' \
-F 'email=ewrwerwrwer@fgddfg.com' \
-F 'is_admin=false' \
-F 'password=12345678' \
-F 'first_name=First Name' \
-F 'last_name=Last Name' \
-F 'email_verified=true' \
-F 'avatar=@1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg;type=image/jpeg'
Request URL
http://localhost:8080/api/v1/users/3
Server response
Code Details
200
Response body
Download
{
"message": "user updated",
"user": {
"ID": 3,
"CreatedAt": "2026-02-16T00:23:49.301+03:00",
"UpdatedAt": "2026-02-16T01:05:17.776+03:00",
"DeletedAt": null,
"username": "Username",
"email": "ewrwerwrwer@fgddfg.com",
"email_verified": true,
"email_verified_at": "2026-02-16T01:05:17.698+03:00",
"is_admin": false,
"profiles": [
{
"ID": 3,
"CreatedAt": "2026-02-16T00:23:49.315+03:00",
"UpdatedAt": "2026-02-16T01:05:17.808+03:00",
"DeletedAt": null,
"user_id": 3,
"avatar_url": "/uploads/avatars/1771193117_1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg",
"first_name": "First Name",
"last_name": "Last Name"
}
]
}
}
Response headers
access-control-allow-credentials: true
access-control-allow-headers: Authorization,Content-Type,Accept,Origin,X-Requested-With
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,OPTIONS
access-control-allow-origin: http://localhost:8080
access-control-max-age: 600
content-length: 576
content-type: application/json; charset=utf-8
date: Sun,15 Feb 2026 22:05:17 GMT
vary: Origin

1
content/index.md Normal file
View File

@@ -0,0 +1 @@
## index MD