
WesleyPattison • almost 10 years ago
What is the WebRequest URL for "Get EUI" ?
I'm able to successfully get the RAW XML through the Third Party website by filling out the form manually. (https://greenbutton.affsys.com/a3p/mvc/getdata)
However according to the documentation; 5.4 Synchronous Data Access Workflow), it's expecting a UsagePoint URI from the Data Custodian.
Comments are closed.
10 comments
gellis519 • almost 10 years ago
Hello Wesley,
Section 5.4 indicates that the web service request would be made against the UsagePoint URI. Below is the WADL for this request:
We are in the process of generating the endpoint URL's for all data custodian services, as a relative URL is provided in the above.
gellis519 • almost 10 years ago
The WADL didn't post. Instead, please see Appendix B in the Reference Architecture document (readData method on page 55).
WesleyPattison • almost 10 years ago
When will you post the URL's we need to use... ? I'm a sitting duck here not able to test a HttpWebRequest.
I've tried looking at the source for the Get EUI page, and I found it's trying to use URL's that are:
https://greenbutton.affsys.com/a3p/api/v1/*
So I've tried the following:
https://greenbutton.affsys.com/a3p/api/v1/UsagePoint/readData?start=1380585600&duration=1381795200
https://greenbutton.affsys.com/a3p/api/v1/UsagePoint?start=1380585600&duration=1381795200
https://greenbutton.affsys.com/a3p/api/v1/readData?start=1380585600&duration=1381795200
Yuri Shteinman • almost 10 years ago
try
https://greenbutton.affsys.com/ldc/api/v1/UsagePoint?start=1380600000&duration=1296000
Let me know if it worked. If we don't help each other who will ? :-)
WesleyPattison • almost 10 years ago
That worked, I'm receiving a 401 return. I thought the Header is suppose to be your "Authentication" : "AccessCode" that's generated on the Third Party website.
Yuri Shteinman • almost 10 years ago
Haven't gotten there yet, finishing authorization and then will try
gellis519 • almost 10 years ago
The base URL for the Data Custodian is https://greenbutton.affsys.com/ldc/api/
The Data Custodian WADL can be then used to determine the full URL's of the service endpoints. A full list is forthcoming though.
Yuri Shteinman • almost 10 years ago
I hope the list is correct because wadls are not. I will give one example but everything I tried to do didn't match wadl.
For example ReadAuthorizationStatus in wadl
From what I see the path should be
https://gbregister.affsys.com:8080/ldc/api/v1/ReadAuthorizationStatus/readAuthorizationStatus
First, the port is wrong, it is not 8080, method is not used
and it is actually
https://gbregister.affsys.com/ldc/api/v1/ReadAuthorizationStatus
I could add more examples for example there is no URI with Data Custodian JSP page where user can sign in, token Uri, etc. I have a post in this forum asking for all required Uris. Got reply for some othem but not all.
Yuri Shteinman • almost 10 years ago
Wesley, did you manage to get it working? I might be able to help you if you still stuck
gellis519 • almost 10 years ago
Given the base URL, for the aforementioned example the WADL would indicate the complete URL to be:
https://greenbutton.affsys.com/ldc/api/ReadAuthorizationStatus
The full list of URL's for the Test Lab's Data Custodian has now been posted on greenbuttondata.ca for your reference.