Похожие чаты

Hey there! I am new to Node.js and Express and I

want to create a RESTful API using these technologies. There’re at least 5 methods (get post put patch delete) which I can use to interact with my server. CRUD operations can be easily described using these methods, but the thing is it’s unclear for me, whether REST API uses only GET method to different urls with different parameters, or not. If GET is not the only method that RESTful API has to have, then it’s even more complicated, how do I have to implement it in my Node/Express code? Won’t server respond on a PUT query if I set handler, for example: app.get(“/posts/:id”, .......
I have not found anything that would answer my question and especially this Node/Express pitfall, but I know that these methods are only different by their headers.

1 ответов

7 просмотров

not only GET should be used, unless graphql

Похожие вопросы

Обсуждают сегодня

Карта сайта