te25son / Jokes

CLI app for jokes
0 stars 0 forks source link

Added submit command #9

Closed te25son closed 2 years ago

te25son commented 2 years ago

Part 2 to #6

Adds a submit command to the joke CLI.

Unfortunately it is still a work in progress since the API is not accepting new jokes.

image

I've commented out the command so that it cannot be accessed from the CLI. More work will need to be done in the submit.py file once the endpoint comes back online.

There is a feature which will need to be added:

  1. The endpoint should allow for the use of the api's dry-run when testing/debugging. This will ensure that the submitted joke is not saved to the API.