Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9122791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:11:09+00:00 2026-06-17T06:11:09+00:00

I wanted to throw this question out there and get some feedback from other

  • 0

I wanted to throw this question out there and get some feedback from other users of the Play Framework (specifically Play 2.0).

Lets say I have an entity called ‘FooBar’. Let’s also assume that I’m providing a Restful API that allows CRUD operations at the URL 'http://<host>/api/foo_bar'.

My question is, is there a consensus amongst the community on how to name URLs, where the URL provides access to an entity whose name contains more than one word?

I can think of the following 4 options for naming such a URL, that would each seem reasonable:

  1. snake case (which would be the rails convention) — http:///api/foo_bar
  2. camel case — http://<host>/api/fooBar
  3. pascal case — http://<host>/api/FooBar
  4. just eliminating underscores (is there a name for this?) — http://<host>/api/foobar

Thanks in advance for the feedback!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:11:11+00:00Added an answer on June 17, 2026 at 6:11 am

    I would avoid options 2 and 3 for two reasons:

    1. The path component of a URI is case sensitive**, so those paths could actually point to different REST endpoints in your app and this is confusing.

    2. Some servers (i.e. on windows) treat the path as case insensitive, which might give you problems if you need to migrate the app to a different platform (or hosting provider).

    Between options 1 and 4, I prefer 1 (or hyphens), as is the de facto standard, but there’s nothing official that I know.

    **The spec for the path component of a URI doesn’t specify that is case insensitive, as it does explicitly for everything that is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can't find anything on the web for this, wanted to throw the question out
I don't think that this is doable, but wanted to throw it out to
I would assume this is true, but wanted to throw this question up. Is
Wanted to know if there was a way one could query shelveset details from
just wanted to ask where I define initial class properties? From other languages I
This is a difficult and open-ended question I know, but I thought I'd throw
Before I posted this question, I already looked this , but I couldn't get
I've been doing some thinking about data redundancy, and just wanted to throw everything
There's probably a Google search that'll answer this question but for the life of
I have a fairly simple system, and for the purposes of this question there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.