-
Notifications
You must be signed in to change notification settings - Fork 121
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: new conceptual guide to introduce the lib #426
Conversation
ISSUES CLOSED: #318
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.
good idea! minor suggestions.
getUser(`jgravois`) | ||
.then(response) // { firstName: "john", description: "open source geodev" ... } | ||
``` | ||
|
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.
Maybe add "vs:" here, or comments to the top of each code block - something to indicate that the first block is rest-js and the second is vanilla JS.
// construct the url yourself and don't forget to tack on f=json | ||
const url = "https://www.arcgis.com/sharing/rest/community/users/jgravois?f=json"; | ||
|
||
var xhr = new XMLHttpRequest(); |
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.
ha! it's kind of cheating to compare to XMLHttpRequest()
instead of fetch()
, but I'm impressed that you pulled that out of the old archives!
docs/src/guides/package-overview.md
Outdated
* `200` responses that contain an error are trapped for | ||
* the generic `f=json` parameter is appended | ||
|
||
And we haven't even begun to discuss [authentication](../node/). |
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.
seems like ../browser-authentication/
is a better link here than ../node/
.
ISSUES CLOSED: #318