-
Notifications
You must be signed in to change notification settings - Fork 44
Dataset API #21
Comments
@emilymcafee - that looks great, we'll probably follow the design of |
@perrygeo as per discussion yesterday, I think There's a bug in our Datasets API documention. It says
But there are actually four types of resources in
GETs on these 4 different URLs give 4 different responses. 4 different kinds of resources. So, I propose we change your sketch above to
Worth combining the DSNAME and FNAME into one argument? Something like |
👏 that's clarifies things immensely! Thanks @sgillies - maybe once we're done here we can suggest some api documentation changes. I like separate args for easier composibility. In terms of |
I'm using name and id interchangeably. Separate args works for me. |
Hmm. I didn't consider the list of datasets as a distinct resource, but I see your point. If you think its confusing I'm happy to update the docs. I can jump on this doc + CLI task as soon as @sgillies' work on the sdk wraps up. |
I've started putting this together, and I'm getting to the From the CLI perspective, the goal in mapbox-data-cli was basically to expose three subcommands:
Hidden here is a more generic question about how we want to handle "higher-level" commands that might result in multiple API requests. |
Closed via #32. |
The SDK PR is in the works. Meanwhile let's talk about the implications for the CLI...
As noted in the SDK planning ticket the Datasets API is a bit trickier as it involves two resources types:
Datasets
which are collections ofFeatures
. Then there are all of the standard "CRUD" operations on those resources.How do we best represent these actions in the CLI? My initial thought is sub-sub-commands like:
The text was updated successfully, but these errors were encountered: