0.1.3 • Published 10 years ago
@panosoft/js-xlsx-gen-server v0.1.3
JS Xlsx Gen server
An excel spreadsheet rendering server.
Installation
npm install -g @panosoft/js-xlsx-gen-serverUsage
Usage: js-xlsx-gen-server --key <path> --cert <path> [options]
An excel spreadsheet rendering server.
Options:
-h, --help output usage information
-V, --version output the version number
-k, --key <path> Path to the private key of the server in PEM format.
-c, --cert <path> Path to the certificate key of the server in PEM format.
-p, --port <port> The port to accept connections on. Default: 8443.
-i, --interface <interface> The interface to accept connections on. Default: 0.0.0.0.HTTPS API
Request
- Path:
/ - Method:
POST - Headers:
-
Content-Type-'application/json' - Body:
-
spreadsheet- {Object} The spreadsheet definition used to create the excel spreadsheet. -[defaultStyle]- {Object} The default style definition to apply to the spreadsheet. -[header]- {Object} The header default style definition. -[data]- {Object} The data default style definition.
Responses
Success
- Status Code:
200 - Headers:
-
Request-Id- {String} The unique request identifier. -Content-Type-'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' - Body: {Buffer} The excel spreadsheet binary.
Error
- Status Code:
500 - Headers:
-
Request-Id- {String} The unique request identifier. -Content-Type-'application/json' - Body:
-
error- {String} The error message.