Skip to content
Discussion options

You must be logged in to vote

Recommendation: /api/v1/{plural-resource} with kebab-case for multi-word paths, e.g. /api/v1/order-items. Reasoning: plural nouns keep REST semantics consistent (collection vs. item), v1 prefix lets us version without breaking existing clients later, and kebab-case avoids ambiguity in URLs (camelCase/underscores are inconsistent across HTTP tooling and less readable in a URL bar). Query params and JSON body fields can stay camelCase since those follow JS/JSON conventions, not URL conventions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by github-actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant