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

Metadata: create/update/get a variable description #16

Open
kyao opened this issue Jun 1, 2020 · 0 comments
Open

Metadata: create/update/get a variable description #16

kyao opened this issue Jun 1, 2020 · 0 comments

Comments

@kyao
Copy link
Contributor

kyao commented Jun 1, 2020

The metadata API is defined here: https://datamart-upload.readthedocs.io/en/latest/api/
Implement that POST /datasets/id/variables method.
The minimal JOSN content is the name of the variable:

{
  "name": "Access to clean fuels and technologies for cooking"
}

If the optional property VariableID is given then use the value of the VariableID as the variable identifier within the dataset. Otherwise, automatically generate a variable identifier.

The method PUT /datasets/id/variables/id2 updates an existing variable given JSON description.
The method GET /datasets/id/variables/id2 return the variable JSON description.

@kyao kyao changed the title Metadata: Create a new variable Metadata: create/update/get a variable Jun 1, 2020
@kyao kyao changed the title Metadata: create/update/get a variable Metadata: create/update/get a variable description Jun 1, 2020
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

No branches or pull requests

1 participant