digitalbazaar / digitalbazaar/ezcap
Add helper to get root invocation target from a zcap
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 8
- Forks
- 4
- Avg merge
- 3h 5m
- Merged PRs (30d)
- 1
Description
A helper that could be used to get the root invocation target from a zcap would be helpful because well-known API paths can be added onto the root invocation target -- for zcaps that grant authority to some base in the path hierarchy.
For example, if a zcap has a invocation target of either <root invocation target>, <root invocation target>/foo or <root invocation target>/foo/bar, each can be used to hit well-known path: <root invocation target>/foo/bar/baz. The helper would return <root invocation target> for any of these zcaps, allowing the target URL to then be constructed from that.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing zcap invocation-target handling and any URL or target helpers in the repository. Implement the requested helper so targets at the root, one path segment, or multiple path segments yield the same root invocation target, then verify those three cases with the project's existing tests or test setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authorization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100