makeomatic / makeomatic/restify-formatter-jsonapi
how to use?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Can you please clarify what "Make sure to add this into accepts middleware" means exactly? I import it as:
```
jsonapi_formatter = require('restify-formatter-jsonapi');
```
So do you mean to do this?
```
server.use(restify.acceptParser(jsonapi_formatter));
```
Currently I'm trying:
```
const server = restify.createServer({
formatters: jsonapi_formatter
}
```
but that doesn't seem to be working, or at least if it is I can't find the formatted JSON in the request object anywhere. Can you please clarify how this is supposed to be used exactly? Would be super grateful.
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 with the usage question in issue #2 and compare the documented `restify-formatter-jsonapi` import, `server.use`, `restify.acceptParser`, and `createServer({ formatters })` entry points. Done means documenting the correct setup and where the formatted JSON is exposed, with a working example or verification path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100