How is more correct?

/api/game_sessions

or

/api/game-sessions

None of the official documents found any mention of which separator is preferred.

Here I found the answer that

The REST API for Dropbox, Twitter, Google Web Services and Facebook all uses underscores.

I also tend to this option.

Is there any standard for this topic? Or is there no difference in terms of standards?

  • I would use /api/game_sessions - tCode
  • I too, but I just can’t find a standard on this topic - installero
  • 3
    so use it the way you like it - tCode
  • As often happens, We're at war, We're at Holy War! We are discussing with colleagues how correctly :) - installero
  • StackOverflow uses kebab-case. - Nofate

0