From 519ada8c61cbb7d191bbee6312695fc5060204de Mon Sep 17 00:00:00 2001 From: Fabian Eichhorner Date: Wed, 28 Nov 2018 22:41:20 +0100 Subject: [PATCH] Update service-reporting README.md --- service-reporting/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/service-reporting/README.md b/service-reporting/README.md index 08ec2e9..49640ff 100644 --- a/service-reporting/README.md +++ b/service-reporting/README.md @@ -7,8 +7,9 @@ Provides a REST-API to generate PDF reports for terms and their sentiment analys - return: pdf file `POST`: `/generatePDF/` Generates a pdf report for the given terms -- param: Term[] as Content-Type: `application/json` -e.g. body of request +- Header: `Content-Type`: `application/json` +(optional) `Accept`: `application/base64` if the pdf should be in base64 instead of `application/pdf` +- Body of request: Term[] e.g. ```json [ { @@ -27,7 +28,7 @@ e.g. body of request ``` - return: pdf file -### Tweet model +### Term model Term(string `Name`, double `Sentiment`) ## run with docker -- 2.43.0