rest - Using HTTP POST to query a Database -


can use rest http post query database, designing rest api service. confusion whether use get or post. want pass parameter query thinking use post. reading on net found get should used if there read access , post should used when create on server side

if want render information based on identifier should through get.

basically crud treated rest assigning dedicated http methods follows:

create => post  read =>  update => put  delete => delete 

if using post getting read information there's no harm violating rest principle


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -