itsdeannat / the-brew-ha-ha-api

A coffee-themed API built with the Django Rest Framework
MIT License
0 stars 0 forks source link

[FEATURE] Users should be able to send a test request #5

Closed itsdeannat closed 2 months ago

itsdeannat commented 2 months ago

As a user I want to make a test API call To verify that I am authenticated with the API

Scenario

Given: a user is registered with the API And: a user has a JWT access token When: they send a GET request to /ping Then: the API sends a success message

Scenario

Given: a user is registered with the API And: a user's access token has expired When: they send a GET request to /ping Then: the API sends a 401 Unauthorized

Feature completion checklist

itsdeannat commented 2 months ago

If user does not send JWT token

{
    "detail": "Authentication credentials were not provided."
}