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

get detailed output #85

Closed
Jonesy opened this issue Oct 19, 2023 · 2 comments · Fixed by #87
Closed

get detailed output #85

Jonesy opened this issue Oct 19, 2023 · 2 comments · Fixed by #87
Assignees
Labels
enhancement New feature or request jira

Comments

@Jonesy
Copy link
Contributor

Jonesy commented Oct 19, 2023

Org Units are required to create a dataset, but users might not know the correct name of one off hand when they are creating a dataset.

Acceptance Criteria

Add org-units argument to gwa get with the required flag of --org as a filter.

Example:

$ gwa get org-units --org ministry-of-citizens-services
@Jonesy Jonesy added the enhancement New feature or request label Oct 19, 2023
@Jonesy Jonesy self-assigned this Oct 19, 2023
@Jonesy Jonesy added the jira label Oct 19, 2023
@Jonesy
Copy link
Contributor Author

Jonesy commented Oct 19, 2023

@ikethecoder I think we just need to implement an endpoint for this URL if it hasn't been deployed yet.

@ikethecoder
Copy link
Member

Example API call:

curl -X 'GET' \
  'https://api-gov-bc-ca.dev.api.gov.bc.ca/ds/api/v2/organizations/ministry-of-citizens-services' \
  -H 'accept: application/json'

Returns orgUnits which is an array of objects containing a name and title. These can be displayed.

For json and yaml output, you can show the full response as in the future there may be more information added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants