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

Use Capabilities API For User-Facing ID #802

Open
stevekuznetsov opened this issue Oct 10, 2024 · 0 comments
Open

Use Capabilities API For User-Facing ID #802

stevekuznetsov opened this issue Oct 10, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@stevekuznetsov
Copy link
Collaborator

The capabilities API exposes the user-facing ID for a center:

$ curl -s https://forecasts.avalanche.org?rest_route=/v1/public/avalanche-centers/ | jq '.centers[0]'
{
  "id": "SNFAC",
  "display_id": "SAC",
  "platforms": {
    "warnings": true,
    "forecasts": true,
    "stations": true,
    "obs": true,
    "weather": true
  }
}

We should refactor userFacingCenterId to use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants