-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
docs/httpDo #2164
docs/httpDo #2164
Conversation
Signed-off-by: austin <[email protected]>
Signed-off-by: austin <[email protected]>
Signed-off-by: austin <[email protected]>
Signed-off-by: austin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great, just one small change requested
src/io/files.js
Outdated
* var url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson'; | ||
* httpDo(url, | ||
* { | ||
* method: 'GET', // http method - "GET", "PUT", "POST", etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's omit this comment for readability, since this info is mentioned in the parameters already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the method comment or the Request options one as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the other one is fine to leave, since those options may be less clear
Signed-off-by: austin <[email protected]>
thanks! |
Working on documentation from this issue: #1954
Only added one example, using the
Request
options, but did something more creative with the data. Could do an example ofPUT
but I feel like it's better to let users get nifty with it.Using the same earthquake data api as used in the
httpGet
example;