简体   繁体   中英

Node.js RESTful Web Service

I had a problem when implementing RESTful Web Service , does all RESTful routes always contains GET , POST , PUT , DELETE ? For example, i have Candidate and User model, should i serve those HTTP methods in my route?

Thanks, sorry for my bad English.

does all RESTful routes always contains GET, POST, PUT, DELETE?

No. Only provide what's useful to you.

For example, i have Candidate and User model, should i serve those HTTP methods in my route?

Do you need those routes in your application? If so, yes. If not, no.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM