Skip to content

Discuss casing in the API #5429

@spalger

Description

@spalger

Expanded version of #5412

We are looking to expose some new API's in #3709 and I think we should discuss how we should be casing the urls, query string parameters, and bodies.

Options:

# path query string body
1 one-word/camelCase camelCase camelCase
2 one-word/snake_case snake_case snake_case
3 snake_case snake_case camelCase
4 kebab-case kebab-case camelCase
5 kebab-case snake_case camelCase

In the wild:

name style
elasticsearch 2
Github 3
Facebook mostly one-word, kebab-case for one, snake_case for others
Google mix of all
... feel free to add more

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions