This program is a search interface for use in the Swedbank Pay Developer Portal.
Spin up a Express with npm run start
.
Search by sending request to:
/search/?q=${value}&size=${value}&page=${value}
.
Response looks like the following:
{
"hits": [
{
"url": "/url-to-resource",
"highlight": {
"text": [
"Line 1, each is set to a limit of 150 characters",
"Line 2, they come preformated",
"Line 3"
]
}
},
{
"url": "/payment-instruments/card/after-payment.html",
"highlight": {
"text": [
"Line 1, each is set to a limit of 150 characters",
"Line 2, they come preformated",
"Line 3"
]
}
}
],
"total": 2
}
process.env.PORT
is what port this will listen to.process.env.elasticUrl
where to proxy the request to.