• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RESTful Controller Method Names

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Is it true that the naming convention for RESTFul controller methods should not be verb based like i wanted my controller methods to be named as

showDocumentType, editDocumentType and listDocumentType, searchDocumentType, addDocumentType

is it true all RESTFul controller method names should be based on HTTP methods as in

getDocumentType, setDocumentType, putDocumentType

How would a new developer make out for what functions are performed by this controller. I wanted my Controller methods to map to functional specification Use-Cases

Please let me know what are best practices and what should be done in my case?
 
reply
    Bookmark Topic Watch Topic
  • New Topic