You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But we shorten organization to org, and we use camel-case in the docs / API spec.
Since the docs are the shared source of truth, we should update the implementation.
The text was updated successfully, but these errors were encountered:
@GeorgeMac I've seen a few people in the community Slack posting curl examples for using this API, I'm wary about changing the implementation and breaking them. It looks like IDPE is in the same situation (swagger here, and struct here). If Swagger is just used for documentation (no codegen), I'd prefer to fix it to match the current behavior.
EDIT: Adam pointed out that we do codegen many clients from the Swagger, sigh...
The generated API docs show both org and orgID as both required, when (I believe) it's really one-or-the-other. Code here.
The DBRP model definition in the API spec is reused for the list endpoint. The model used by the implementation of that endpoint matches the implementation of the create endpoint, so the mismatch occurs there as well:
See: https://docs.influxdata.com/influxdb/v2.0/api/#operation/PostDBRP
influxdb/dbrp/http_server_dbrp.go
Lines 58 to 65 in d93560f
The API docs states:
org
orgID
bucketID
But we shorten organization to org, and we use camel-case in the docs / API spec.
Since the docs are the shared source of truth, we should update the implementation.
The text was updated successfully, but these errors were encountered: