Predix_Logo
  • Categories
    • Questions
    • Predix | Updates
      • Pricing
      • Product
    • Deloitte - Private
    • How-To
    • Accenture-Private
  • Explore
    • Topics
    • Questions
    • Articles
    • Feedback or Feature Requests
  • Sign in
  • Home /
  • Questions /
avatar image
0
Question by sravani.y@tcs.com · Apr 11, 2017 at 09:41 PM · views-service

what is “/api/view-service" how to call this service and get data

  1. i am getting error and /api/view-service how to use this service

  2.             <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>
    
capture2.png (33.0 kB)
capture1.png (22.2 kB)
Comment
Add comment
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
1

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.

Comment
Add comment · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

68 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

View service - authorization token 2 Answers

403 Forbidden with Predix Views POST to /api/decks 2 Answers

View Service - Add Deck ACCESS_DENIED 3 Answers

IE11 & Firefox: view service base url is undefined 2 Answers

How to create a new view in predix dashboard seed 1 Answer

GE Monogram
  • Legal
  • Cookies
  • Forum Terms
  • Contact Us
  • Copyright © 2017 General Electric Company. All rights reserved.


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Submit your feedback or feature request
  • Categories
  • Questions
  • Predix | Updates
    • Pricing
    • Product
  • Deloitte - Private
  • How-To
  • Accenture-Private
  • Explore
  • Topics
  • Questions
  • Articles
  • Feedback or Feature Requests