Does Frappe create REST APIs for doctype created in the custom Frappe app?

I followed the library management tutorial provided by the Frappe framework. I can get these two following pages as per the tutorial description.

http://library.localhost:8000/articles

http://library.localhost:8000/articles/catch-22

I have been informed that Frappe automatically creates REST APIs for the created doctype. However, while trying to consume the REST API for the doctype “article”, I get an internal server error.

http://library.localhost:8000/api/resource/article/

So, my question is. Does Frappe create REST APIs for doctype created in the custom Frappe app?

Hi @mayank_gupta:

Yes, Frappe creates automatically a REST API for every doctype, without any additional configuration.

Note that is case sensitive, so if your doctype is called “Article”, API call should be
library.localhost:8000/api/resource/Article

Edited: is your docype named “article” or “articles”?