• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
  • Piet Souris
  • Mikalai Zaikin

RESTful Controller Method Names

Ranch Hand
Posts: 205
  • 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?
    Bookmark Topic Watch Topic
  • New Topic