Skip to content

Conversation

@kelsey-steven-ada
Copy link
Contributor

Asana Ticket

Changes
Both files:

  • Some small changes to spacing like 2 blank lines between loose functions in a file to better follow PEP8

cli/task_list.py

  • Change url from localhost alias to http://127.0.0.1:5000/
  • rename parse_response to parse_task_from_response and only call it from functions for relevant endpoints (GET & POST endpoints)

cli/main.py

  • For PUT & PATCH endpoints, call task_list.get_task(task["id"]) after the update so the user can be shown the updated task. (No changes for delete, the CLI already listed all available tasks after deleting one)

…e parse_response to parse_task_from_response and only call it from relevant functions. In main.py, use get_task to fetch and display updated tasks (PUT & PATCH routes) (delete is already set up to print all tasks after deleting one)
@kelsey-steven-ada kelsey-steven-ada changed the title Update CLI for changed endpoint responses Update CLI for AirPlay & changed endpoint responses Aug 13, 2025
@kelsey-steven-ada kelsey-steven-ada merged commit a276aa6 into main Aug 15, 2025
@kelsey-steven-ada kelsey-steven-ada deleted the ks_update_cli branch August 15, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants