Complete the code to specify the API version in the URL path.
GET /api/[1]/usersUsing v1 in the URL path is a common way to specify API version.
Complete the header to specify the API version using a custom header.
X-API-[1]: 1
The custom header X-API-version is commonly used to specify API version.
Fix the error in the versioning strategy by choosing the correct versioning method.
Accept: application/json; version=[1]Using a numeric version like '1.0' in the Accept header is a standard practice.
Fill both blanks to create a versioned API endpoint with query parameter versioning.
GET /api/users?[1]=[2]
Using version=1 as a query parameter is a clear way to specify API version.
Fill all three blanks to define a versioned API using media type versioning in the Accept header.
Accept: application/vnd.myapp.[1]+json; version=[2]; q=[3]
The media type uses 'v1' as version in the type, '1' as version parameter, and '0.9' as quality factor.