Search code examples
c#post

API best practice to of usage Methods types


Is it correct to use the POST method for all API routes in the Controller?


Solution

  • Depends on your requirements . First try to read about all the HTTP verbs from here https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods. Then based on your need , use the related http verb.