Skip to content
This repository has been archived by the owner. It is now read-only.

Implement client for feature service #22

Merged
merged 2 commits into from Jun 30, 2017
Merged

Implement client for feature service #22

merged 2 commits into from Jun 30, 2017

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Jun 29, 2017

This will be required for a few of the GraphQL resolvers, e.g. MessageSchema.byBbox, TilesSchema.fetchPlacesByBbox and EdgesSchema.locations.

Should be merged after #21.

@c-w c-w requested a review from jcjimenez Jun 29, 2017
@c-w c-w force-pushed the featureservice branch from bc0aff1 to 5abf3e5 Jun 29, 2017
@c-w c-w changed the base branch from clients-refactor to master Jun 29, 2017
Copy link
Contributor

@Smarker Smarker left a comment

LGTM but maybe you'd want to put modules.export at the top so that we can easily see all the functions we have available to us?

Copy link
Contributor

@jcjimenez jcjimenez left a comment

LGTM with question.

}

function formatNameUri(names) {
return `http://${apiHost}/features/name/${names.join(',')}`;
Copy link
Contributor

@jcjimenez jcjimenez Jun 30, 2017

Do we need to URL escape all these values?

Copy link
Contributor Author

@c-w c-w Jun 30, 2017

Done in c381784.

@c-w
Copy link
Contributor Author

@c-w c-w commented Jun 30, 2017

@Smarker Always declaring the exports at the bottom of the file also makes it easy to find them and has the benefit that it always works, even for exports that are declared as variables instead of functions (read more).

@Smarker
Copy link
Contributor

@Smarker Smarker commented Jun 30, 2017

Alright, good point. I agree.

@c-w c-w merged commit 6c7916f into master Jun 30, 2017
2 checks passed
@c-w c-w deleted the featureservice branch Jun 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants