Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response status codes #22

Merged
merged 8 commits into from
Oct 3, 2014
Merged

Conversation

mtscout6
Copy link
Contributor

@mtscout6 mtscout6 commented Oct 2, 2014

Related to #17

@yahoocla
Copy link

yahoocla commented Oct 2, 2014

CLA is valid!

@Vijar Vijar added the ready label Oct 2, 2014
* @param {Object} params The parameters identify the resource, and along with information
* carried in query and matrix parameters in typical REST API
* @param {Object} [context={}] The context object. It can contain "config" for per-request config data.
* @param {Function} callback callback convention is the same as Node.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change the docblocks since we're no longer using the same convention as node with the addition of the 3rd meta param?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you using to generate docs so I can look up the syntax for defining callbacks? I ask because it looks like jsdoc/jsdoc#260 addresses a syntax for this, but I don't know which approach to use.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want me to update the README as well since it shows only the two parameters on the callback?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we use jsdoc. Since @callback is the official way to go, that sounds fine to me.

We probably don't use the @callback as much as it needs to be through out the rest of our code :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go for it, update the README too

@Vijar
Copy link
Contributor

Vijar commented Oct 2, 2014

🚢 This looks good.

After merge, I will create better docs for the data-fetchers with the callback format specified.

@mtscout6
Copy link
Contributor Author

mtscout6 commented Oct 3, 2014

I have updated the jsdocs comments. Let me know if the wording needs any tweaks.

@redonkulus
Copy link
Contributor

We actually use YUI Doc for our API documentation, which uses a lot of the same syntax as jsdoc. We can clean those up in a separate commit after we merge this.

@mtscout6
Copy link
Contributor Author

mtscout6 commented Oct 3, 2014

Sounds good, I'll leave that bit to y'all then. Is there anything else that I need to cleanup?

@Vijar
Copy link
Contributor

Vijar commented Oct 3, 2014

Looks good @mtscout6, thanks!

Vijar added a commit that referenced this pull request Oct 3, 2014
@Vijar Vijar merged commit fd11d05 into yahoo:master Oct 3, 2014
@Vijar Vijar removed the ready label Oct 3, 2014
@mridgway
Copy link
Collaborator

mridgway commented Oct 3, 2014

Awesome! Thanks @mtscout6!

@mtscout6
Copy link
Contributor Author

mtscout6 commented Oct 3, 2014

No problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants