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 must be able to send a test ping #13

Closed itsdeannat closed 2 months ago

itsdeannat commented 2 months ago

User story

As a user I want to verify that my JWT works So that I can start using the API

Scenario

Given: a user has registered with the API And: the user has a JWT access token When: the user sends a GET request to /ping Then: the server responds with a 200 OK

Scenario

Given: a user has registered with the API And: the user doesn't have a JWT access token When: the user sends a GET request to /ping Then: the user responds with a 401 Unauthorized

Feature completion checklist

itsdeannat commented 2 months ago

Note: the /ping endpoint will need to be protected to ensure only users with a JWT can access it for testing