diff --git a/tdei-api-gateway-prod.json b/tdei-api-gateway-prod.json index bed9475..2f47b7e 100644 --- a/tdei-api-gateway-prod.json +++ b/tdei-api-gateway-prod.json @@ -2725,24 +2725,35 @@ "name":"format", "in":"query", "required":false, - "description":"format: Output format. Only 'csv' is supported.", + "description":"format: Output format.", "schema":{ "type":"string", "default":"csv", "enum":[ - "csv" + "csv", + "geojson" ] } } ], "responses":{ - "200":{ - "description":"CSV file streamed successfully.", - "content":{ - "text/csv":{ - "schema":{ - "type":"string", - "format":"binary" + "200": { + "description": "Feedback file streamed successfully.", + "content": { + "text/csv": { + "schema": { "type": "string", "format": "binary" } + }, + "application/geo+json": { + "schema": { + "type": "object", + "required": ["type", "features"], + "properties": { + "type": { "enum": ["FeatureCollection"] }, + "features": { + "type": "array", + "items": { "$ref": "#/components/schemas/Feature" } + } + } } } } diff --git a/tdei-api-gateway-stage.json b/tdei-api-gateway-stage.json index 5cc95b3..fca32b1 100644 --- a/tdei-api-gateway-stage.json +++ b/tdei-api-gateway-stage.json @@ -2725,24 +2725,35 @@ "name":"format", "in":"query", "required":false, - "description":"format: Output format. Only 'csv' is supported.", + "description":"format: Output format.", "schema":{ "type":"string", "default":"csv", "enum":[ - "csv" + "csv", + "geojson" ] } } ], "responses":{ - "200":{ - "description":"CSV file streamed successfully.", - "content":{ - "text/csv":{ - "schema":{ - "type":"string", - "format":"binary" + "200": { + "description": "Feedback file streamed successfully.", + "content": { + "text/csv": { + "schema": { "type": "string", "format": "binary" } + }, + "application/geo+json": { + "schema": { + "type": "object", + "required": ["type", "features"], + "properties": { + "type": { "enum": ["FeatureCollection"] }, + "features": { + "type": "array", + "items": { "$ref": "#/components/schemas/Feature" } + } + } } } } diff --git a/tdei-api-gateway.json b/tdei-api-gateway.json index 9c532f2..d55f118 100644 --- a/tdei-api-gateway.json +++ b/tdei-api-gateway.json @@ -2725,24 +2725,35 @@ "name":"format", "in":"query", "required":false, - "description":"format: Output format. Only 'csv' is supported.", + "description":"format: Output format.", "schema":{ "type":"string", "default":"csv", "enum":[ - "csv" + "csv", + "geojson" ] } } ], "responses":{ - "200":{ - "description":"CSV file streamed successfully.", - "content":{ - "text/csv":{ - "schema":{ - "type":"string", - "format":"binary" + "200": { + "description": "Feedback file streamed successfully.", + "content": { + "text/csv": { + "schema": { "type": "string", "format": "binary" } + }, + "application/geo+json": { + "schema": { + "type": "object", + "required": ["type", "features"], + "properties": { + "type": { "enum": ["FeatureCollection"] }, + "features": { + "type": "array", + "items": { "$ref": "#/components/schemas/Feature" } + } + } } } }