-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discuss casing in the API #5429
Comments
@Bargs @rashidkpc I have expanded the discussion a bit and would appreciate if you would leave some feedback |
Elasticsearch, really the only other API we really need to stay consistent with whenever possible, uses snake_case in the path, body and query string. |
I am a fan of 1, because it is consistent with the rest of our code and translates effortlessly to how we will be utilizing the values. I appreciate @rashidkpc's point though, so I'll give half of my vote to that so long as we can commit to converting these values into camelCase before using them. I worry that this will end up with us putting a bunch of |
snake_case everywhere is fine with me. I also agree with @spalger that we should camelize the names in our own client code. The serialization format of the API shouldn't dictate how we design our domain objects. Getting into the habit of normalizing the data will save us from a lot of headaches if we consume other APIs in the future. |
We basically agree here, |
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:
In the wild:
What do you think?
The text was updated successfully, but these errors were encountered: