i am getting error and /api/view-service how to use this service
<container>
<px-deck id="deck-1">
<my-temperature-card id="card-1" title="San Ramon Temperature"postal="94582" unit="F"></my-temperature-card>
<my-temperature-card id="card-3" title="Walnut Creek Temperature" postal="94595" unit="F"></my-temperature-card>
</px-deck>
</container>
<px-dashboard>
Answer by Brian Henzelmann · Apr 19, 2017 at 07:20 AM
Is this from the Predix Seed?
It's trying to hit the Views service via the local node proxy. Make sure it's either setup with the dummy data or is setup for an actual Views service. You will need to make sure your seed is setup with UAA authentication, the client from UAA has the Views service scopes, and the same scopes are added as groups with your user belonging to the groups.
For the scopes and groups, you will need views.zones.YOUR_INSTANCE_ZONE_ID.user to be able to access the instance at all and either views.power.user or views.admin.user depending on if you want full CRUD access or not. If you want the client to do anything without a user, you'll want the same scopes added as authorities. This will give the client token the same scopes a user would have.