0.0.1-alpha.2 • Published 5 months ago
madi-plg-semantic-scholar v0.0.1-alpha.2
madi-plg-semantic-scholar
This library is a FeathersJS middleware to allow simple Remote Procedure Calls (RPCs) to interact with Feathers Services and custom methods.
Installation
service(options)
Options:
disableHeader
(optional, default:false
) - Set to true to prevent thex-service-method
header from being overwritten by the middleware. The RPC verb can still get captured and used from the Feathers hook ctx object.allowedRpcVerbs
(optional. default:any
) - Accepts a string or an array of strings. Defaults to fully open, allowing any verb. Setting to[]
will disallow any verb. In order to use thex-service-method
automatic call, the custom method of the service must be named exactly the same as the verb sent.
Using this Template
git checkout -B main; git branch --set-upstream-to=origin/main;
git checkout -B beta; git branch --set-upstream-to=origin/beta;
git checkout -B alpha; git branch --set-upstream-to=origin/alpha;
gh secret set NPM_TOKEN --repo nasa-madi/madi-plg-semantic-scholar
Extending an existing Service
Contributing
Please see https://github.com/nasa-madi/madi-plg-semantic-scholar/blob/main/.github/contributing.md
Credit
Inspired by work by Ben Zelinski.