1. Introduction

This document contains generated documentation for AMPnet report-service. Report service contains all endpoints for generating reports in PDF Source code is available on Github.

2. Reporting API

All requests need header: Authorization: Bearer JWT.

2.1. Get user transactions report

Query parameters from and to are both optional.

Request
GET /report/user/transactions?from=2019-10-10&to=2021-04-02 HTTP/1.1
Host: localhost:8080

Response is a PDF file data.

2.2. Get user transaction report

Query parameters txHash, fromTxHash and toTxHash are required.

Request
GET /report/user/transaction?txHash=tx_hash&fromTxHash=mint&toTxHash=user+wallet+hash HTTP/1.1
Host: localhost:8080

Response is a PDF file data.

3. Admin Reporting API

All requests need header: Authorization: Bearer JWT.

3.1. Get active users accounts summary report

Query parameters from and to are both optional.

Request
GET /admin/report/user?from=2019-10-10&to=2021-04-03 HTTP/1.1
Host: localhost:8080

Response is a PDF file data.