Rest api json camelcase or underscore. Discover how to create clear, consistent, and readable JSON structures for efficient data interchange. Resource names should not include underscores or other punctuation (sole exception is the hyphen). You need to do that for camelCase as well, but I can comfortably hold down SHIFT with the pinky and type any letter - but since the underscore key is right next to the SHIFT key, pressing both at the same time is rather awkward and interrupts the flow of typing. Resource names exposed in a REST API should use all lowercase characters. Resource names may include hyphens. The compound noun in the URL is just the one word and the JSON body is camel case. This comes from Mark Masse's "REST API Design Rulebook" from Oreilly. Recommendations This section contains recommendations for JSON:API implementations. Choosing the right JSON naming convention for your JSON implementation depends on your technology stack. Apr 24, 2012 ยท The standard best practice for REST APIs is to have a hyphen, not camelcase or underscores. rur posl vl us ibjf v3em6 tfgcw6 2dg 5xv fvxz

© 2011 - 2025 Mussoorie Tourism from Holidays DNA