# Next.js API Routes (React / Next.js) > Route Handlers, GET/POST istekleri, middleware, CORS, kimlik doğrulama, hata yönetimi - 20 mülakat soruları - Mid-Level - [Mülakat Soruları: React / Next.js](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari.md) ## 1. Next.js 13+ ile App Router'da Route Handler nedir? **Cevap** Route Handler, route.ts (veya route.js) dosyasındaki bir sunucu fonksiyonudur ve özel API endpoint'leri oluşturmayı sağlar. Pages Router'daki API Routes'tan (pages/api klasörü) farklı olarak, Route Handler'lar app/ klasöründe bulunur ve Web Standard Request/Response'u destekler. Sunucu tarafında HTTP isteklerini (GET, POST, PUT, DELETE vb.) işler. ## 2. Bir GET isteğini işlemek için Route Handler nasıl oluşturulur? **Cevap** Bir GET isteğini işlemek için, route.ts dosyasında GET adında bir async fonksiyon export edin. Bu fonksiyon bir Request nesnesi alır ve NextResponse.json() kullanarak bir Response döndürür. Next.js, export edilen GET fonksiyonunu bu route'taki HTTP GET isteklerine otomatik olarak eşler. Diğer HTTP metotları (POST, PUT, DELETE, PATCH) kendi isimleriyle aynı kalıbı takip eder. ## 3. NextResponse ile standart Response arasındaki fark nedir? **Cevap** NextResponse, standart Web Response sınıfını Next.js'e özgü özelliklerle genişletir. Otomatik serileştirme için NextResponse.json(), yönlendirmeler için NextResponse.redirect() gibi pratik metotlar sunar ve cookie ile header manipülasyonunu kolaylaştırır. Standart Response çalışsa da, NextResponse kodu basitleştirdiği ve Next.js ekosistemiyle daha iyi entegrasyon sağladığı için önerilir. ## 17 soru daha mevcut - Bir Route Handler'da arama parametreleri (query params) nasıl alınır? - Bir POST isteği nasıl işlenir ve JSON body nasıl alınır? Ücretsiz kaydol: https://sharpskill.dev/tr/login ## Diğer React / Next.js mülakat konuları - [JavaScript Temelleri](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/javascript-essentials.md): 25 soru, Junior - [React Temelleri](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-fundamentals.md): 20 soru, Junior - [React Hooks](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-hooks.md): 22 soru, Junior - [Bileşen yaşam döngüsü](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/component-lifecycle.md): 18 soru, Junior - [React Router](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-router.md): 20 soru, Junior - [Context ile state yönetimi](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/state-management-context.md): 18 soru, Junior - [Formlar ve Controlled Components](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/forms-controlled-components.md): 20 soru, Mid-Level - [Veri Çekme ve API](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/fetching-data-api.md): 20 soru, Mid-Level - [React Query (TanStack Query)](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-query-tanstack.md): 20 soru, Mid-Level - [Styling & CSS-in-JS](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/styling-css-in-js.md): 18 soru, Mid-Level - [Next.js Temelleri](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-fundamentals.md): 25 soru, Mid-Level - [React ile TypeScript](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/typescript-react.md): 20 soru, Mid-Level - [Next.js Veri Çekme](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-data-fetching.md): 24 soru, Mid-Level - [Next.js Server Actions](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-server-actions.md): 20 soru, Mid-Level - [Next.js Routing ve Navigasyon](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-routing-navigation.md): 22 soru, Mid-Level - [Next.js Metadata & SEO](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-metadata-seo.md): 18 soru, Mid-Level - [Next.js Middleware ve Auth](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-middleware-auth.md): 22 soru, Mid-Level - [React Testing](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-testing.md): 20 soru, Mid-Level - [Zustand State Management](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/zustand-state-management.md): 18 soru, Mid-Level - [React Performans Optimizasyonu](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-performance-optimization.md): 22 soru, Senior - [Error Boundaries & Error Handling](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-error-boundaries.md): 18 soru, Senior - [Advanced React Patterns](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/advanced-react-patterns.md): 20 soru, Senior - [Next.js Gelişmiş Özellikler](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-advanced-features.md): 24 soru, Senior - [Next.js Dağıtım & Üretim](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-deployment-production.md): 20 soru, Senior - [Architecture & Design Patterns](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-architecture-patterns.md): 22 soru, Senior - [React Server Components](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-server-components.md): 26 soru, Senior - [Next.js Uluslararasılaştırma](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-internationalization.md): 20 soru, Senior - [React Güvenlik & En İyi Uygulamalar](https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/react-security-best-practices.md): 22 soru, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/tr/technologies/react-next/mulakat-sorulari/nextjs-api-routes