From 4fd19c0054510c7d0c807199ffad9922ad2066af Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Sun, 26 Aug 2018 10:18:05 -0500 Subject: [PATCH] docs(http): add content-type, content-length, and accept to /write --- http/swagger.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/http/swagger.yml b/http/swagger.yml index 77a785c82c..0d0e688d49 100644 --- a/http/swagger.yml +++ b/http/swagger.yml @@ -31,6 +31,32 @@ paths: enum: - gzip - identity + - in: header + name: Content-Type + description: Content-Type is used to indicate the format of the data sent to the server. + schema: + type: string + description: text/plain specifies the text line protocol; charset is assumed to be utf-8. + default: text/plain; charset=utf-8 + enum: + - text/plain + - text/plain; charset=utf-8 + - application/vnd.influx.arrow + - in: header + name: Content-Length + description: Content-Length is an entity header is indicating the size of the entity-body, in bytes, sent to the database. If the length is greater than the database max body configuration option, a 413 response is sent. + schema: + type: integer + description: The length in decimal number of octets. + - in: header + name: Accept + description: specifies the return content format. + schema: + type: string + description: return format of any errors + default: application/json + enum: + - application/json - in: query name: bucket description: specifies the destination bucket for writes