-
Notifications
You must be signed in to change notification settings - Fork 292
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
Update API reference documentation #5819
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! Looks great - just a few minor suggestions.
I need to tweak our scripts to add it and then I'll push to staging.
schema: | ||
type: string | ||
description: Database name. | ||
- name: accept_partial |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: accept_partial | |
- name: accept_partial |
Was this recently added? I thought it didn't work with the legacy endpoints when I tried last week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't work.
api-docs/influxdb3/core/v3/ref.yml
Outdated
summary: Write Line Protocol (Legacy) | ||
description: > | ||
Accepts line protocol data and writes it to the database. | ||
Write options are provided via query parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write options are provided via query parameters. | |
Write options are provided via query parameters. | |
Provides compatibility for InfluxDB v1 workloads. |
api-docs/influxdb3/core/v3/ref.yml
Outdated
- BearerAuth: [] | ||
/api/v2/write: | ||
post: | ||
summary: Write Line Protocol (v2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summary: Write Line Protocol (v2) | |
summary: Write Line Protocol (v2-compatibility) |
api-docs/influxdb3/core/v3/ref.yml
Outdated
paths: | ||
/write: | ||
post: | ||
summary: Write Line Protocol (Legacy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summary: Write Line Protocol (Legacy) | |
summary: Write Line Protocol (v1-compatibility) |
api-docs/influxdb3/core/v3/ref.yml
Outdated
summary: Write Line Protocol (v2) | ||
description: > | ||
Accepts line protocol data and writes it to the database. | ||
Write options are provided via query parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write options are provided via query parameters. | |
Write options are provided via query parameters. | |
Provides compatibility for InfluxDB v2 workloads. |
api-docs/influxdb3/core/v3/ref.yml
Outdated
- BearerAuth: [] | ||
/query: | ||
get: | ||
summary: Execute InfluxQL Query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summary: Execute InfluxQL Query | |
summary: Execute InfluxQL Query (v1-compatibility) |
@peterbarnett03 Currently working on this - I'll push to this branch for review. |
- Adds basic support for core and enterprise in getswagger.sh - Adds custom OpenAPI info for Core and Enterprise - Validates as OpenAPI 3.0 (using Spectral) - operationId - tags - Revises use of Legacy, v2 - TODO: need to check and validate in UI, adjust tags if nec.
@@ -0,0 +1,13 @@ | |||
- name: Using the InfluxDB HTTP API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops.
@jstirnaman TODO: update or remove these.
@peterbarnett03 Noting what I've found while testing:
|
@jstirnaman Yeah, upon further review, we should probably walk through this live together since it's such a big update. You're write on the partial.
|
Adds OpenAPI spec