@webfaas/webfaas-plugin-endpoint-http
Version:
WebFaaS Framework - Plugin - Endpoint - HTTP
73 lines (60 loc) • 1.91 kB
Markdown
WebFaaS Plugin for [node](http://nodejs.org).
[![NPM Version][npm-image]][npm-url]
[![Linux Build][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
```json
{
"endpoint.http": [
{
"port": "[http port]"
}
],
"endpoint.https": [
{
"port": "[https port]"
}
]
}
```
```json
{
"endpoint.http": [
{
"port": "[http port]",
"hostname": "[http hostname]"
}
],
"endpoint.https": [
{
"port": "[https port]",
"hostname": "[https hostname]",
"httpConfig": {
"ca": "[location ca]",
"cert": "[location cert]",
"pfx": "[location pfx]",
"passphrase": "[passphrase]"
}
}
]
}
```
```shell
curl -XPOST "http://localhost:8080/@registry1/math:multiply/1" -H "content-type:application/json" -d '{"x":2,"y":3}'
```
```shell
curl -XPOST "http://localhost:8080/@webfaaslabs/math:sum/0" -H "content-type:application/json" -d '{"x":2,"y":3}' -v
```
* https://www.ibm.com/support/knowledgecenter/SSMNED_5.0.0/com.ibm.apic.cmc.doc/task_apionprem_gernerate_self_signed_openSSL.html
[](LICENSE)
[]: https://img.shields.io/npm/v/@webfaas/webfaas-plugin-endpoint-http.svg
[]: https://npmjs.org/package/@webfaas/webfaas-plugin-endpoint-http
[]: https://img.shields.io/travis/webfaas/webfaas-plugin-endpoint-http/master.svg?label=linux
[]: https://travis-ci.org/webfaas/webfaas-plugin-endpoint-http
[]: https://img.shields.io/coveralls/github/webfaas/webfaas-plugin-endpoint-http/master.svg
[]: https://coveralls.io/github/webfaas/webfaas-plugin-endpoint-http?branch=master