Ovi / DummyJSON

DummyJSON.com provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.
http://dummyjson.com
Other
1.87k stars 203 forks source link

User POST Api successful but record not showing GET all user list. #28

Closed Snehal14283 closed 1 year ago

Snehal14283 commented 1 year ago

I worked on DummyJSON. I added the User with POST Api. I got the success status for POST Api. Now I am checking whether my record showing under User list and calling All User Api but unable to find my inserted record.

I just added 5 fields to post User API: First Name, Last Name, User Name, Email & Password

kevit-dharmit-lakhani commented 1 year ago

Please read the docs carefully. It clearly says "Adding a new user will not add it into the server". the post request only mimics a response of adding a user (given all required fields are provided) but does not actually add it in the database.