Authorization
-
Assert that a GET request to "/api/level20" returns a 401 status code.
-
Assert that a GET request to "/api/level20" with a "X-Api-Key" header with a value of "mysupercoolapikey",
returns:
Approved!
-
Assert that a GET request to "/api/level20" with an "Authorization" header of "Basic
Q3VyaW91c0dlb3JnZTp5ZWxsb3doYXQ=,
returns:
Welcome Mr. George.