Untitled
unknown
plain_text
9 months ago
527 B
6
Indexable
# GET all users make_request(f"{base_url}/users") # GET a specific user make_request(f"{base_url}/users", params={'id': '3'}) # GET all products make_request(f"{base_url}/products") # GET a specific product make_request(f"{base_url}/products", params={'id': 1}) # Try to GET a non-existent user make_request(f"{base_url}/users", params={'id': 999}) # DELETE a specific product make_request(f"{base_url}/products", method='DELETE', params={'id': 1}) # GET all products (after deletion) make_request(f"{base_url}/products")
Editor is loading...
Leave a Comment