Files
go_nuxt_admin/content/admin_post.md
Beyhan Oğur 5285a0dd86 first commit
2026-04-26 22:07:47 +03:00

1176 lines
33 KiB
Markdown

css ler /public/css/ kalsorunde
* Bootstrap v5.2.0-beta1 kullanarak yapabilirsin
admin post listeleme
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/posts' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/posts
Server response
Code Details
200
Response body
Download
{
"data": [
{
"ID": 39,
"CreatedAt": "2026-02-15T07:43:49.767+03:00",
"UpdatedAt": "2026-02-15T07:43:49.767+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",
"categories": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:41.983+03:00",
"UpdatedAt": "2026-02-15T07:43:41.983+03:00",
"DeletedAt": null,
"title": "Yazilim",
"slug": "yazilim",
"description": "Yazilim kategorisi seed verisi"
},
{
"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"
}
],
"tags": [
{
"ID": 8,
"CreatedAt": "2026-02-15T07:43:42.227+03:00",
"UpdatedAt": "2026-02-15T07:43:42.227+03:00",
"DeletedAt": null,
"name": "docker"
},
{
"ID": 10,
"CreatedAt": "2026-02-15T07:43:42.259+03:00",
"UpdatedAt": "2026-02-15T07:43:42.259+03:00",
"DeletedAt": null,
"name": "devops"
}
]
},
{
"ID": 38,
"CreatedAt": "2026-02-15T07:43:49.637+03:00",
"UpdatedAt": "2026-02-15T07:43:49.637+03:00",
"DeletedAt": null,
"title": "Seed Post 38",
"images": "uploads/posts/post_38_4df36e.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 38.",
"slug": "seed-post-38",
"categories": [
{
"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"
}
],
"tags": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:42.106+03:00",
"UpdatedAt": "2026-02-15T07:43:42.106+03:00",
"DeletedAt": null,
"name": "go"
}
]
},
{
"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",
"categories": [
{
"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
}
],
"tags": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
},
{
"ID": 11,
"CreatedAt": "2026-02-15T07:43:42.277+03:00",
"UpdatedAt": "2026-02-15T07:43:42.277+03:00",
"DeletedAt": null,
"name": "security"
}
]
},
{
"ID": 36,
"CreatedAt": "2026-02-15T07:43:49.39+03:00",
"UpdatedAt": "2026-02-15T07:43:49.39+03:00",
"DeletedAt": null,
"title": "Seed Post 36",
"images": "uploads/posts/post_36_36c542.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 36.",
"slug": "seed-post-36",
"categories": [
{
"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"
}
],
"tags": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:42.106+03:00",
"UpdatedAt": "2026-02-15T07:43:42.106+03:00",
"DeletedAt": null,
"name": "go"
}
]
},
{
"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",
"categories": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:41.959+03:00",
"UpdatedAt": "2026-02-15T07:43:41.959+03:00",
"DeletedAt": null,
"title": "Teknoloji",
"slug": "teknoloji",
"description": "Teknoloji kategorisi seed verisi"
},
{
"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"
}
],
"tags": [
{
"ID": 5,
"CreatedAt": "2026-02-15T07:43:42.176+03:00",
"UpdatedAt": "2026-02-15T07:43:42.176+03:00",
"DeletedAt": null,
"name": "redis"
},
{
"ID": 10,
"CreatedAt": "2026-02-15T07:43:42.259+03:00",
"UpdatedAt": "2026-02-15T07:43:42.259+03:00",
"DeletedAt": null,
"name": "devops"
}
]
},
{
"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",
"categories": [
{
"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"
}
],
"tags": [
{
"ID": 5,
"CreatedAt": "2026-02-15T07:43:42.176+03:00",
"UpdatedAt": "2026-02-15T07:43:42.176+03:00",
"DeletedAt": null,
"name": "redis"
},
{
"ID": 6,
"CreatedAt": "2026-02-15T07:43:42.192+03:00",
"UpdatedAt": "2026-02-15T07:43:42.192+03:00",
"DeletedAt": null,
"name": "jwt"
},
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:42.242+03:00",
"UpdatedAt": "2026-02-15T07:43:42.242+03:00",
"DeletedAt": null,
"name": "cloud"
}
]
},
{
"ID": 33,
"CreatedAt": "2026-02-15T07:43:48.453+03:00",
"UpdatedAt": "2026-02-15T07:43:48.453+03:00",
"DeletedAt": null,
"title": "Seed Post 33",
"images": "uploads/posts/post_33_640f31.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 33.",
"slug": "seed-post-33",
"categories": [
{
"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"
},
{
"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"
}
],
"tags": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:42.106+03:00",
"UpdatedAt": "2026-02-15T07:43:42.106+03:00",
"DeletedAt": null,
"name": "go"
},
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
}
]
},
{
"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",
"categories": [
{
"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": 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"
}
],
"tags": [
{
"ID": 8,
"CreatedAt": "2026-02-15T07:43:42.227+03:00",
"UpdatedAt": "2026-02-15T07:43:42.227+03:00",
"DeletedAt": null,
"name": "docker"
}
]
},
{
"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",
"categories": [
{
"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"
}
],
"tags": [
{
"ID": 7,
"CreatedAt": "2026-02-15T07:43:42.212+03:00",
"UpdatedAt": "2026-02-15T07:43:42.212+03:00",
"DeletedAt": null,
"name": "api"
},
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:42.242+03:00",
"UpdatedAt": "2026-02-15T07:43:42.242+03:00",
"DeletedAt": null,
"name": "cloud"
},
{
"ID": 12,
"CreatedAt": "2026-02-15T07:43:42.295+03:00",
"UpdatedAt": "2026-02-15T07:43:42.295+03:00",
"DeletedAt": null,
"name": "testing"
}
]
},
{
"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",
"categories": [
{
"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": 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"
}
],
"tags": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
},
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:42.242+03:00",
"UpdatedAt": "2026-02-15T07:43:42.242+03:00",
"DeletedAt": null,
"name": "cloud"
},
{
"ID": 11,
"CreatedAt": "2026-02-15T07:43:42.277+03:00",
"UpdatedAt": "2026-02-15T07:43:42.277+03:00",
"DeletedAt": null,
"name": "security"
}
]
}
],
"meta": {
"page": 1,
"per_page": 10,
"total": 39
}
}
Response headers
content-length: 8407
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:00:48 GMT
#######################################
sadece soft delete olmuslar listesi
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/posts?trashed=only' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/posts?trashed=only
Server response
Code Details
200
Response body
Download
{
"data": [
{
"ID": 40,
"CreatedAt": "2026-02-17T11:47:39.036+03:00",
"UpdatedAt": "2026-02-17T11:49:52.659+03:00",
"DeletedAt": "2026-02-17T11:50:28.136+03:00",
"title": "update",
"images": "[\"/uploads/posts/1771318192657846000_1657955547black-google-icon.png\"]",
"content": "update",
"slug": "update",
"categories": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:41.983+03:00",
"UpdatedAt": "2026-02-15T07:43:41.983+03:00",
"DeletedAt": null,
"title": "Yazilim",
"slug": "yazilim",
"description": "Yazilim kategorisi seed verisi"
}
],
"tags": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
}
]
}
],
"meta": {
"page": 1,
"per_page": 10,
"total": 1
}
}
Response headers
content-length: 679
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:04:25 GMT
##############
postlistersi hepsi
curl -X 'GET' \
'http://localhost:8080/api/v1/admin/posts?trashed=with' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/admin/posts?trashed=with
Server response
Code Details
200
Response body
Download
{
"data": [
{
"ID": 40,
"CreatedAt": "2026-02-17T11:47:39.036+03:00",
"UpdatedAt": "2026-02-17T11:49:52.659+03:00",
"DeletedAt": "2026-02-17T11:50:28.136+03:00",
"title": "update",
"images": "[\"/uploads/posts/1771318192657846000_1657955547black-google-icon.png\"]",
"content": "update",
"slug": "update",
"categories": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:41.983+03:00",
"UpdatedAt": "2026-02-15T07:43:41.983+03:00",
"DeletedAt": null,
"title": "Yazilim",
"slug": "yazilim",
"description": "Yazilim kategorisi seed verisi"
}
],
"tags": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
}
]
},
{
"ID": 39,
"CreatedAt": "2026-02-15T07:43:49.767+03:00",
"UpdatedAt": "2026-02-15T07:43:49.767+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",
"categories": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:41.983+03:00",
"UpdatedAt": "2026-02-15T07:43:41.983+03:00",
"DeletedAt": null,
"title": "Yazilim",
"slug": "yazilim",
"description": "Yazilim kategorisi seed verisi"
},
{
"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"
}
],
"tags": [
{
"ID": 8,
"CreatedAt": "2026-02-15T07:43:42.227+03:00",
"UpdatedAt": "2026-02-15T07:43:42.227+03:00",
"DeletedAt": null,
"name": "docker"
},
{
"ID": 10,
"CreatedAt": "2026-02-15T07:43:42.259+03:00",
"UpdatedAt": "2026-02-15T07:43:42.259+03:00",
"DeletedAt": null,
"name": "devops"
}
]
},
{
"ID": 38,
"CreatedAt": "2026-02-15T07:43:49.637+03:00",
"UpdatedAt": "2026-02-15T07:43:49.637+03:00",
"DeletedAt": null,
"title": "Seed Post 38",
"images": "uploads/posts/post_38_4df36e.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 38.",
"slug": "seed-post-38",
"categories": [
{
"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"
}
],
"tags": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:42.106+03:00",
"UpdatedAt": "2026-02-15T07:43:42.106+03:00",
"DeletedAt": null,
"name": "go"
}
]
},
{
"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",
"categories": [
{
"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
}
],
"tags": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
},
{
"ID": 11,
"CreatedAt": "2026-02-15T07:43:42.277+03:00",
"UpdatedAt": "2026-02-15T07:43:42.277+03:00",
"DeletedAt": null,
"name": "security"
}
]
},
{
"ID": 36,
"CreatedAt": "2026-02-15T07:43:49.39+03:00",
"UpdatedAt": "2026-02-15T07:43:49.39+03:00",
"DeletedAt": null,
"title": "Seed Post 36",
"images": "uploads/posts/post_36_36c542.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 36.",
"slug": "seed-post-36",
"categories": [
{
"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"
}
],
"tags": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:42.106+03:00",
"UpdatedAt": "2026-02-15T07:43:42.106+03:00",
"DeletedAt": null,
"name": "go"
}
]
},
{
"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",
"categories": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:41.959+03:00",
"UpdatedAt": "2026-02-15T07:43:41.959+03:00",
"DeletedAt": null,
"title": "Teknoloji",
"slug": "teknoloji",
"description": "Teknoloji kategorisi seed verisi"
},
{
"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"
}
],
"tags": [
{
"ID": 5,
"CreatedAt": "2026-02-15T07:43:42.176+03:00",
"UpdatedAt": "2026-02-15T07:43:42.176+03:00",
"DeletedAt": null,
"name": "redis"
},
{
"ID": 10,
"CreatedAt": "2026-02-15T07:43:42.259+03:00",
"UpdatedAt": "2026-02-15T07:43:42.259+03:00",
"DeletedAt": null,
"name": "devops"
}
]
},
{
"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",
"categories": [
{
"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"
}
],
"tags": [
{
"ID": 5,
"CreatedAt": "2026-02-15T07:43:42.176+03:00",
"UpdatedAt": "2026-02-15T07:43:42.176+03:00",
"DeletedAt": null,
"name": "redis"
},
{
"ID": 6,
"CreatedAt": "2026-02-15T07:43:42.192+03:00",
"UpdatedAt": "2026-02-15T07:43:42.192+03:00",
"DeletedAt": null,
"name": "jwt"
},
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:42.242+03:00",
"UpdatedAt": "2026-02-15T07:43:42.242+03:00",
"DeletedAt": null,
"name": "cloud"
}
]
},
{
"ID": 33,
"CreatedAt": "2026-02-15T07:43:48.453+03:00",
"UpdatedAt": "2026-02-15T07:43:48.453+03:00",
"DeletedAt": null,
"title": "Seed Post 33",
"images": "uploads/posts/post_33_640f31.jpg",
"content": "Bu bir test icerigidir. Gonderi numarasi 33.",
"slug": "seed-post-33",
"categories": [
{
"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"
},
{
"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"
}
],
"tags": [
{
"ID": 1,
"CreatedAt": "2026-02-15T07:43:42.106+03:00",
"UpdatedAt": "2026-02-15T07:43:42.106+03:00",
"DeletedAt": null,
"name": "go"
},
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
}
]
},
{
"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",
"categories": [
{
"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": 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"
}
],
"tags": [
{
"ID": 8,
"CreatedAt": "2026-02-15T07:43:42.227+03:00",
"UpdatedAt": "2026-02-15T07:43:42.227+03:00",
"DeletedAt": null,
"name": "docker"
}
]
},
{
"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",
"categories": [
{
"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"
}
],
"tags": [
{
"ID": 7,
"CreatedAt": "2026-02-15T07:43:42.212+03:00",
"UpdatedAt": "2026-02-15T07:43:42.212+03:00",
"DeletedAt": null,
"name": "api"
},
{
"ID": 9,
"CreatedAt": "2026-02-15T07:43:42.242+03:00",
"UpdatedAt": "2026-02-15T07:43:42.242+03:00",
"DeletedAt": null,
"name": "cloud"
},
{
"ID": 12,
"CreatedAt": "2026-02-15T07:43:42.295+03:00",
"UpdatedAt": "2026-02-15T07:43:42.295+03:00",
"DeletedAt": null,
"name": "testing"
}
]
}
],
"meta": {
"page": 1,
"per_page": 10,
"total": 40
}
}
Response headers
content-length: 7964
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 09:05:28 GMT
#######################################
post ekleme
curl -X 'POST' \
'http://localhost:8080/api/v1/posts' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0' \
-H 'Content-Type: multipart/form-data' \
-F 'title=sdf' \
-F 'content=sdf' \
-F 'category_ids=2' \
-F 'tag_ids=2' \
-F 'images=@1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg;type=image/jpeg'
Request URL
http://localhost:8080/api/v1/posts
Server response
Code Details
201
Response body
Download
{
"ID": 40,
"CreatedAt": "2026-02-17T08:47:39.03634Z",
"UpdatedAt": "2026-02-17T08:47:39.03634Z",
"DeletedAt": null,
"title": "sdf",
"images": "[\"/uploads/posts/1771318059022104000_1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg\"]",
"content": "sdf",
"slug": "sdf",
"categories": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:41.983+03:00",
"UpdatedAt": "2026-02-15T07:43:41.983+03:00",
"DeletedAt": null,
"title": "Yazilim",
"slug": "yazilim",
"description": "Yazilim kategorisi seed verisi"
}
],
"tags": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
}
]
}
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: 603
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 08:47
#######################################
post tekli getirme
curl -X 'GET' \
'http://localhost:8080/api/v1/posts/40' \
-H 'accept: application/json'
Request URL
http://localhost:8080/api/v1/posts/40
Server response
Code Details
200
Response body
Download
{
"ID": 40,
"CreatedAt": "2026-02-17T11:47:39.036+03:00",
"UpdatedAt": "2026-02-17T11:47:39.036+03:00",
"DeletedAt": null,
"title": "sdf",
"images": "[\"/uploads/posts/1771318059022104000_1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg\"]",
"content": "sdf",
"slug": "sdf",
"categories": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:41.983+03:00",
"UpdatedAt": "2026-02-15T07:43:41.983+03:00",
"DeletedAt": null,
"title": "Yazilim",
"slug": "yazilim",
"description": "Yazilim kategorisi seed verisi"
}
],
"tags": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
}
]
}
Response headers
content-length: 609
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 08:48:39 GMT
Responses
Code Description
#######################################
post güncelleme
curl -X 'PUT' \
'http://localhost:8080/api/v1/posts/40' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0' \
-H 'Content-Type: multipart/form-data' \
-F 'title=update' \
-F 'content=update' \
-F 'category_ids=2' \
-F 'tag_ids=2' \
-F 'images=@1657955547black-google-icon.png;type=image/png'
Request URL
http://localhost:8080/api/v1/posts/40
Server response
Code Details
200
Response body
Download
{
"ID": 40,
"CreatedAt": "2026-02-17T11:47:39.036+03:00",
"UpdatedAt": "2026-02-17T08:49:52.659867Z",
"DeletedAt": null,
"title": "update",
"images": "[\"/uploads/posts/1771318192657846000_1657955547black-google-icon.png\"]",
"content": "update",
"slug": "update",
"categories": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:41.983+03:00",
"UpdatedAt": "2026-02-15T07:43:41.983+03:00",
"DeletedAt": null,
"title": "Yazilim",
"slug": "yazilim",
"description": "Yazilim kategorisi seed verisi"
}
],
"tags": [
{
"ID": 2,
"CreatedAt": "2026-02-15T07:43:42.123+03:00",
"UpdatedAt": "2026-02-15T07:43:42.123+03:00",
"DeletedAt": null,
"name": "fiber"
}
]
}
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: 597
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 08:49:51 GMT
vary: Origin
#######################################
curl -X 'DELETE' \
'http://localhost:8080/api/v1/posts/40' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImJleWhhbkBiZXloYW4uZGV2IiwiaXNfYWRtaW4iOnRydWUsImZpcnN0X25hbWUiOiJCZXloYW4iLCJsYXN0X25hbWUiOiJPxJ91ciIsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJzdWIiOiIxIiwiZXhwIjoxNzcxMzI1MjM0LCJpYXQiOjE3NzEzMTgwMzR9.PlL8aXxN-6U6yZE1nNQJ_sTdnzwni12p_JxoB1RRfy0'
Request URL
http://localhost:8080/api/v1/posts/40
Server response
Code Details
200
Response body
Download
{
"message": "post 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: 26
content-type: application/json; charset=utf-8
date: Tue,17 Feb 2026 08:50:27 GMT
vary: Origin
Responses
Code Description
200
OK