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

Todos BUG: id type. CREATE returns number. PUT & PATCH return string #16

Closed fabioir closed 1 year ago

fabioir commented 1 year ago

Hello, I noticed something while using your Todos API. The type of the id is not consistent in the responses. It is reflected in the docu but seems like a bug to me.

image

Ovi commented 1 year ago

Thank you for pointing out this issue @fabioir Seems like the issue exists only when updating the todo. I will deploy a fix for this.