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

docs/httpDo #2164

Merged
merged 5 commits into from
Sep 18, 2017
Merged

docs/httpDo #2164

merged 5 commits into from
Sep 18, 2017

Conversation

austince
Copy link
Contributor

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 of PUT 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;

@austince austince changed the title Docs/http-do docs/httpDo Sep 13, 2017
Copy link
Member

@lmccart lmccart left a 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.
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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

@lmccart lmccart merged commit fd7fa9f into processing:master Sep 18, 2017
@lmccart
Copy link
Member

lmccart commented Sep 18, 2017

thanks!

@austince austince deleted the docs/http-do branch January 31, 2018 00:53
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.

2 participants