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

{ "message": "Invalid user id 'add'" } #24

Closed Balaramjalla closed 1 year ago

Balaramjalla commented 1 year ago

Not able to add new User getting this error { "message": "Invalid user id 'add'" }

Ovi commented 1 year ago

Can you paste your code here?

Balaramjalla commented 1 year ago

Can we add user to server sir

On Sun, Feb 19, 2023, 5:34 PM Muhammad Ovi (Owais) @.***> wrote:

Can you paste your code here?

— Reply to this email directly, view it on GitHub https://github.com/Ovi/DummyJSON/issues/24#issuecomment-1435970620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI4LXD422WH7C7T6CYJ52DWYID53ANCNFSM6AAAAAAVAJ4AFM . You are receiving this because you authored the thread.Message ID: @.***>

Ovi commented 1 year ago

A user can not be added to the server, but it can be mocked as it was added. https://dummyjson.com/docs/users/#add

kevit-dharmit-lakhani commented 1 year ago

it looks like you are doing a GET request instead of a POST request. please follow the instructions given on the website.

Ovi commented 1 year ago

Closing this for now, please reopen it when you provide the code here.