All fields

“RESTful API Development with PHP” in Information Technology

26 questions across 1 technology.

Information Technology

26 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is a RESTful API, and how do standard HTTP methods like GET, POST, PUT, and DELETE map to common data operations? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPBeginner
2How should a well designed RESTful API structure its endpoints and URL naming conventions to remain intuitive and consistent as it grows? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPIntermediate
3How does API rate limiting work, and why is it an important protection mechanism for a public facing RESTful API? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPIntermediate
4How should a RESTful API handle versioning as its design evolves over time, and what are the tradeoffs between common approaches like URL based versioning and header based versioning? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPAdvanced
5How should a RESTful API be designed to handle complex error responses consistently, including validation errors affecting multiple fields at once? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPAdvanced
6How does authentication typically work for a RESTful API, and what is the difference between session based authentication and token based authentication using something like a JSON Web Token? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPIntermediate
7How does an API typically use HTTP status codes to communicate the result of a request, and what do common codes like 200, 404, and 500 represent? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPBeginner
8What is ReactPHP and how does its event loop enable non blocking, asynchronous behavior in standard PHP? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Beginner
9What is PHPMailer, and what advantages does it provide over PHP's built in mail function for sending emails reliably? PHP › Email Sending in PHP (PHPMailer & SMTP)PHPEmail Sending in PHP (PHPMailer & SMTP)Beginner
10How do you convert a PHP array or object into a JSON formatted string using json_encode? PHP › JSON Handling in PHPPHPJSON Handling in PHPBeginner
11How do you convert a JSON formatted string back into a PHP array or object using json_decode? PHP › JSON Handling in PHPPHPJSON Handling in PHPBeginner
12How should an API validate the structure and types of incoming JSON data to ensure it matches the expected schema before processing it further? PHP › JSON Handling in PHPPHPJSON Handling in PHPAdvanced
13How do stream wrappers and stream contexts in PHP allow file functions to work seamlessly with non local resources like remote URLs or cloud storage? PHP › File Handling & File System FunctionsPHPFile Handling & File System FunctionsAdvanced
14What are the tradeoffs of using a heavier server side template engine like Blade or Twig compared to building a fully client side rendered frontend using a JavaScript framework consuming a PHP API? PHP › Template Engines (Blade & Twig)PHPTemplate Engines (Blade & Twig)Advanced
15How do coroutines in Swoole let you write asynchronous code using a familiar, synchronous looking coding style? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Intermediate
16What is the difference between page caching, query caching, and object caching, and when should each be used? PHP › Caching Strategies in PHPPHPCaching Strategies in PHPIntermediate
17What is SMTP authentication, and why is properly configuring it important for ensuring email deliverability? PHP › Email Sending in PHP (PHPMailer & SMTP)PHPEmail Sending in PHP (PHPMailer & SMTP)Intermediate
18How do you properly handle errors when parsing potentially invalid JSON, and how does the JSON_THROW_ON_ERROR flag simplify this compared to manually checking json_last_error? PHP › JSON Handling in PHPPHPJSON Handling in PHPIntermediate
19How should an application handle email sending failures gracefully, and why is sending emails asynchronously through a queue often preferred over sending them directly during a web request? PHP › Email Sending in PHP (PHPMailer & SMTP)PHPEmail Sending in PHP (PHPMailer & SMTP)Advanced
20How does a try catch block work in PHP, and how do you catch and handle a specific exception that might be thrown? PHP › Error & Exception HandlingPHPError & Exception HandlingBeginner
21What is routing in a PHP web application, and how does a router determine which piece of code should handle a specific incoming request? PHP › Routing & MiddlewarePHPRouting & MiddlewareBeginner
22How does PHP's DateTime class handle time zones, and why is explicitly setting a time zone important for applications serving users in different regions? PHP › Date & Time HandlingPHPDate & Time HandlingIntermediate
23How do you calculate the difference between two dates in PHP, and what information does the DateInterval object returned by the diff method provide? PHP › Date & Time HandlingPHPDate & Time HandlingIntermediate
24What are the security and architectural considerations of using stateless, token based authentication such as JWT instead of traditional server side sessions for an API? PHP › Sessions & CookiesPHPSessions & CookiesAdvanced
25How do route parameters and route constraints let you capture dynamic segments of a URL while also restricting what values are actually considered a valid match? PHP › Routing & MiddlewarePHPRouting & MiddlewareIntermediate
26How should an application handle daylight saving time transitions correctly when performing date arithmetic across such a transition? PHP › Date & Time HandlingPHPDate & Time HandlingAdvanced