Rest API - Query Parameters and FilteringFind the mistake in this request: /orders?sort=-ASort parameter missing field name after '-'BMinus sign should be after the field nameCSort parameter cannot be emptyDOrders endpoint does not support sortingCheck Answer
Step-by-Step SolutionSolution:Step 1: Analyze the sort parameter valueThe value is just a minus sign with no field name, which is invalid.Step 2: Understand correct descending syntaxThe minus sign must be followed by a valid field name to indicate descending order.Final Answer:Sort parameter missing field name after '-' -> Option AQuick Check:Minus sign must precede a field name [OK]Quick Trick: Minus sign must be followed by field name [OK]Common Mistakes:MISTAKESUsing '-' alone without fieldPlacing minus sign after fieldAssuming empty sort means default sorting
Master "Query Parameters and Filtering" in Rest API9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Rest API Quizzes HTTP Status Codes - 200 OK and 201 Created - Quiz 4medium HTTP Status Codes - 429 Too Many Requests - Quiz 7medium HTTP Status Codes - 200 OK and 201 Created - Quiz 13medium REST API Fundamentals - Statelessness requirement - Quiz 7medium REST API Fundamentals - Resource-based design thinking - Quiz 14medium Request and Response Format - Response headers (Cache-Control, ETag) - Quiz 1easy Request and Response Format - JSON as standard format - Quiz 11easy URL and Resource Design - Plural vs singular resource names - Quiz 1easy URL and Resource Design - Noun-based resource naming - Quiz 14medium URL and Resource Design - Resource identifiers in URLs - Quiz 6medium