2025 lines
52 KiB
Markdown
2025 lines
52 KiB
Markdown
Proje `frontend` klasörü altında yapılandırılmıştır. Gerekli tüm paketler (`package.json`) önceden yüklenmiştir:
|
||
- **Framework:** Next.js 16 (App Router)
|
||
- **UI:** React 19, Tailwind CSS v4, shadcn/ui
|
||
- **İkonlar:** lucide-react
|
||
- **Validasyon:** Zod
|
||
- **Auth:** NextAuth.js
|
||
- **Bildirimler:** SweetAlert2
|
||
- **Güvenlik:** nextjs-turnstile (Cloudflare)
|
||
- **Senin ile sadece Frontend Üstünde Çalışıyorum**
|
||
- **Backend ile ilgili bir şey Yapman Gerekirse Bana Söylemen Yeterli**
|
||
|
||
|
||
post ekleme
|
||
curl -X 'POST' \
|
||
'http://localhost:8080/api/v1/admin/posts' \
|
||
-H 'accept: application/json' \
|
||
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzE0MTYyMjcsImlhdCI6MTc3MTQwNTQyNywiaXNfYWRtaW4iOnRydWUsInN1YiI6MiwidG9rZW5fdHlwZSI6ImFjY2VzcyJ9.X6mTnoiYJ1CUlarQlmwka0VpuDxYTIAV0QfS72AuBXs' \
|
||
-H 'Content-Type: multipart/form-data' \
|
||
-F 'title=sdfsdf' \
|
||
-F 'slug=sdfsdf' \
|
||
-F 'content=sdfsdf' \
|
||
-F 'category_ids=1' \
|
||
-F 'tag_names=tag' \
|
||
-F 'images=@1632286445-en-sqdgame-main-playgrou-5BVA_cover.jpg;type=image/jpeg' \
|
||
-F 'width=111' \
|
||
-F 'height=111' \
|
||
-F 'quality=100' \
|
||
-F 'format=webp'
|
||
|
||
Request URL
|
||
|
||
http://localhost:8080/api/v1/admin/posts
|
||
|
||
Server response
|
||
Code Details
|
||
201
|
||
Response body
|
||
|
||
{
|
||
"data": {
|
||
"ID": 281,
|
||
"CreatedAt": "2026-02-18T13:54:25.365+03:00",
|
||
"UpdatedAt": "2026-02-18T13:54:25.396+03:00",
|
||
"DeletedAt": null,
|
||
"title": "sdfsdf",
|
||
"images": "/uploads/posts/post-1771412065363931000-0.jpg",
|
||
"content": "sdfsdf",
|
||
"slug": "sdfsdf",
|
||
"tags": [
|
||
{
|
||
"ID": 12,
|
||
"CreatedAt": "2026-02-18T13:54:25.391+03:00",
|
||
"UpdatedAt": "2026-02-18T13:54:25.391+03:00",
|
||
"DeletedAt": null,
|
||
"name": "tag"
|
||
}
|
||
],
|
||
"width": 111,
|
||
"height": 111,
|
||
"quality": 100,
|
||
"format": "webp"
|
||
}
|
||
}
|
||
|
||
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: 425
|
||
content-type: application/json; charset=utf-8
|
||
date: Wed,18 Feb 2026 10:54:25 GMT
|
||
vary: Origin
|
||
|
||
########
|
||
qery olmadan
|
||
curl -X 'GET' \
|
||
'http://localhost:8080/api/v1/admin/posts' \
|
||
-H 'accept: application/json' \
|
||
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzE0MTYyMjcsImlhdCI6MTc3MTQwNTQyNywiaXNfYWRtaW4iOnRydWUsInN1YiI6MiwidG9rZW5fdHlwZSI6ImFjY2VzcyJ9.X6mTnoiYJ1CUlarQlmwka0VpuDxYTIAV0QfS72AuBXs'
|
||
|
||
Request URL
|
||
|
||
http://localhost:8080/api/v1/admin/posts
|
||
|
||
Server response
|
||
Code Details
|
||
200
|
||
Response body
|
||
|
||
{
|
||
"items": [
|
||
{
|
||
"ID": 281,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"tags": [
|
||
{
|
||
"ID": 12,
|
||
"CreatedAt": "2026-02-18T13:54:25.391+03:00",
|
||
"UpdatedAt": "2026-02-18T13:54:25.391+03:00",
|
||
"DeletedAt": null,
|
||
"name": "tag"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 279,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 123,
|
||
"CreatedAt": "2026-02-17T22:50:50.303+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.303+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Sanat",
|
||
"slug": "sanat-1771357850300423000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 278,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 109,
|
||
"CreatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Teknoloji",
|
||
"slug": "teknoloji-1771357849936045000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
},
|
||
{
|
||
"ID": 6,
|
||
"CreatedAt": "2026-02-17T22:37:22.749+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.749+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Coding"
|
||
},
|
||
{
|
||
"ID": 9,
|
||
"CreatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Food"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 277,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 109,
|
||
"CreatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Teknoloji",
|
||
"slug": "teknoloji-1771357849936045000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 276,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 3,
|
||
"CreatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Web"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
},
|
||
{
|
||
"ID": 9,
|
||
"CreatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Food"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 275,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 117,
|
||
"CreatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Gezi",
|
||
"slug": "gezi-1771357850126021000",
|
||
"parent_id": 114
|
||
},
|
||
{
|
||
"ID": 120,
|
||
"CreatedAt": "2026-02-17T22:50:50.164+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.164+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Tatlılar",
|
||
"slug": "tatlilar-1771357850161422000",
|
||
"parent_id": 119
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 274,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
},
|
||
{
|
||
"ID": 9,
|
||
"CreatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Food"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 273,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 116,
|
||
"CreatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Spor",
|
||
"slug": "spor-1771357850110558000",
|
||
"parent_id": 114
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
},
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 272,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 271,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 111,
|
||
"CreatedAt": "2026-02-17T22:50:50.054+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.054+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Donanım",
|
||
"slug": "donanim-1771357850051551000",
|
||
"parent_id": 109
|
||
},
|
||
{
|
||
"ID": 119,
|
||
"CreatedAt": "2026-02-17T22:50:50.153+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.153+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yemek",
|
||
"slug": "yemek-1771357850149748000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 2,
|
||
"CreatedAt": "2026-02-17T22:37:22.698+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.698+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Gin"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 270,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 109,
|
||
"CreatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Teknoloji",
|
||
"slug": "teknoloji-1771357849936045000"
|
||
},
|
||
{
|
||
"ID": 119,
|
||
"CreatedAt": "2026-02-17T22:50:50.153+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.153+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yemek",
|
||
"slug": "yemek-1771357850149748000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
},
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
},
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 269,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 6,
|
||
"CreatedAt": "2026-02-17T22:37:22.749+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.749+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Coding"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
},
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 268,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 124,
|
||
"CreatedAt": "2026-02-17T22:50:50.314+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.314+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Sinema",
|
||
"slug": "sinema-1771357850310914000",
|
||
"parent_id": 123
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 267,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 116,
|
||
"CreatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Spor",
|
||
"slug": "spor-1771357850110558000",
|
||
"parent_id": 114
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 3,
|
||
"CreatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Web"
|
||
},
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 266,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
},
|
||
{
|
||
"ID": 117,
|
||
"CreatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Gezi",
|
||
"slug": "gezi-1771357850126021000",
|
||
"parent_id": 114
|
||
},
|
||
{
|
||
"ID": 121,
|
||
"CreatedAt": "2026-02-17T22:50:50.175+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.175+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Ana Yemekler",
|
||
"slug": "ana-yemekler-1771357850172046000",
|
||
"parent_id": 119
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
},
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 265,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 116,
|
||
"CreatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Spor",
|
||
"slug": "spor-1771357850110558000",
|
||
"parent_id": 114
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 264,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 124,
|
||
"CreatedAt": "2026-02-17T22:50:50.314+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.314+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Sinema",
|
||
"slug": "sinema-1771357850310914000",
|
||
"parent_id": 123
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 3,
|
||
"CreatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Web"
|
||
},
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 263,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 113,
|
||
"CreatedAt": "2026-02-17T22:50:50.078+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.078+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Mobil",
|
||
"slug": "mobil-1771357850074407000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 3,
|
||
"CreatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Web"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 262,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 117,
|
||
"CreatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Gezi",
|
||
"slug": "gezi-1771357850126021000",
|
||
"parent_id": 114
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 2,
|
||
"CreatedAt": "2026-02-17T22:37:22.698+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.698+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Gin"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 261,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 120,
|
||
"CreatedAt": "2026-02-17T22:50:50.164+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.164+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Tatlılar",
|
||
"slug": "tatlilar-1771357850161422000",
|
||
"parent_id": 119
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
},
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
},
|
||
{
|
||
"ID": 9,
|
||
"CreatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Food"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
}
|
||
],
|
||
"page": 1,
|
||
"per_page": 20,
|
||
"total": 40
|
||
}
|
||
|
||
Response headers
|
||
|
||
content-type: application/json; charset=utf-8
|
||
date: Wed,18 Feb 2026 10:55:25 GMT
|
||
transfer-encoding: chunked
|
||
|
||
Responses
|
||
Code Description
|
||
200
|
||
|
||
OK
|
||
|
||
{
|
||
"items": [
|
||
{
|
||
###################
|
||
|
||
sadece softdelete olanlar
|
||
|
||
curl -X 'GET' \
|
||
'http://localhost:8080/api/v1/admin/posts?soft=only' \
|
||
-H 'accept: application/json' \
|
||
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzE0MTYyMjcsImlhdCI6MTc3MTQwNTQyNywiaXNfYWRtaW4iOnRydWUsInN1YiI6MiwidG9rZW5fdHlwZSI6ImFjY2VzcyJ9.X6mTnoiYJ1CUlarQlmwka0VpuDxYTIAV0QfS72AuBXs'
|
||
|
||
Request URL
|
||
|
||
http://localhost:8080/api/v1/admin/posts?soft=only
|
||
|
||
Server response
|
||
Code Details
|
||
200
|
||
Response body
|
||
|
||
{
|
||
"items": [
|
||
{
|
||
"ID": 280,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 126,
|
||
"CreatedAt": "2026-02-17T22:50:50.445+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.445+03:00",
|
||
"DeletedAt": "2026-02-18T07:13:44.315+03:00",
|
||
"title": "Edebiyat",
|
||
"slug": "edebiyat-1771357850441632000",
|
||
"parent_id": 123
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
}
|
||
],
|
||
"page": 1,
|
||
"per_page": 20,
|
||
"total": 1
|
||
}
|
||
|
||
Response headers
|
||
|
||
content-length: 591
|
||
content-type: application/json; charset=utf-8
|
||
date: Wed,18 Feb 2026 10:56:08 GMT
|
||
|
||
###################
|
||
|
||
hepsi
|
||
curl -X 'GET' \
|
||
'http://localhost:8080/api/v1/admin/posts?soft=with' \
|
||
-H 'accept: application/json' \
|
||
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzE0MTYyMjcsImlhdCI6MTc3MTQwNTQyNywiaXNfYWRtaW4iOnRydWUsInN1YiI6MiwidG9rZW5fdHlwZSI6ImFjY2VzcyJ9.X6mTnoiYJ1CUlarQlmwka0VpuDxYTIAV0QfS72AuBXs'
|
||
|
||
Request URL
|
||
|
||
http://localhost:8080/api/v1/admin/posts?soft=with
|
||
|
||
Server response
|
||
Code Details
|
||
200
|
||
Response body
|
||
|
||
{
|
||
"items": [
|
||
{
|
||
"ID": 281,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"tags": [
|
||
{
|
||
"ID": 12,
|
||
"CreatedAt": "2026-02-18T13:54:25.391+03:00",
|
||
"UpdatedAt": "2026-02-18T13:54:25.391+03:00",
|
||
"DeletedAt": null,
|
||
"name": "tag"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 280,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 126,
|
||
"CreatedAt": "2026-02-17T22:50:50.445+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.445+03:00",
|
||
"DeletedAt": "2026-02-18T07:13:44.315+03:00",
|
||
"title": "Edebiyat",
|
||
"slug": "edebiyat-1771357850441632000",
|
||
"parent_id": 123
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 279,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 123,
|
||
"CreatedAt": "2026-02-17T22:50:50.303+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.303+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Sanat",
|
||
"slug": "sanat-1771357850300423000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 1,
|
||
"CreatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"DeletedAt": "2026-02-18T06:52:13.229+03:00",
|
||
"name": "Go"
|
||
},
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 278,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 109,
|
||
"CreatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Teknoloji",
|
||
"slug": "teknoloji-1771357849936045000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
},
|
||
{
|
||
"ID": 6,
|
||
"CreatedAt": "2026-02-17T22:37:22.749+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.749+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Coding"
|
||
},
|
||
{
|
||
"ID": 9,
|
||
"CreatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Food"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 277,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 109,
|
||
"CreatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Teknoloji",
|
||
"slug": "teknoloji-1771357849936045000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 276,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 3,
|
||
"CreatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Web"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
},
|
||
{
|
||
"ID": 9,
|
||
"CreatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Food"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 275,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 117,
|
||
"CreatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Gezi",
|
||
"slug": "gezi-1771357850126021000",
|
||
"parent_id": 114
|
||
},
|
||
{
|
||
"ID": 120,
|
||
"CreatedAt": "2026-02-17T22:50:50.164+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.164+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Tatlılar",
|
||
"slug": "tatlilar-1771357850161422000",
|
||
"parent_id": 119
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 1,
|
||
"CreatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"DeletedAt": "2026-02-18T06:52:13.229+03:00",
|
||
"name": "Go"
|
||
},
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 274,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 1,
|
||
"CreatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"DeletedAt": "2026-02-18T06:52:13.229+03:00",
|
||
"name": "Go"
|
||
},
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
},
|
||
{
|
||
"ID": 9,
|
||
"CreatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.788+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Food"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 273,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 116,
|
||
"CreatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Spor",
|
||
"slug": "spor-1771357850110558000",
|
||
"parent_id": 114
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 1,
|
||
"CreatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"DeletedAt": "2026-02-18T06:52:13.229+03:00",
|
||
"name": "Go"
|
||
},
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
},
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 272,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 271,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 111,
|
||
"CreatedAt": "2026-02-17T22:50:50.054+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.054+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Donanım",
|
||
"slug": "donanim-1771357850051551000",
|
||
"parent_id": 109
|
||
},
|
||
{
|
||
"ID": 119,
|
||
"CreatedAt": "2026-02-17T22:50:50.153+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.153+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yemek",
|
||
"slug": "yemek-1771357850149748000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 2,
|
||
"CreatedAt": "2026-02-17T22:37:22.698+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.698+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Gin"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 270,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 109,
|
||
"CreatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.021+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Teknoloji",
|
||
"slug": "teknoloji-1771357849936045000"
|
||
},
|
||
{
|
||
"ID": 119,
|
||
"CreatedAt": "2026-02-17T22:50:50.153+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.153+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yemek",
|
||
"slug": "yemek-1771357850149748000"
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
},
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
},
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 269,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 6,
|
||
"CreatedAt": "2026-02-17T22:37:22.749+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.749+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Coding"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
},
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 268,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 124,
|
||
"CreatedAt": "2026-02-17T22:50:50.314+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.314+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Sinema",
|
||
"slug": "sinema-1771357850310914000",
|
||
"parent_id": 123
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 7,
|
||
"CreatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.762+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Life"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 267,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 116,
|
||
"CreatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Spor",
|
||
"slug": "spor-1771357850110558000",
|
||
"parent_id": 114
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 3,
|
||
"CreatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Web"
|
||
},
|
||
{
|
||
"ID": 5,
|
||
"CreatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.736+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Tutorial"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 266,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 110,
|
||
"CreatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.043+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Yazılım",
|
||
"slug": "yazilim-1771357850031651000",
|
||
"parent_id": 109
|
||
},
|
||
{
|
||
"ID": 117,
|
||
"CreatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Gezi",
|
||
"slug": "gezi-1771357850126021000",
|
||
"parent_id": 114
|
||
},
|
||
{
|
||
"ID": 121,
|
||
"CreatedAt": "2026-02-17T22:50:50.175+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.175+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Ana Yemekler",
|
||
"slug": "ana-yemekler-1771357850172046000",
|
||
"parent_id": 119
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 1,
|
||
"CreatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"DeletedAt": "2026-02-18T06:52:13.229+03:00",
|
||
"name": "Go"
|
||
},
|
||
{
|
||
"ID": 8,
|
||
"CreatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.775+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Nature"
|
||
},
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 265,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 116,
|
||
"CreatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.113+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Spor",
|
||
"slug": "spor-1771357850110558000",
|
||
"parent_id": 114
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 4,
|
||
"CreatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.723+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Api"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 264,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 118,
|
||
"CreatedAt": "2026-02-17T22:50:50.141+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.141+03:00",
|
||
"DeletedAt": "2026-02-18T07:11:49.576+03:00",
|
||
"title": "Dekorasyon",
|
||
"slug": "dekorasyon-1771357850137823000",
|
||
"parent_id": 114
|
||
},
|
||
{
|
||
"ID": 124,
|
||
"CreatedAt": "2026-02-17T22:50:50.314+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.314+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Sinema",
|
||
"slug": "sinema-1771357850310914000",
|
||
"parent_id": 123
|
||
},
|
||
{
|
||
"ID": 125,
|
||
"CreatedAt": "2026-02-17T22:50:50.432+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.432+03:00",
|
||
"DeletedAt": "2026-02-18T07:39:50.011+03:00",
|
||
"title": "Müzik",
|
||
"slug": "muzik-1771357850322048000",
|
||
"parent_id": 123
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 1,
|
||
"CreatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.684+03:00",
|
||
"DeletedAt": "2026-02-18T06:52:13.229+03:00",
|
||
"name": "Go"
|
||
},
|
||
{
|
||
"ID": 3,
|
||
"CreatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Web"
|
||
},
|
||
{
|
||
"ID": 10,
|
||
"CreatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.801+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Travel"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 263,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 113,
|
||
"CreatedAt": "2026-02-17T22:50:50.078+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.078+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Mobil",
|
||
"slug": "mobil-1771357850074407000",
|
||
"parent_id": 109
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 3,
|
||
"CreatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.711+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Web"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
},
|
||
{
|
||
"ID": 262,
|
||
"CreatedAt": "0001-01-01T00:00:00Z",
|
||
"UpdatedAt": "0001-01-01T00:00:00Z",
|
||
"DeletedAt": null,
|
||
"title": "",
|
||
"images": "",
|
||
"slug": "",
|
||
"categories": [
|
||
{
|
||
"ID": 117,
|
||
"CreatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"UpdatedAt": "2026-02-17T22:50:50.129+03:00",
|
||
"DeletedAt": null,
|
||
"title": "Gezi",
|
||
"slug": "gezi-1771357850126021000",
|
||
"parent_id": 114
|
||
}
|
||
],
|
||
"tags": [
|
||
{
|
||
"ID": 2,
|
||
"CreatedAt": "2026-02-17T22:37:22.698+03:00",
|
||
"UpdatedAt": "2026-02-17T22:37:22.698+03:00",
|
||
"DeletedAt": null,
|
||
"name": "Gin"
|
||
}
|
||
],
|
||
"width": 0,
|
||
"height": 0,
|
||
"quality": 0,
|
||
"format": ""
|
||
}
|
||
],
|
||
"page": 1,
|
||
"per_page": 20,
|
||
"total": 41
|
||
}
|
||
|
||
Response headers
|
||
|
||
content-type: application/json; charset=utf-8
|
||
date: Wed,18 Feb 2026 10:56:52 GMT
|
||
transfer-encoding: chunked
|
||
|
||
##########
|
||
Update
|
||
curl -X 'PUT' \
|
||
'http://localhost:8080/api/v1/admin/posts/242' \
|
||
-H 'accept: application/json' \
|
||
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzE0MTYyMjcsImlhdCI6MTc3MTQwNTQyNywiaXNfYWRtaW4iOnRydWUsInN1YiI6MiwidG9rZW5fdHlwZSI6ImFjY2VzcyJ9.X6mTnoiYJ1CUlarQlmwka0VpuDxYTIAV0QfS72AuBXs' \
|
||
-H 'Content-Type: multipart/form-data' \
|
||
-F 'title=qweqwe' \
|
||
-F 'slug=eeeee' \
|
||
-F 'content=wewewewee wewe' \
|
||
-F 'category_ids=2' \
|
||
-F 'tag_names=tags' \
|
||
-F 'images=@845660.png;type=image/png' \
|
||
-F 'width=11' \
|
||
-F 'height=11' \
|
||
-F 'quality=11' \
|
||
-F 'format=avif'
|
||
|
||
Request URL
|
||
|
||
http://localhost:8080/api/v1/admin/posts/242
|
||
|
||
Server response
|
||
Code Details
|
||
200
|
||
Response body
|
||
|
||
{
|
||
"data": {
|
||
"ID": 242,
|
||
"CreatedAt": "2026-02-17T22:50:51.187+03:00",
|
||
"UpdatedAt": "2026-02-18T14:05:14.212+03:00",
|
||
"DeletedAt": null,
|
||
"title": "qweqwe",
|
||
"images": "/uploads/posts/post-1771412714180096000-0.png",
|
||
"content": "wewewewee wewe",
|
||
"slug": "eeeee",
|
||
"tags": [
|
||
{
|
||
"ID": 13,
|
||
"CreatedAt": "2026-02-18T14:05:14.208+03:00",
|
||
"UpdatedAt": "2026-02-18T14:05:14.208+03:00",
|
||
"DeletedAt": null,
|
||
"name": "tags"
|
||
}
|
||
],
|
||
"width": 11,
|
||
"height": 11,
|
||
"quality": 11,
|
||
"format": "avif"
|
||
}
|
||
}
|
||
|
||
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: 430
|
||
content-type: application/json; charset=utf-8
|
||
date: Wed,18 Feb 2026 11:05:14 GMT
|
||
vary: Origin
|
||
|
||
##########
|
||
delete
|
||
curl -X 'DELETE' \
|
||
'http://localhost:8080/api/v1/admin/posts/242' \
|
||
-H 'accept: application/json' \
|
||
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzE0MTYyMjcsImlhdCI6MTc3MTQwNTQyNywiaXNfYWRtaW4iOnRydWUsInN1YiI6MiwidG9rZW5fdHlwZSI6ImFjY2VzcyJ9.X6mTnoiYJ1CUlarQlmwka0VpuDxYTIAV0QfS72AuBXs'
|
||
|
||
Request URL
|
||
|
||
http://localhost:8080/api/v1/admin/posts/242
|
||
|
||
Server response
|
||
Code Details
|
||
200
|
||
Undocumented
|
||
|
||
Response body
|
||
|
||
{
|
||
"id": 242,
|
||
"message": "post 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: 48
|
||
content-type: application/json; charset=utf-8
|
||
date: Wed,18 Feb 2026 11:08:48 GMT
|
||
vary: Origin
|
||
|
||
##########
|
||
|
||
restore
|
||
curl -X 'POST' \
|
||
'http://localhost:8080/api/v1/admin/posts/242/restore' \
|
||
-H 'accept: application/json' \
|
||
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzE0MTYyMjcsImlhdCI6MTc3MTQwNTQyNywiaXNfYWRtaW4iOnRydWUsInN1YiI6MiwidG9rZW5fdHlwZSI6ImFjY2VzcyJ9.X6mTnoiYJ1CUlarQlmwka0VpuDxYTIAV0QfS72AuBXs' \
|
||
-d ''
|
||
|
||
Request URL
|
||
|
||
http://localhost:8080/api/v1/admin/posts/242/restore
|
||
|
||
Server response
|
||
Code Details
|
||
200
|
||
Response body
|
||
|
||
{
|
||
"data": {
|
||
"id": 242,
|
||
"title": "qweqwe",
|
||
"slug": "eeeee",
|
||
"images": "/uploads/posts/post-1771412714180096000-0.png",
|
||
"content": "wewewewee wewe",
|
||
"tags": [
|
||
{
|
||
"id": 13,
|
||
"name": "tags"
|
||
}
|
||
],
|
||
"created_at": "2026-02-17T22:50:51.187+03:00",
|
||
"updated_at": "2026-02-18T14:06:35.521+03:00"
|
||
}
|
||
}
|
||
|
||
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: 258
|
||
content-type: application/json; charset=utf-8
|
||
date: Wed,18 Feb 2026 11:06:35 GMT
|
||
vary: Origin |