Bird
0
0

Which of the following Accept headers is invalid for media type versioning?

medium📝 Debug Q7 of 15
Rest API - Versioning Strategies
Which of the following Accept headers is invalid for media type versioning?
AAccept: application/vnd.company.v2+json
BAccept: application/vnd.company.v+json
CAccept: application/vnd.company.v10+json
DAccept: application/vnd.company.v1+json
Step-by-Step Solution
Solution:
  1. Step 1: Analyze version format

    Version must have a number after 'v'. Accept: application/vnd.company.v+json has 'v' with no number.
  2. Step 2: Validate other options

    The other options have valid version numbers after 'v'.
  3. Final Answer:

    Accept: application/vnd.company.v+json -> Option B
  4. Quick Check:

    Version number required after 'v' [OK]
Quick Trick: Version must be a number after 'v' in media type [OK]
Common Mistakes:
  • Leaving out version number
  • Using letters instead of numbers for version
  • Assuming 'v' alone is valid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes