No data returned from REST API Explorer

  • 24 July 2015
  • 6 replies

Userlevel 1
Badge +5
I'm getting no data returned from the REST API Explorer in my CE sandbox. I don't have access to a production system to see what it should look like but I believe it should look like the images on this Education Blog post. I am able to work with the REST API via PowerShell so it isn't the API itself that's causing my problem.

Is anyone else unable to explore the REST API using CE?

This topic has been closed for comments

6 replies

Userlevel 7
Badge +25
Same boat... maybe the NEXT console auth isn't implemented for the API Exp?
Userlevel 2
Badge +11
Both the REST API Explorer and MGMT API Explorer don't work on mine. Just says fetching resource lists but neither ever come up.
Badge +5
Same thing happening on my CE setup.

If you're curious about the Rest paths/methods available, i wrote a little script to output the available paths from the wadl.xml in Powershell:

add-type @"using System.Net;using System.Security.Cryptography.X509Certificates;public class TrustAllCertsPolicy : ICertificatePolicy {public bool CheckValidationResult(ServicePoint srvPoint, X509Certificate certificate,WebRequest request, int certificateProblem) { return true; }}"@[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy$user = ""$pw = ""$url = ""$Header = @{"Authorization" = "Basic "+[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($user+":"+$pw ))}[xml]$data = Invoke-WebRequest -Method Get -Uri $url -Headers $HeaderFunction ListRestMethods{ foreach ($resource in $data.application.resources.resource) { Write-Host $resource.path "`r" if ($resource.HasChildNodes) { foreach ($resource in $resource.resource){ Write-Host " " $resource.path "|" $ "`r"} }Write-Host "`r" } }ListRestMethods
Userlevel 1
Badge +5
TIL about WADL
Badge +10
It does not work for me either. Seems this is broken on the latest version of CE.
Badge +4
same here