Question: Create a python program that creates a local database using API for users to create and maintain profiles rather than entering in their information in
Create a python program that creates a local database using API for users to create and maintain profiles rather than entering in their information in order each time. Show a screenshot of results
API Actions include:
- Create a user with username, password, and optional fields(i.e. name, email address, home address) in the database using POST HTTP request by sending a user object with no response.
-Retrieve user object and it's field by username using GET HTTP request by sending in parameter username and response of a JSON user object.
-Update user and any fields except mail by providing username as a key lookup and any other user field, then update user field with a new parameters value by using PUT/PATCH http request. Send in parameters username and have no response.
-Create a credit card that belong to a user by providing a username and credit card details to create a credit card for that user. Use POST HTTP request and send in parameters( username and credit card object) with no response data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
