Verify API authentication protects endpoints
Preconditions (3)
Step 1: Open Postman and create a new request
Step 2: Set the request method to GET and enter the protected API endpoint URL
Step 3: Send the request without any authentication headers
Step 4: Observe the response status code and message
Step 5: Add the valid authentication token in the Authorization header
Step 6: Send the request again
Step 7: Observe the response status code and message
✅ Expected Result: The request without authentication returns 401 Unauthorized or 403 Forbidden. The request with valid authentication returns 200 OK with expected data.