Case

URL for public user page - hyphenated or camelCase?

URL for public user page - hyphenated or camelCase?
  1. Should URL be camel case or dash?
  2. Are hyphens OK in URLs?
  3. Can we use camelCase in REST API?
  4. What is camel case letters?

Should URL be camel case or dash?

We recommend that you use hyphens (-) instead of underscores (_) in your URLs. Coming from a programming background, camelCase is a popular choice for naming joint words. But RFC 3986 defines URLs as case-sensitive for different parts of the URL.

Are hyphens OK in URLs?

Consider using hyphens to separate words in your URLs, as it helps users and search engines identify concepts in the URL more easily. We recommend that you use hyphens ( - ) instead of underscores ( _ ) in your URLs.

Can we use camelCase in REST API?

Use camelCase for Parameters

If you look at the https://api.example.com/users/1234 link, the 1234 is the userId here. With the above, the user is able to query a user based on their user ID. Now, for the naming convention, it is advisable to use camelCase instead of others.

What is camel case letters?

Camel case is when a compound word or phrase has no spaces or punctuation. Instead, each separate word is indicated with either a lowercase or uppercase letter. Several companies use camel case in their names or for their products and systems. A few examples are: FedEx, PlayStation, PayPal, MasterCard, PowerPoint.

Competitive audit
A competitive audit allows you to track your competitors, understand their approach, and figure out what your brand might be missing out on. The aim i...
What is a good way to display a list and editable list item on a detail page? [closed]
How do you display list items in HTML?How do I make a SharePoint list editable?How do I display a list horizontally in CSS? How do you display list ...
Design for input of time-series data
What is time series input model?Which is the best model for a time series data?What type of model is preferred for time series data analysis?How do y...