All fields

“API Routes” in Information Technology

31 questions across 4 technologies.

Information Technology

31 questions in 4 technologies

#QuestionTechnologyTopicLevel
1What are API routes in Next.js and why would you use them? Next.js › API RoutesNext.jsAPI RoutesBeginner
2What are common performance and security pitfalls to avoid when building API routes at scale? Next.js › API RoutesNext.jsAPI RoutesAdvanced
3How do you handle different HTTP methods such as GET, POST, and DELETE within a single API route file? Next.js › API RoutesNext.jsAPI RoutesIntermediate
4How do you read query parameters and the request body inside an API route? Next.js › API RoutesNext.jsAPI RoutesBeginner
5How can you protect an API route so that only authenticated users can access it? Next.js › API RoutesNext.jsAPI RoutesIntermediate
6What are named routes in Flutter, and how do they let you navigate to a specific screen simply by referencing a genuinely simple string identifier rather than needing to directly construct that particular widget yourself? Flutter › Named Routes & Navigator 2.0 (Router API)FlutterNamed Routes & Navigator 2.0 (Router API)Beginner
7How do you handle API versioning for gRPC services, given gRPC's contract is defined via .proto files rather than URL routes? ASP.NET Core › API VersioningASP.NET CoreAPI VersioningIntermediate
8How does the go_router package provide a considerably higher level, considerably more genuinely convenient declarative routing API built directly on top of Flutter's own more complex, considerably more verbose lower level Navigator 2.0 APIs? Flutter › Named Routes & Navigator 2.0 (Router API)FlutterNamed Routes & Navigator 2.0 (Router API)Intermediate
9How can you properly implement route guards using go_router's own redirect functionality to properly control access to specific protected routes based on a user's own current genuine authentication state? Flutter › Named Routes & Navigator 2.0 (Router API)FlutterNamed Routes & Navigator 2.0 (Router API)Advanced
10How do you actually properly pass arguments to a destination screen when using Navigator.pushNamed, and how does that destination screen then actually properly retrieve those particular passed arguments? Flutter › Named Routes & Navigator 2.0 (Router API)FlutterNamed Routes & Navigator 2.0 (Router API)Beginner
11What is Navigator 2.0, and how does its own declarative Router based approach genuinely differ from the earlier imperative push and pop based navigation approach used by Navigator 1.0? Flutter › Named Routes & Navigator 2.0 (Router API)FlutterNamed Routes & Navigator 2.0 (Router API)Intermediate
12How do you properly implement nested navigation using a considerably more complex router structure, such as one genuinely needed to properly support a bottom navigation bar where each individual tab genuinely maintains its own entirely separate independent navigation stack? Flutter › Named Routes & Navigator 2.0 (Router API)FlutterNamed Routes & Navigator 2.0 (Router API)Intermediate
13How do you properly test navigation logic, including verifying that a specific given route correctly and reliably navigates to its own expected screen and that a redirect properly and correctly occurs when genuinely expected? Flutter › Named Routes & Navigator 2.0 (Router API)FlutterNamed Routes & Navigator 2.0 (Router API)Advanced
14What is a route handler in the Next.js App Router, and how do you create one? Next.js › Route Handlers (API Route.js)Next.jsRoute Handlers (API Route.js)Beginner
15How do you read query parameters and the request body inside a route handler? Next.js › Route Handlers (API Route.js)Next.jsRoute Handlers (API Route.js)Intermediate
16How do you set custom response headers, such as CORS headers, in a route handler to allow requests from a different domain? Next.js › Route Handlers (API Route.js)Next.jsRoute Handlers (API Route.js)Advanced
17How would you structure your routes in the App Router to support multiple languages? Next.js › Internationalization (i18n) in Next.jsNext.jsInternationalization (i18n) in Next.jsIntermediate
18How do you generate dynamic metadata for a page based on data fetched at request time, such as a product page? Next.js › Metadata API & SEO OptimizationNext.jsMetadata API & SEO OptimizationIntermediate
19How do you access dynamic route parameters inside a route handler defined with a dynamic segment? Next.js › Route Handlers (API Route.js)Next.jsRoute Handlers (API Route.js)Intermediate
20How does the go_router package simplify handling deep links in a Flutter app compared to manually parsing incoming URLs yourself using Navigator 2.0's lower level APIs directly? Flutter › Deep Linking in FlutterFlutterDeep Linking in FlutterIntermediate
21How does route template precedence work when multiple routes could potentially match the same incoming URL? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
22What does the express.json() and express.urlencoded() built-in middleware do, and why must it be registered before routes that need to read req.body? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
23How would you create a layout that only applies to a specific group of routes without affecting the URL structure? Next.js › Layouts & TemplatesNext.jsLayouts & TemplatesIntermediate
24What is deep linking in a Flutter app, and how does it let a specific URL or link open directly to a particular screen within the app rather than always just opening the app's default home screen? Flutter › Deep Linking in FlutterFlutterDeep Linking in FlutterBeginner
25Why does a Flutter web app generally need particular additional attention paid to properly supporting browser navigation, such as the browser's own back and forward buttons working correctly as a typical web user would already genuinely expect? Flutter › Flutter for Web DevelopmentFlutterFlutter for Web DevelopmentBeginner
26How do the basic Navigator.push and Navigator.pop methods let you navigate to a new screen and then properly return back to the previous screen? Flutter › Navigation & Routing in FlutterFlutterNavigation & Routing in FlutterBeginner
27How do you use dynamic parameters within a redirect or rewrite rule to handle a whole pattern of URLs at once? Next.js › Redirects & Rewrites ConfigurationNext.jsRedirects & Rewrites ConfigurationIntermediate
28How does properly configuring your Flutter web app's own routing to correctly and consistently update the actual browser URL and page title for every single distinct page genuinely help both usability and overall search engine optimization together? Flutter › Flutter Web Performance & SEOFlutterFlutter Web Performance & SEOIntermediate
29What is the difference between Navigator.push, Navigator.pushReplacement, and Navigator.pushAndRemoveUntil, and when would you genuinely reach for each individual one of these three particular methods? Flutter › Navigation & Routing in FlutterFlutterNavigation & Routing in FlutterIntermediate
30How do you properly handle a Hero animation across a Navigator that genuinely spans several separate nested distinct navigators, such as one genuinely used together with a bottom tab bar navigation structure? Flutter › Hero Animations & Page TransitionsFlutterHero Animations & Page TransitionsAdvanced
31How should a large Flutter app properly structure its own overall routing architecture to genuinely scale well as the total number of individual screens grows into the dozens or even hundreds? Flutter › Navigation & Routing in FlutterFlutterNavigation & Routing in FlutterAdvanced