Skip to content

Test results (Hunter Lathery) #8

@hlathery

Description

@hlathery

Test 1: Bill Assignment

A roommate receives the electricity bill and wants to add it to the API and then pay off her portion of it right away.

Step 1: Calling POST /bills/create_bill:

curl -X 'POST' \
  'https://chore-tracker-api.onrender.com/bills/create_bill' \
  -H 'accept: application/json' \
  -H 'access_token: a' \
  -H 'Content-Type: application/json' \
  -d '{
  "cost": 200,
  "due_date": "2024-11-12",
  "bill_type": "electricity",
  "message": "Lets pay this early"
}'
{
  "bill_id": 20,
  "message": "Bill created and assigned to roommates."
}

Step 2: Calling PATCH /bills/update_bill_list_status/{bill_id}/payments/{roommate_id}

curl -X 'PATCH' \
  'https://chore-tracker-api.onrender.com/bills/update_bill_list_status/20/payments/13' \
  -H 'accept: application/json' \
  -H 'access_token: a' \
  -H 'Content-Type: application/json' \
  -d '{
  "status": "paid"
}'
{
  "message": "Payment status for roommate id 13 on bill id 20 updated to paid."
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions