Testing API
Learn how to test the REST API endpoints that we created using an API testing tool, ensuring correct functionality.
We'll cover the following
Now that we’re done setting up our web template, we can test it to see if it’s working or not. We can use the server that we set up to create a task in the database.json
file. Let’s use the create_task()
method to create a task. Shown below is the code for the create_task()
method that gets called each time a POST
request is made on the /task
endpoint.
Get hands-on with 1400+ tech skills courses.