Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Parameter names in Spring Boot are usually named using camelCase notation, which means that the first word should start with a lowercase letter and subsequent words should start with an uppercase letter. For example, firstName, lastName, or numberOfAttempts.

For REST API URLs, there is no fixed convention, but it is recommended to use a consistent naming scheme to make the URLs more readable and understandable. One common approach is to use hyphens to separate words in the URL path, for example, /api/users/{id}/orders or /api/products/{id}, where {id} is the ID of the resource being accessed.

Another approach is to use underscores to separate words in the URL path, for example, /api/getuserdetails or /api/createneworder. However, it is important to note that the URL path should be kept simple and short, and it should accurately represent the resource being accessed.