Added customer variable to the 'list' function of the 'payment type' view to save an instance of a Customer where the customer user_id = the authenticated user.id. Commented out query param variable definition to potentially use later. Also changed the url route to "payment-types" to reflect client request.
Requests / Responses
Request
GET /payment-types requests all payment types associated with the authenticated user
[ ] using postman, make a get request to http://localhost:8000/payment-types with valid Auth token header. Try a different token to confirm unique data.
Changes
Requests / Responses
Request
GET
/payment-types
requests all payment types associated with the authenticated userResponse
HTTP/1.1 200 OK
Testing
Related Issues