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

Mesh network management API #98

Merged
merged 3 commits into from
Feb 26, 2019
Merged

Mesh network management API #98

merged 3 commits into from
Feb 26, 2019

Conversation

sergeuz
Copy link
Member

@sergeuz sergeuz commented Feb 12, 2019

This PR implements a set of API functions for mesh network management.

@sergeuz
Copy link
Member Author

sergeuz commented Feb 12, 2019

[ch28309]

@coveralls
Copy link

coveralls commented Feb 12, 2019

Coverage Status

Coverage increased (+0.8%) to 74.958% when pulling 4ada7d4 on feature/mesh_api into 30d10e9 on master.

@stefan-moraru
Copy link
Contributor

Nice work @sergeuz. Good to see you in JavaScript land! I noticed a few TODOs in your code, are those issues we want to address now, or after shipping?

Copy link
Member

@monkbroc monkbroc left a comment

Choose a reason for hiding this comment

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

Added info on how to do pagination

src/Particle.js Outdated
* @return {Promise<Object>}
*/
listMeshNetworks({ auth, context }) {
// TODO: Pagination
Copy link
Member

Choose a reason for hiding this comment

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

Pagination is supported with ?page=1&per_page=1

src/Particle.js Outdated
* @return {Promise<Object>}
*/
listMeshNetworkDevices({ networkId, auth, context }) {
// TODO: Pagination and filtering
Copy link
Member

Choose a reason for hiding this comment

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

Filtering and pagination is supported through ?page=2&per_page=1&role=node

@sergeuz
Copy link
Member Author

sergeuz commented Feb 22, 2019

@monkbroc: Added parameters for pagination and filtering by device type: 4ada7d4

@monkbroc
Copy link
Member

Go ahead and merge when you are ready

@sergeuz sergeuz merged commit bde65f6 into master Feb 26, 2019
@sergeuz sergeuz deleted the feature/mesh_api branch February 26, 2019 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants